@roar Thats a really complex EA! 🙂
Have tested it and it doesn't quite do what I want but dont think I've really explained it properly.
EA Workflow (Short Example)
IF
Candle close is above 68 level on RSI (21 Median RSI).
THEN
Place a pending sell order 3 pips under the last DOWN candle low before the current high.
IF PENDING TRIGGERED
Place another pending sell at yesterdays high
(IF MORE THAN ½ ADR10 ABOVE TRIGGERED SELL ORDER)
AND
Place another pending sell at the day before yesterdays high
(IF MORE THAN ½ ADR10 ABOVE PENDING SELL ORDER AT YESTERDAYS HIGH)
IF INITIAL PENDING NOT TRIGGERED
Repeat the above trailing the pending order up 3 pips under the last DOWN candle as new highs are formed until the pending is triggered.
So when the pending triggers we should have a sell order and either 1 or 2 more
NO STOP LOSS IS USED.
TP should be set at 1X ADR10 below price.
Reverse the above for buy orders.