Hello,
I have now let it run on a Demo for 1 day.
It looks like everything is working, including closing logic IF there is only 1 trade open. I saw it closed 3 trades perfectly with 100 in profit, but there was just that single trade open.
I saw it closed this night a basket of 8 trades, but this time in sum with a profit of 500 and not 100.
So what I see in backtests is the same, sometimes it closes with the 500, sometimes with a minus, sometimes with a completely different plus. The closing logic seems to fail when more than 1 trade is open.
I used the ex4 from your example provided for this test. Do you have any idea what is happening here ? I have no errors in the log at all.
Regards
andy