Break even difference
-
@fxDreema I have exactly typed my code again from MT4 in to MT5 because my broker is moving to MT5. The whole code works exactly the same as MT4 in the MT5 tester. Except for one thing. When block 89 in MT4 gets triggered it modifies all running trades so with sell trades the lowest one when profit is at its high is the most important when the modified stop is triggerd. Not the case in MT5 where only the stop of the last trade is modified. Of course this could be the highest trade with the lowest or even a loss at that moment in time. A fix would be nice.


-
Is this copied blocks from your MT4 project, or fresh mt5 blocks?
-
-
I cannot help then, it looks like the admin is correcting some mt5 code. may be worth going to the main page and contacting him.
-
Agreed. Working on MT5 is very unreliable lately because of admin's constant modifications.
-
@l-andorrà @fxDreema It also takes time befote you figure out there is a bug.

-
Well you have a "Turn OFF blocks" inside your loop. What blocks does it turn off? Hopefully not the loop blocks themselves?
-
@roar Turn of more sells when first target is reached.

-
@ekanters ok. I dont use that block myself, I find using simple true/false variables are more error-proof.
Maybe that block inadvertently acts as a loop breaker, and since there is no reason to execute it on every loop iteration anyway, you should put the "Turn OFF blocks" after your loop (the yellow output).
This is a valid bug for sure, but should be easy to avoid.
-
@roar Maybe I can repeat the modify stops somehow. I will look in to it and find another way. Will let you know.