I use the above code as a trailing stop.
The problem is that it can allow the trailing stop to fall without an
exit being triggered.i.e. The stop is actually lowered.
What I would like to do, is to maintain the highest value that has been
achieved in the lookback period, and ignore any subsequent lower values.
I can't help but feel there is a pretty simple answer - however, it
eludes me Im afraid.
Can anyone help me out on this?
Cheers,
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
SPONSORED LINKS
| Investment management software | Real estate investment software | Investment property software |
| Software support | Real estate investment analysis software | Investment software |
YAHOO! GROUPS LINKS
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
