[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bow tie ver2.0



PureBytes Links

Trading Reference Links

Please comment and backtest on your own data .


/*bow tie ver2.0 from Dave Landry
By David Holzgrefe
12.05.2001*/


setup = low< Ref(low,-1);
buysignal = high> ref(high,-1);

/* Bow Tie conditions - Short term moving average has crossed the long termmoving average sometime in the last xn days - Add more conditions for moredays */ 

cond1=cross (ma(close, 10 ),ema (close, 30));
cond2=ref(cross (ma(close, 10 ),ema (close, 30)),-1)>0;
cond3=ref(cross (ma(close, 10 ),ema (close, 30)),-2)>0;
cond4=ref(cross (ma(close, 10 ),ema (close, 30)),-3)>0;
cond5=ref(cross (ma(close, 10 ),ema (close, 30)),-4)>0;
cond6=ref(cross (ma(close, 10 ),ema (close, 30)),-5)>0;
cond7=ref(cross (ma(close, 10 ),ema (close, 30)),-6)>0;
cond8=ref(cross (ma(close, 10 ),ema (close, 30)),-7)>0;
cond9=ref(cross (ma(close, 10 ),ema (close, 30)),-8)>0;
cond10=ref(cross (ma(close, 10 ),ema (close, 30)),-9)>0;

condtrue=cond1 or cond2 or cond3 or cond4 or cond5 or cond6 and cond7 andcond8 and cond9;

/* Moving averages must be in the correct order at the buy signal */
 
condorder = ma(close,10) > ema(close,20) AND ema(close,20) >ema(close,30); 

/* a lower low than yesterdays low. The pull back*/

lowref= (L<Ref(L,-1) OR Ref(L,-1)<Ref(L,-2)) and
L > EMA(C,20);




buy= condtrue and condorder and lowref and setup and buysignal; //you canremove the buysignal and watch for the price breackout above the pull backif you have live data


/*sell = c<ma(close,20);*/
sell= close < sar();

/* NOTES
The Bow Tie is used to catch a change in trend from down to up; the 
> trend is defined from using three moving averages.
> 
> 10-day simple moving average
> 
> 20-Day exponential moving average
> 
> 30-Day exponential moving average
> 
> The proper order for a down trend is; 30-Day ema > 20-Day ema > 10-
> Day sma
> 
> The proper order for an up trend is; 10-Day sma > 20-Day ema > 30-
Day 
> ema
> 
> The name for the set up comes from the pattern made from the moving 
> averages converging and spreading out again as the trend is 
changing.
> 
> The rules for the Bow Tie are as follows,
> 
> 1. The moving averages must go from the correct down trend order to 
> the correct up trend order crossing together making an appearance 
of 
> a bow tie.
> 
> 2. We wait for a correction e.g. a lower low than yesterdays low.
> 
> 3. Then we buy the next higher high than the day before. If you are 
> not filled keep moving the order down as if trading a pullback 
> (The pattern remains valid until the market trades below the 20-Day 
> ema).
> 
> 4. Place a stop at the lowest bar in the set up.

*/


------=_NextPart_001_00E2_01C0DBF9.74AFECC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4613.1700" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#00ffff>
<DIV><FONT face=Arial size=2>Hi all here's my latest ver of the bow 
tie</FONT></DIV>
<DIV><FONT face=Arial size=2>thank Geoff on the tip to multi 
conditions</FONT></DIV>
<DIV><FONT face=Arial size=2>Steve W will have a play with you ref idea 
next..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please comment and backtest on your own data 
.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>/*bow tie&nbsp;&nbsp; ver2.0 from Dave Landry<BR>By 
David Holzgrefe<BR>12.05.2001*/</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>setup = low&lt; Ref(low,-1);<BR>buysignal = high&gt; 
ref(high,-1);</DIV>
<DIV>&nbsp;</DIV>
<DIV>/* Bow Tie conditions - Short term moving average has crossed the longterm 
moving average sometime in the last xn days - Add more conditions for more days 
*/ </DIV>
<DIV>&nbsp;</DIV>
<DIV>cond1=cross (ma(close, 10 ),ema (close, 30));<BR>cond2=ref(cross (ma(close, 
10 ),ema (close, 30)),-1)&gt;0;<BR>cond3=ref(cross (ma(close, 10 ),ema (close, 
30)),-2)&gt;0;<BR>cond4=ref(cross (ma(close, 10 ),ema (close, 
30)),-3)&gt;0;<BR>cond5=ref(cross (ma(close, 10 ),ema (close, 
30)),-4)&gt;0;<BR>cond6=ref(cross (ma(close, 10 ),ema (close, 
30)),-5)&gt;0;<BR>cond7=ref(cross (ma(close, 10 ),ema (close, 
30)),-6)&gt;0;<BR>cond8=ref(cross (ma(close, 10 ),ema (close, 
30)),-7)&gt;0;<BR>cond9=ref(cross (ma(close, 10 ),ema (close, 
30)),-8)&gt;0;<BR>cond10=ref(cross (ma(close, 10 ),ema (close, 
30)),-9)&gt;0;</DIV>
<DIV>&nbsp;</DIV>
<DIV>condtrue=cond1 or cond2 or cond3 or cond4 or cond5 or cond6 and cond7 and 
cond8 and cond9;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;/* Moving averages must be in the correct order at the buy signal 
*/<BR>&nbsp;<BR>condorder = ma(close,10) &gt; ema(close,20) AND ema(close,20) 
&gt;ema(close,30); </DIV>
<DIV>&nbsp;</DIV>
<DIV>/* a lower low than yesterdays low.&nbsp;&nbsp; The pull back*/</DIV>
<DIV>&nbsp;</DIV>
<DIV>lowref= (L&lt;Ref(L,-1) OR Ref(L,-1)&lt;Ref(L,-2)) and<BR>L &gt; 
EMA(C,20);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>buy= condtrue and condorder and lowref and setup and buysignal; //you 
can remove the buysignal and watch for the price breackout above the pull back 
if you have live data</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>/*sell = c&lt;ma(close,20);*/<BR>sell= close &lt; sar();</DIV>
<DIV>&nbsp;</DIV>
<DIV>/* NOTES<BR>The Bow Tie is used to catch a change in trend from down to up; 
the <BR>&gt; trend is defined from using three moving averages.<BR>&gt; <BR>&gt; 
10-day simple moving average<BR>&gt; <BR>&gt; 20-Day exponential moving 
average<BR>&gt; <BR>&gt; 30-Day exponential moving average<BR>&gt; <BR>&gt;The 
proper order for a down trend is; 30-Day ema &gt; 20-Day ema &gt; 10-<BR>&gt; 
Day sma<BR>&gt; <BR>&gt; The proper order for an up trend is; 10-Day sma &gt; 
20-Day ema &gt; 30-<BR>Day <BR>&gt; ema<BR>&gt; <BR>&gt; The name for the set up 
comes from the pattern made from the moving <BR>&gt; averages converging and 
spreading out again as the trend is <BR>changing.<BR>&gt; <BR>&gt; The rules for 
the Bow Tie are as follows,<BR>&gt; <BR>&gt; 1. The moving averages must gofrom 
the correct down trend order to <BR>&gt; the correct up trend order crossing 
together making an appearance <BR>of <BR>&gt; a bow tie.<BR>&gt; <BR>&gt; 2. We 
wait for a correction e.g. a lower low than yesterdays low.<BR>&gt; <BR>&gt; 3. 
Then we buy the next higher high than the day before. If you are <BR>&gt; not 
filled keep moving the order down as if trading a pullback <BR>&gt; (The pattern 
remains valid until the market trades below the 20-Day <BR>&gt; ema).<BR>&gt; 
<BR>&gt; 4. Place a stop at the lowest bar in the set up.</DIV>
<DIV>&nbsp;</DIV>
<DIV>*/<BR></FONT></DIV></BODY></HTML>

------=_NextPart_001_00E2_01C0DBF9.74AFECC0--

Attachment:

Attachment: Description: "Description: Binary data"