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

[amibroker] Trailing stop



PureBytes Links

Trading Reference Links

Hi all,
I use the following code as a trailing stop. However, it will 
occassionally cause the stop loss to fall before it has triggered - in 
effect lowering the stop loss. This I don't want to happen.

How do I code it to hold the last highest low, even though it is no 
longer the lowest low in the lookbak period as per the sell formulae.


LBak=7;
Sell=Cross(Ref(LLV(L,LBak),-1),C);

With thanks, in anticipation,

Ian






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/