Partial Close
-
Still Strugling with the online version. This is an exact copy of the desktop version. From block 1 to 81 both versions work perfect. It's the partial close area in the online version (Block 81 to 107) that doesn't work. The Robot Terminates at Block 81. No Idea why.

-
So you say that block 107 runs when it doesn't have to run? Above it block 103 always passes and we can skip it. So, is block 105 right?
-
No I am saying the EA can't get past Block 81. The blocks (No Trade Running) are a must because often the EA terminates when not all trades are closed. That is the reason for Block 55, 77 and 105.
In the desktop version when the EA gets to block 81 it will close 50% of all trades and trails the remaining 50% of all trades. In the online version when the EA gets to block 81 it closes all trades and the robot terminates. The Robot only terminates when trades are FULLY CLOSED. This is set in the on trade section. See second picture.
P.S. Or as you say it goes straight from Block 81 to 107. That's possible.

-
Below the desktop version. Above is all online version.

-
Ok I have checked and double checked. Time frame and Inputs are exactly the same and below the result of both versions. 10 trades total.
Note: In the desktop version variables are used and in the online version Constants are Used.

-
Inputs on both EA's except one


-
You know, the desktop version is very old. I think I even added some code in that "close (partially)" block. But also I revised the code of many blocks, because I decided to make the code of each block in MQL4 and MQL5 exactly the same. So I think of 2 scenarios - the desktop version is wrong and the web version does it right, or I introduced some bug in the web version with my latest updates.
If you know which block is wrong, can you make a simpler example that shows that the particular block is not working as expected?
-
@fxdreema Now that's a very good question. I do my best. If you like I could send both to you in private, but not sure how. Anyway I do my best to explain in a simple way. Now its bed time for me so it need to wait for a day.

-
@fxdreema Ok I made 4 simple EA's and got 4 different outcomes. No need to reply here. Will send full but very simple report by email with all 4 bots included.

-
@fxDreema Solved one problem in EA nr 1. Counter ID's must be different otherwise "PARTIAL CLOSE" wil not work


-
@fxDreema Ok I am getting somewhere. This seems to work. Now lets see if I can rebuild the original EA now. So no need to check my emails. Will let you know when done.


-
@fxDreema Everytime I think I have solved the problem I get another one. The EA below is working but the big question is when I use ON TRADE CLOSED as a safety ie close trades Fully by hand Its not working anymore and the EA Terminates at the partial close level. Anyway I think the problem must be found in that area. But I keep digging.


-
@fxDreema Here the example. I will wait for a response now. Thanks a lot in advance.

-
SOLVED
