Hi,
I tested the example , http://fxdreema.com/shared/7xv6Cjoxc , but it does something else as you said.
I want a lagging %(#FF0000)[take profit] hedge profit (loop) %(#FF0000)[ red text = strike out text ]:
When in 10 pip profit, %(#FF4040)[sett close trade at] open hedge trade (open opposite direction trade) at 5 pip profit in case the trade start to go against me.
When in 16 pip profit, %(#FF4040)[sett close trade at ]open hedge trade (open opposite direction trade) at 10 pip profit in case the trade start to go against me.
When in 34 pip profit, %(#FF4000)[sett close trade at] open hedge trade (open opposite direction trade) at 30 pip profit in case the trade start to go against me.
When in 48 pip profit, %(#FF4000)[sett close trade at] open hedge trade (open opposite direction trade) at 42 pip profit in case the trade start to go against me.
So if the trade start to go against me, I have already locked in significant profit level and can close the hedge again if the trade start to go in my favor again.
I set manual close hedged position levels (close opposite direction trades open) if the trade starts to go in my favor again, at +2 pip from the opened hedge level: at 7 pip profit, 12 pip profit, 32 pip profit and 44 pip profit.
[ Same as before, but I use a variable, and the variable opens a hedge trade, instead of modifying a take profit/close at spesific profit level.]
So I better use MT4 as MT5 does not support/allow hedging.