daz
16th February 2004, 06:24 AM
Hi All,
I have designed a system with an initial stop at 2*ATR away from the entry price and a trailing stop at 4*ATR from the close. I would like to trial this system with the following changes but am having difficulty in writing the code to facilitate this.
1. Move the initial stop to the entry price once the stock has moved say 2*ATR in a profitable direction.
2. Increase the ATR trailing stop loss as the stock moves in a profitable direction. For example, start with 2*ATR and increase this by 0.5*ATR for every 1*ATR movement in the stock, to a maximum trailing stop of 4*ATR.
Any help would be appreciated.
Thanks,
Daz.
I have designed a system with an initial stop at 2*ATR away from the entry price and a trailing stop at 4*ATR from the close. I would like to trial this system with the following changes but am having difficulty in writing the code to facilitate this.
1. Move the initial stop to the entry price once the stock has moved say 2*ATR in a profitable direction.
2. Increase the ATR trailing stop loss as the stock moves in a profitable direction. For example, start with 2*ATR and increase this by 0.5*ATR for every 1*ATR movement in the stock, to a maximum trailing stop of 4*ATR.
Any help would be appreciated.
Thanks,
Daz.