The Bug is in Partial Close MT5
-
@fxDreema @roar @l-andorrà
Ok I will try to explain as simple as possible.
Picture 1 shows shows the EA with partial close block but without the pass once block. It results in that only the stop of the last trade changed. By not using pass once it alters the full target to only the amount extra as the stop is placed. Stop 15 pips below results in 15 pips above as target. (Best to forget picture 1)Picture 2 shows the EA without partial close and the original stop wich is the same on all trades to come.
Picture 3 without partial close shows all stops move x pips away from their origianal entry at the first target.
Picture 4 shows full target is hit.
Picture 5 shows the part of the EA where things go wrong. In MT4 there is no problem at all. All code was typed in and with new blocks. No conversion used.
So to me its clear now that the block Partial Close prevents block Modify Stops from moving all stops seperatly.





-
The problem is that you connected a loop (for each trade) below a block that is supposed to be executed once and below another loop block (unrealized profit. Finally a turn off block is messing it all . You definitely need separate block trees. Firstly, remove block 83 forever. Then disconnect blocks 81 and 71. Finally, connect block 91 to the yellow output dot of block 85 instead. That should work.
-
@l-andorrà The turn off block is related to a very different part of the EA (forget its there) but will see how far I get with your suggestions.
-
I will simplify the EA and show what is wrong with a shared link. I am not looking for automated trading. I have my Ideas and my EA should act on my Ideas. Its purpose is to minimize risk and eliminate emotions. This was working perfect in MT4 but not anymore in MT5 with the exact same creation.
-
This simple bot without pass once is not working at all.
I will look in to it over the weekend again when its raining. Have patience lol.
BTW I am still convinced its a bug in Partial close.

-
No problem, man. Let us know what you get.

-
Ok I am now going to try and get a simple EA but first I will explain in 3 simple pictures what the problem is. I want all stops to move x pips from their original entry price and close 50% of all trades. But in MT5 I can't create this. Either I only get one stop or I can't close 50% at first target. For the record this WORKS PERFECT IN MT4.
Either it gets solved here or I need to dig in the code and when I can't solve it find someone else to solve it for me.



-
I am getting nuts now. I made a simple EA with and without Partial close and in both cases it only moves 1 stop.
I need more time. @l-andorrà.
Here the link https://fxdreema.com/shared/BBzBgyGvbSettings used

-
Considering this is not the only issue related to the MT5 version of fxDreema I'm seriously thinking not to use it for a loooong time. The admin definitely needs to review all the mql5 code part here.
-
@l-andorrà I agree. in that simple EA the block for each trade was also missing. Reason it didn't move all stops. My current broker is on MT5 only since this weekend. I guess I need to find another one with MT4.
-
@ekanters Sad but true.
