Disliked{quote} And that will never work. I mean, that it will work when the trend is strong, but you will lose all the profit in a sideways market. You don't need to "teach" me about basic stuff like this! And, the code for such an entry is also the most basic stuff in coding. I hope that you know how to get Open[1] & Close[1] in order to get the candle direction? And how to get the MA price? https://docs.mql4.com/indicators/ima In reality, I can show you a common situation where you will get 7 SL's in the row, and the "good" trade will not...Ignored
By the way, I can the basic stuff like you pointed "I hope that you know how to get Open[1] & Close[1] in order to get the candle direction? And how to get the MA price?" My issue is how to move the stop orders and stop losses to subsequent candles if no trade is triggered on the initial candle.