<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ThinkScripter &#187; vervoort</title>
	<atom:link href="http://www.thinkscripter.com/tag/vervoort/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkscripter.com</link>
	<description>thinkScript Indicators for thinkorswim</description>
	<lastBuildDate>Sun, 29 Jan 2012 16:11:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Smoothed RSI Inverse Fisher Transform</title>
		<link>http://www.thinkscripter.com/indicator/smoothed-rsi-inverse-fisher-transform/</link>
		<comments>http://www.thinkscripter.com/indicator/smoothed-rsi-inverse-fisher-transform/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 16:28:45 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[Fisher Transform]]></category>
		<category><![CDATA[RSI]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[vervoort]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=3119</guid>
		<description><![CDATA[Sylvain Vervoort’s smoothed RSI Inverse Fisher Transform. <a href="http://www.thinkscripter.com/indicator/smoothed-rsi-inverse-fisher-transform/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sylvain Vervoort’s Smoothed RSI Inverse Fisher Transform, as presented in his article in the October 2010 <em>Stocks and Commodities Magazine</em>, begins by smoothing the price curve with the “rainbow” weighted moving average. This smoothed price curve is used to calculate an RSI, which is then smoothed with the Vervoort zero-lag exponential moving average. The resulting curve is then transformed with an inverse Fisher filter.<br />
Fisher suggests that a breakout above 12 indicates buying opportunities and a breakdown below 88 indicates selling opportunities. These opportunities should then be studied in the context of a slow stochastic and Vervoort’s ARSI indicator. </p>
<div id="attachment_3118" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2010/11/SRSIIFT.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2010/11/SRSIIFT.png" alt="" title="SRSIIFT"class="size-full wp-image-3118" /></a><p class="wp-caption-text">Smoothed RSI Inverse FT</p></div>
<pre class="brush: thinkscript; title: ; notranslate">
# TS_SmoothedRSI_InverseFisherTransform
# By Sylvain Vervoort - Oct 2010 S&amp;C Magazine
# thinkScript adaptation by
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 28 NOV 2010

declare lower;

input RSIper = 4;
input EMAper = 4;
def ma1 = wma(close, 2);
def ma2 = wma(ma1, 2);
def ma3 = wma(ma2, 2);
def ma4 = wma(ma3, 2);
def ma5 = wma(ma4, 2);
def ma6 = wma(ma5, 2);
def ma7 = wma(ma6, 2);
def ma8 = wma(ma7, 2);
def ma9 = wma(ma8, 2);
def ma10 = wma(ma9, 2);
def RainbW = (5 * ma1 + 4 * ma2 + 3 * ma3 + 2 * ma4 + ma5 + ma6 + ma7 + ma8 + ma9 + ma10) / 20;
def x = 0.1 * (RSIWilder(price = RainbW, length = RSIper) - 50);
def EMA1 = ExpAverage(x, EMAper);
def EMA2 = ExpAverage(EMA1, EMAper);
def Difference = EMA1 - EMA2;
def ZlEma = EMA1 + Difference;

plot invfish = ((exp(2 * ZlEma) - 1) / (exp(2 * ZlEma) + 1) + 1) * 50;
invfish.setDefaultColor(color.red);

plot zero = 0;
zero.setDefaultColor(color.gray);

plot oneHundred = 100;
oneHundred.setDefaultColor(color.gray);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/smoothed-rsi-inverse-fisher-transform/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Short Term Volume and Price Oscillator</title>
		<link>http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/</link>
		<comments>http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 15:09:51 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[SVAPO]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[vervoort]]></category>

		<guid isPermaLink="false">http://www.thinkscripter.com/?p=1730</guid>
		<description><![CDATA[Sylvain Vervoort's Short-Term Volume and Price Oscillator. <a href="http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of our members requested an implementation of Sylvain Vervoort&#8217;s Short-Term Volume and Price Oscillator as described in the November 2007 issue of Stocks and Commodities magazine. In essence, when the price is trending up and volume is increasing, volume is added into the oscillator calculation. Conversely, when price is trending down and volume is increasing, volume will be subtracted from the oscillator. During consolidation phases when price and volume diverge, volume is not used to calculate the oscillator. A buy is indicated when the oscillator is below the green line but greater than yesterday&#8217;s value. A sell is indicated when the oscillator is above the red line but less than yesterday&#8217;s value. Also pictured are the <a href="http://www.thinkscripter.com/2009/03/12/thinkscripter-multi-stops/">Multi-Stops</a>, <a href="http://www.thinkscripter.com/2009/09/05/thinkscripter-volume-profile/">Volume Profile</a>, and <a href="http://www.thinkscripter.com/2009/02/16/value-chart/">Value Chart</a>.<br />
<div id="attachment_1733" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/09/SVAPO.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/09/SVAPO.png" alt="Short Term Volume and Price Oscillator" title="SVAPO"  class="size-full wp-image-1733" /></a><p class="wp-caption-text">Short Term Volume and Price Oscillator</p></div></p>
<pre class="brush: thinkscript; title: ; notranslate"># TS_ShortTermVolumeAndPriceOscillator
# (c) 2009 http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 20 SEP 2009

declare lower;

input period = 8;
input cutoff = 1.0;

input devH = 1.5; #Standard Deviation High
input devL = 1.3; #Standard Deviation Low
input stdevper = 100; #Standard Deviation Period

rec haopen = compoundValue(1, ((open[1] + high[1] + low[1] + close[1]) / 4 + haopen[1]) / 2, hl2);
def haclose = ((open + high + low + close) / 4 + haopen + Max(high, haopen) + Min(low, haopen)) / 4;

def hac = 3 * ExpAverage(haclose, period / 1.6)
- 3 * ExpAverage(ExpAverage(haclose, period / 1.6), period / 1.6)
+ ExpAverage(ExpAverage(ExpAverage(haclose, period / 1.6), period / 1.6), period / 1.6);

def vave = Average(volume, period * 5)[1];
def vmax = vave * 2;
def vc = if(volume &lt; vmax, volume, vmax);

def vtrendi = inertia(volume,period);
def vtrend =vtrendi-vtrendi[1];

def vtr = 3 * ExpAverage(vtrend, period)
- 3 * ExpAverage(ExpAverage(vtrend, period), period)
+ ExpAverage(ExpAverage(ExpAverage(vtrend, period), period), period);

def calc1 = If haC &gt; (haC[1]*(1+cutoff/1000)) and (vtr &gt;=
vtr[1] and vtr[1] &gt; vtr[2]) then vc else If haC &lt; (haC[1]*(1-cutoff/1000)) and (vtr &gt;=
vtr[1] and vtr[1] &gt; vtr[2]) then -vc else 0;
def SVAPOBase = Sum(calc1,period)/(vave+1);

plot SVAPO = 3 * ExpAverage(SVAPOBase, period)
- 3 * ExpAverage(ExpAverage(SVAPOBase, period), period)
+ ExpAverage(ExpAverage(ExpAverage(SVAPOBase, period), period), period);
SVAPO.setDefaultColor(color.cyan);

plot upperSDLine = devH*Stdev(SVAPO,stdevper);
upperSDLine.setDefaultColor(color.red);
upperSDLine.setStyle(curve.SHORT_DASH);
plot lowerSDLine = -devL*Stdev(SVAPO,stdevper);
lowerSDLine.setDefaultColor(color.green);
lowerSDLine.setStyle(curve.SHORT_DASH);
plot zero = 0;
zero.setDefaultColor(color.white);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/short-term-volume-and-price-oscillator/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Heikin-Ashi Candlestick Oscillator</title>
		<link>http://www.thinkscripter.com/analysis/heikin-ashi-candlestick-oscillator/</link>
		<comments>http://www.thinkscripter.com/analysis/heikin-ashi-candlestick-oscillator/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 21:36:38 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[Indicator]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[Heikin-Ashi]]></category>
		<category><![CDATA[oscillator]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[vervoort]]></category>

		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=937</guid>
		<description><![CDATA[The Heikin-Ashi Candlestick Oscillator (HACO) uses the triple exponential moving average (TEMA) to filter out some of the whipsaws inherent in basic Heikin-Ashi candlesticks. <a href="http://www.thinkscripter.com/analysis/heikin-ashi-candlestick-oscillator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another one from the mind of Sylvain Vervoot. In &#8220;Trading With The Heikin-Ashi Candlestick Oscillator&#8221; (Stocks and Commodities, December 2008), Vervoot describes a methodolgy for creating a <em>&#8220;visual tool to complement (Heikin-Ashi) candlesticks, helping you enter and exit trades, resulting in higher profits per trade.&#8221; </em>In a nutshell, the Heikin-Ashi Candlestick Oscillator (HACO) uses the triple exponential moving average (TEMA) to filter out some of the whipsaws inherent in basic Heikin-Ashi candlesticks. There&#8217;s a fair bit more to it than that but you can explore the article on your own. The indicator itself is just a binary &#8220;Buy/Sell&#8221; signal as shown by the alternating red and green colors. I&#8217;ve circled the places in the traditional Heikin-Ashi chart where a trend change was indicated but the HACO correctly filtered out the signal. The HACO can be used on any symbol and timeframe. As with the <a href="http://www.thinkscripter.com/2009/03/31/vervoort-crossover">Vervoot Crossover</a>, the HACO can easily be turned into a strategy which is also pictured below. In this instance, a two day five minute chart of the ES was used resulting in a proft of $2612 on one contract. The up/down trend moving average periods were set to 27 within the HACO. Full results are <a href="http://www.thinkscripter.com/wp-content/uploads/2009/04/hacostratreport.png">here</a>. <span style="color: #ff0000;">UPDATE: The HACO strategies have been uploaded to &#8220;Door Number Three&#8221; of the Gold Donor area of the </span><a href="http://www.thinkscripter.com/forum"><span style="color: #ff0000;">forum</span></a><span style="color: #ff0000;">.</span> <span style="color:#888888;">(I&#8217;ll send out a donor update on Sunday as usual but if you <em>can&#8217;t wait</em>, just shoot me an email)</span></p>
<div id="pro" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/04/haco.png"><img class="size-full wp-image-945" title="haco" src="http://www.thinkscripter.com/wp-content/uploads/2009/04/haco.png" alt="Heikin-Ashi Candlestick Oscillator"  /></a><p class="wp-caption-text">Heikin-Ashi Candlestick Oscillator</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/analysis/heikin-ashi-candlestick-oscillator/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Vervoort Crossover Strategy and Analysis</title>
		<link>http://www.thinkscripter.com/analysis/vervoort-crossover-strategy-and-analysis/</link>
		<comments>http://www.thinkscripter.com/analysis/vervoort-crossover-strategy-and-analysis/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 23:00:46 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[strategy]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[vervoort]]></category>

		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=908</guid>
		<description><![CDATA[Many of you asked for a method to backtest this study. It is a relatively simple matter to construct a thinkScript strategy from a study. Most of the code from any study can be copied straight across into your strategy. &#8230; <a href="http://www.thinkscripter.com/analysis/vervoort-crossover-strategy-and-analysis/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Many of you asked for a method to backtest this study. It is a relatively simple matter to construct a thinkScript <em><span style="color:#0000ff;">strategy</span></em> from a <em><span style="color:#0000ff;">study</span></em>. Most of the code from any study can be copied straight across into your strategy. You will need to declare the strategy mode with a <code><strong>declare</strong></code> statement with one of the following arguments:</p>
<p><code><strong>LONG_ENTRY; LONG_EXIT; SHORT_ENTRY; SHORT_EXIT</strong></code></p>
<p>Since you can&#8217;t plot anything from a strategy, all <code><strong>plot</strong></code> statements for variables that will be part of the strategy logic should be converted to <code><strong>def</strong></code> statements and their formatting commands removed. Other non-essential plot statements and associated formatting can be removed entirely. Your entire goal when creating a strategy is to define a binary condition that will trigger a trade. In this particular case we are looking for a moving average cross. I had already coded that into the study for use with the signal dots:</p>
<p><code style="text-align:left;"><strong>def buySignal = if TypicalPriceZeroLagTEMA > HeikinAshiZeroLagTEMA and TypicalPriceZeroLagTEMA[1] &lt;= HeikinAshiZeroLagTEMA[1] then 1 else 0;</strong></code></p>
<p>With this condition we can now add the other essential piece of code for strategies &#8211; the <code><strong>addOrder(condition,price)</strong></code> command:</p>
<p><code style="text-align:left;"><strong>addOrder(buySignal,open[-1]);</strong></code></p>
<p>Here you see the binary condition <code style="text-align:left;"><strong>buySignal</strong></code> entered as the trigger argument and the price is the next bar&#8217;s open, hence the [-1] indexing.</p>
<p>Strategies only work in pairs. You can have a Long Entry and Long Exit pair or a Long Entry and Short Entry pair etc. In this case I used a daily chart with six months of data to run the backtest. With proper money and stop management to minimize drawdowns this looks to be a viable strategy. Profit was $7400 on a single ES contract over the preceding six month period. Full results <a href="http://www.thinkscripter.com/wp-content/uploads/2009/03/vervoortstratreport.png">here</a>.<br />
<div id="attachment_907" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/03/vervoortstrat.png"><img src="http://www.thinkscripter.com/wp-content/uploads/2009/03/vervoortstrat.png" alt="Vervoort Crossover Strategy Analysis" title="vervoortstrat" class="size-full wp-image-907" /></a><p class="wp-caption-text">Vervoort Crossover Strategy Analysis</p></div></p>
<p>The Long Entry Code:</p>
<pre class="brush: thinkscript; title: ; notranslate">
declare LONG_ENTRY;

input period = 55;
def price = (high+low+close)/3;

def TMA1 = 3 * ExpAverage(price, period)
- 3 * ExpAverage(ExpAverage(price, period), period)
+ ExpAverage(ExpAverage(ExpAverage(price, period), period), period);

def TMA2 = 3 * ExpAverage(TMA1, period)
- 3 * ExpAverage(ExpAverage(TMA1, period), period)
+ ExpAverage(ExpAverage(ExpAverage(TMA1, period), period), period);

def difference = TMA1 - TMA2;
def TypicalPriceZeroLagTEMA = TMA1 + difference;

rec haopen = compoundValue(1, ((open[1] + high[1] + low[1] + close[1]) / 4
+ haopen[1]) / 2, hl2);
def haclose = ((open + high + low + close) / 4 + haopen + Max(high, haopen)
+ Min(low, haopen)) / 4;

def HATMA1 = 3 * ExpAverage(haclose, period)
- 3 * ExpAverage(ExpAverage(haclose, period), period)
+ ExpAverage(ExpAverage(ExpAverage(haclose, period), period), period);

def HATMA2 = 3 * ExpAverage(HATMA1, period)
- 3 * ExpAverage(ExpAverage(HATMA1, period), period)
+ ExpAverage(ExpAverage(ExpAverage(HATMA1, period), period), period);

def HAdifference = HATMA1 - HATMA2;
def HeikinAshiZeroLagTEMA = HATMA1 + HAdifference;

def buySignal = if TypicalPriceZeroLagTEMA &gt; HeikinAshiZeroLagTEMA
and TypicalPriceZeroLagTEMA[1] &lt;= HeikinAshiZeroLagTEMA[1] then 1 else 0;

addOrder(buySignal,open[-1]);
setColor(color.green);
</pre>
<p>The Short Entry Code:</p>
<pre class="brush: thinkscript; title: ; notranslate">
declare SHORT_ENTRY;

input period = 55;
def price = (high+low+close)/3;

def TMA1 = 3 * ExpAverage(price, period)
- 3 * ExpAverage(ExpAverage(price, period), period)
+ ExpAverage(ExpAverage(ExpAverage(price, period), period), period);

def TMA2 = 3 * ExpAverage(TMA1, period)
- 3 * ExpAverage(ExpAverage(TMA1, period), period)
+ ExpAverage(ExpAverage(ExpAverage(TMA1, period), period), period);

def difference = TMA1 - TMA2;
def TypicalPriceZeroLagTEMA = TMA1 + difference;

rec haopen = compoundValue(1, ((open[1] + high[1] + low[1] + close[1]) / 4
+ haopen[1]) / 2, hl2);
def haclose = ((open + high + low + close) / 4 + haopen + Max(high, haopen)
+ Min(low, haopen)) / 4;

def HATMA1 = 3 * ExpAverage(haclose, period)
- 3 * ExpAverage(ExpAverage(haclose, period), period)
+ ExpAverage(ExpAverage(ExpAverage(haclose, period), period), period);

def HATMA2 = 3 * ExpAverage(HATMA1, period)
- 3 * ExpAverage(ExpAverage(HATMA1, period), period)
+ ExpAverage(ExpAverage(ExpAverage(HATMA1, period), period), period);

def HAdifference = HATMA1 - HATMA2;
def HeikinAshiZeroLagTEMA = HATMA1 + HAdifference;

def sellSignal = if TypicalPriceZeroLagTEMA &lt; HeikinAshiZeroLagTEMA
and TypicalPriceZeroLagTEMA[1] &gt;= HeikinAshiZeroLagTEMA[1] then 1 else 0;

addOrder(sellSignal, open[-1]);
setColor(color.red);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/analysis/vervoort-crossover-strategy-and-analysis/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Vervoort Crossover</title>
		<link>http://www.thinkscripter.com/indicator/vervoort-crossover/</link>
		<comments>http://www.thinkscripter.com/indicator/vervoort-crossover/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 02:53:52 +0000</pubDate>
		<dc:creator>ThinkScripter</dc:creator>
				<category><![CDATA[Indicator]]></category>
		<category><![CDATA[crossover]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[moving average]]></category>
		<category><![CDATA[thinkscript]]></category>
		<category><![CDATA[vervoort]]></category>

		<guid isPermaLink="false">http://thinkscripter.wordpress.com/?p=892</guid>
		<description><![CDATA[Sylvain Vervoort's trading method using the crosses of two unique moving averages: a zero-lag triple exponential moving average of 1) the typical price (h+l+c)/3 and 2) the Heikin-Ashi close. <a href="http://www.thinkscripter.com/indicator/vervoort-crossover/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;">(Update 29 Dec 2009: There is a bug in the current build of TOS which makes the Vervoort Crossover lines go ape at the beginning of the chart. Commenting out the line <strong>signal.assignValueColor(if buySignal then color.green else color.red);</strong> appears to fix the problem&#8230;.for now. &#8211; Eric</span></p>
<p>Thanks to Reader Randy H. for suggesting this one. In his article &#8220;The Quest For Reliable Crossovers&#8221; (Stocks &amp; Commodities Magazine, May 2008) author Sylvain Vervoort sets forth a trading method using the crosses of two unique moving averages. Specifically, he used a zero-lag triple exponential moving average of 1) the typical price (h+l+c)/3 and 2) the Heikin-Ashi close. He successfully backtested his method on 211 stocks and found using a 55 period average on daily charts was optimal.</p>
<div id="attachment_894" class="wp-caption aligncenter" style="width: 640px"><a href="http://www.thinkscripter.com/wp-content/uploads/2009/03/vervoortcrossover.png"><img class="size-full wp-image-894" title="vervoortcrossover" src="http://www.thinkscripter.com/wp-content/uploads/2009/03/vervoortcrossover.png" alt="Vervoort Crossover"  /></a><p class="wp-caption-text">Vervoort Crossover</p></div>
<pre class="brush: thinkscript; title: ; notranslate">
# VervoortCrossover
# (c) 2009 http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 30 MAR 2009

input period = 55;
def price = (high+low+close)/3;

#-----Typical Price ZeroLag Triple Exponential Moving Average

def TMA1 = 3*expAverage(price,period)
-3*expAverage(expAverage(price,period),period)
+expAverage(expAverage(expAverage(price,period)
,period),period);

def TMA2 = 3*expAverage(TMA1,period)
-3*expAverage(expAverage(TMA1,period),period)
+expAverage(expAverage(expAverage(TMA1,period)
,period),period);

def difference = TMA1-TMA2;
plot TypicalPriceZeroLagTEMA = TMA1+difference;
TypicalPriceZeroLagTEMA.setDefaultColor(color.green);

#------Heikin-Ashi Close ZeroLag Triple Exponential Moving Average

rec haopen = CompoundValue(1,((open[1]+high[1]
+low[1]+close[1])/4 + haopen[1])/2, hl2);
def haclose = ((open+high+low+close)/4+haopen
+max(high,haopen)+min(low,haopen))/4;

def HATMA1 = 3*expAverage(haclose,period)
-3*expAverage(expAverage(haclose,period),period)
+expAverage(expAverage(expAverage(haclose,period)
,period),period);

def HATMA2 = 3 * ExpAverage(HATMA1, period)
- 3 * ExpAverage(ExpAverage(HATMA1, period), period)
+ ExpAverage(ExpAverage(ExpAverage(HATMA1, period)
, period), period);

def HAdifference = HATMA1 - HATMA2;

plot HeikinAshiZeroLagTEMA = HATMA1 + HAdifference;
HeikinAshiZeroLagTEMA.setDefaultColor(color.red);

def buySignal = if TypicalPriceZeroLagTEMA &gt; HeikinAshiZeroLagTEMA and TypicalPriceZeroLagTEMA[1] &lt;= HeikinAshiZeroLagTEMA[1] then 1 else 0;

def sellSignal = if TypicalPriceZeroLagTEMA &lt; HeikinAshiZeroLagTEMA and TypicalPriceZeroLagTEMA[1] &gt;= HeikinAshiZeroLagTEMA[1] then 1 else 0;

plot signal = if buySignal or sellSignal then TypicalPriceZeroLagTEMA else double.nan;
#signal.assignValueColor(if buySignal then color.green else color.red);
signal.setLineWeight(5);
signal.SetStyle(curve.points);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkscripter.com/indicator/vervoort-crossover/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

