| 
 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> </DIV>
<DIV><FONT face=Arial size=2>Please comment and backtest on your own data 
.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/*bow tie   ver2.0 from Dave Landry<BR>By 
David Holzgrefe<BR>12.05.2001*/</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>setup = low< Ref(low,-1);<BR>buysignal = high> 
ref(high,-1);</DIV>
<DIV> </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> </DIV>
<DIV>cond1=cross (ma(close, 10 ),ema (close, 30));<BR>cond2=ref(cross (ma(close, 
10 ),ema (close, 30)),-1)>0;<BR>cond3=ref(cross (ma(close, 10 ),ema (close, 
30)),-2)>0;<BR>cond4=ref(cross (ma(close, 10 ),ema (close, 
30)),-3)>0;<BR>cond5=ref(cross (ma(close, 10 ),ema (close, 
30)),-4)>0;<BR>cond6=ref(cross (ma(close, 10 ),ema (close, 
30)),-5)>0;<BR>cond7=ref(cross (ma(close, 10 ),ema (close, 
30)),-6)>0;<BR>cond8=ref(cross (ma(close, 10 ),ema (close, 
30)),-7)>0;<BR>cond9=ref(cross (ma(close, 10 ),ema (close, 
30)),-8)>0;<BR>cond10=ref(cross (ma(close, 10 ),ema (close, 
30)),-9)>0;</DIV>
<DIV> </DIV>
<DIV>condtrue=cond1 or cond2 or cond3 or cond4 or cond5 or cond6 and cond7 and 
cond8 and cond9;</DIV>
<DIV> </DIV>
<DIV> /* Moving averages must be in the correct order at the buy signal 
*/<BR> <BR>condorder = ma(close,10) > ema(close,20) AND ema(close,20) 
>ema(close,30); </DIV>
<DIV> </DIV>
<DIV>/* a lower low than yesterdays low.   The pull back*/</DIV>
<DIV> </DIV>
<DIV>lowref= (L<Ref(L,-1) OR Ref(L,-1)<Ref(L,-2)) and<BR>L > 
EMA(C,20);</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </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> </DIV>
<DIV><BR>/*sell = c<ma(close,20);*/<BR>sell= close < sar();</DIV>
<DIV> </DIV>
<DIV>/* NOTES<BR>The Bow Tie is used to catch a change in trend from down to up; 
the <BR>> trend is defined from using three moving averages.<BR>> <BR>> 
10-day simple moving average<BR>> <BR>> 20-Day exponential moving 
average<BR>> <BR>> 30-Day exponential moving average<BR>> <BR>>The 
proper order for a down trend is; 30-Day ema > 20-Day ema > 10-<BR>> 
Day sma<BR>> <BR>> The proper order for an up trend is; 10-Day sma > 
20-Day ema > 30-<BR>Day <BR>> ema<BR>> <BR>> The name for the set up 
comes from the pattern made from the moving <BR>> averages converging and 
spreading out again as the trend is <BR>changing.<BR>> <BR>> The rules for 
the Bow Tie are as follows,<BR>> <BR>> 1. The moving averages must gofrom 
the correct down trend order to <BR>> the correct up trend order crossing 
together making an appearance <BR>of <BR>> a bow tie.<BR>> <BR>> 2. We 
wait for a correction e.g. a lower low than yesterdays low.<BR>> <BR>> 3. 
Then we buy the next higher high than the day before. If you are <BR>> not 
filled keep moving the order down as if trading a pullback <BR>> (The pattern 
remains valid until the market trades below the 20-Day <BR>> ema).<BR>> 
<BR>> 4. Place a stop at the lowest bar in the set up.</DIV>
<DIV> </DIV>
<DIV>*/<BR></FONT></DIV></BODY></HTML>
------=_NextPart_001_00E2_01C0DBF9.74AFECC0--
Attachment:
 
Attachment:
Description: "Description: Binary data" 
 |