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

[amibroker] Re: Trailing Stops ???



PureBytes Links

Trading Reference Links

> 
> trailstop = ApplyStop(stopTypeTrailing,stopModePoint,0.0020,1);
> Buy1 = Time AND H > ValueWhen(TimeNum()==130000,O) + 0.0015;
> Buy = Buy1 ;
> BuyPrice = Buy + 0.0004; //allow for spread
> Sell2 =L <= (ValueWhen(Buy,L) - 0.0002);
> Sell = IIf(BuyPrice + 0.0025,Sell2, trailstop);
> SellPrice = Sell; 

not enough coffee...
that sell code should have read Sell = IIf(BuyPrice + 0.0025, trailstop,Sell2);




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/