Bug in Modify stops
-
Ok maybe I should have placed the problem here. In MT4 all stops are moved x pips above their entry point. Not the case anymore in MT5 where only the last trade is modified and this could result in a big loss incase the last trade is much higher up. 2 pictures included to make things clear. Looked for an alternative but can't find it.


-
Your setting should move all active SL at the moment. However, why are you using that block 83?
-
@l-andorrà It does not move all stops in MT5. MT4 works perfect. Block 83 because half of all trades will still be running until all get stopped out or full target gets hit. (i have some more code at ON TRADE.
-
@ekanters
if you need to make it work in mt5 i suppose to use custom code! -
-
@ekanters
you need to understand that mq4 and mq5 handle orders way different so its more a mt4 vs mt5 thing. -
A response from @fxDreema would be nice. Like, I am working on it.

-
@ekanters you should include a test project that proves the issue.
This test project has no problem with modify stops, so your error is probably somewhere else.
https://fxdreema.com/shared/4mzi31ycb

-
@roar I will do a test like you did. But maybe he fixed it.
I let you know as soon as its ready. But thanks for the example. -
@roar I think we have a misunderstanding. So I will do both in M4 and MT5 and you will see the difference.
-
@ekanters said in Bug in Modify stops:
@roar I think we have a misunderstanding. So I will do both in M4 and MT5 and you will see the difference.


-
@roar Here you can see the difference between MT4 and MT5.
-
@ekanters again, you need to post an example project and make sure the real issue is exactly what you say it is. Here you can see MT5 working perfectly in this kind of setup as well: each trade updates their own SL relative to open price.
https://fxdreema.com/shared/LAWg0SpBb

-
@roar hmm. I guess you are right. I will do that tomorrow. Simple and without the whole EA. Thanks again for the advice.
-
@roar Looks like you are right. But I hate that because now I have to start working again.


-
https://fxdreema.com/shared/n5nOuzqmd
Started at Dec 18 2023
-
@l-andorrà I guess the problem is in block 83 afterall. No problem in MT4 but will check it later in MT5