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

[amibroker] ApplyStop - Trailing



PureBytes Links

Trading Reference Links

I am trying to code a trailing stop level of a support line that changes over time and need to use the "volatile" perameter in ApplyStop function.
 
The problem I have, my Support line formula computes an absolute value, therefore I must subtract the support value from the highest high.
 
The catch is that ApplyStop provides the information I need to the Sell array ... so I am in a catch22. I need the sell bar number to compute the proper value of buy price for ApplyStop and I need ApplyStop to run first to give me the Sell array.
 
So what I need, is to be able to compute the buy price before running ApplyStop OR somehow be able to use absulute values with ApplyStop.
 
Any suggestions?  Do I need to gog to Custom Backtester?
 
 
Tx
Ara
__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___