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

[amibroker] Re: exit help required



PureBytes Links

Trading Reference Links

Terry, 
       I have tried both Applystop and AFL seperately as below. Both 
methods seem to give different exits to my manual backtesting


Method 1 using AFL.

Cond1 = Cross(Ref(LLV(Low,5),-1),Close);
Cond2 = ValueWhen(Buy,BuyPrice) - 1.6*ATR(30); 
Sell = Cond1 AND Cond1 > BuyPrice OR Cross(Cond2,Close);  
// Cond2 is my max stop loss//

Method 2 using Applystop
ApplyStop(2,2, Cross(Ref(LLV(Low,5),-1),Close),0);
ApplyStop(0,2,2*ATR(30),0,True,True);






------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h4sphpv/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124844549/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/