I need to place pending orders (both buy and sell) on the beggining of a new candle. The pendings should be placed above and below the previous candle's close. The distance for the pendings should be x amount of pips (where x is = 25% of previous candle's ATR).
eg Weekly AUDJPY Candle yesterday closed at 95.066. The ATR of that candle was 1745 (highest - lowest ===> 95.283 - 93.538 = 1745) thus the pendings should be placed at 1745 x 25% @ 436 pips above the candle's close.
Pending buy 95.066 + 436 = 95.502
Pending sell 95.066 - 436 = 64.630
Simple ?
Thanks in advance
Matt