| 
 PureBytes Links 
Trading Reference Links 
 | 
Phil - have you charted this: Buy - 2*ATR(30)? TO make sure its doing
what you want?
Isn't Buy always Zero or One? So that would mean Cond2 will never be true.
Same goes for your Sell statement.
- chris
--- In amibroker@xxxxxxxxxxxxxxx, "pennellp2000" <pennellp2000@xxxx>
wrote:
> 
> Cond1 is my trailing stop and Cond2 is my max stoploss. I do not want 
> to exit in the area between my entry price and my max loss price. Any 
> idea how I would put this in AFL. My attempt below doesn't work.  
> Thanks in advance   Phill
> 
> 
> Cond1=   Cross((HighestSince(Buy,High)-3.6*ATR(30)), Close);
> Cond2 =  Cross((Buy - 2*ATR(30)),Close);
> 
> Sell= IIf((Close < Buy and Close > Cond2),0, Cond1 OR Cond2);
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
 
 |