I have idea. But i don't know mq4 code much.
Previous high is lower than 2nd previous high, then buy pending
order at previous high * 2% or 1% and when price at current candle touch that order buy.
Previous low is higher than 2nd previous low, then sell pending order at previous low * -2% or -1% and when price at current candle touch that order
Any period. No target No stop loss. Trailing stop loss like opposite.
Grateful to anyone, who can make mq4 code. I need help. Only MT4.