Trying to move stop loss to the 50 EMA
-
Hi,
This works for short orders. The stop loss I can see following the EMA. For buys however, the stop loss doesn't get adjusted at all.
https://fxdreema.com/shared/Fxowr11od
Any ideas appreciated
Stephen
-
try to add some "debugging" between your blocks, to find where it stucks

-
Hi
This bit is OK, it is the movement of the stop after the initial buy on the "If Trade" branch which works for shorts but not for longs.
Regards
SM
-
For me it works for buys
I see errors in my logs such as "Invalid TP...". But I guess it depends on the position of the MA line relative to the current price. You may want to check that before modifying stops. Or you may try the Trailing Stop block, I think it is a little bit more clever and there was some option to follow such line.I see some bug in the way input parameters are displayed now in the "Modify stops" block, I will check this later.