fxsaber: Well then we can recommend everyone to urgently stop trading on the real.
Repeated several times.
It is clearly seen that the problem is in the positions, which were formed as a result of the flip (counter trade of higher volume). The position formed in this way cannot be processed correctly.
In other cases (without a flip) positions are processed correctly, no matter how many times you can add or cut, but once the position is reversed - it cannot be processed correctly.
Added.
If we keep adding/cutting positions, control is restored, but the residual volume remains unaccounted for (and doesn't count anywhere else).
Here. Doing this. Started the Expert Advisor on a chart. I opened a position manually. I have added a position twice and cut it once. It shows 4 trades correctly in lags. After that I reversed the position and got a problem: I have a position but no deals.
Here is the log after the last two operations.
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) 1
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) GBPUSD
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) Position found
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) Total trades in position: 4
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) 1
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) GBPUSD
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) Position found
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) Total trades in position: 0
It can be seen that no trades are seen in the position. EA is still hanging on the chart and there is 0 in the comment.
I removed the EA and reset it to the chart, it does not see trades of a position, the comment is 0.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Strange.... What could be the problem then?
After that I reversed the position - problem - there is a position but no trades.
Reproduced your version and mine! What a bug, what a bug! That sucks.
Wo!!! And not just when flipping, but just throwing it on the chart again and not seeing the trade! On the previous page I wrote.
Well then we can recommend everyone to urgently stop trading on the real.
Repeated several times.
It is clearly seen that the problem is in the positions, which were formed as a result of the flip (counter trade of higher volume). The position formed in this way cannot be processed correctly.
In other cases (without a flip) positions are processed correctly, no matter how many times you can add or cut, but once the position is reversed - it cannot be processed correctly.
Added.
If we keep adding/cutting positions, control is restored, but the residual volume remains unaccounted for (and doesn't count anywhere else).
Developers, hello!
Developers, hello!
Write to the SD.
Strange.... What could be the problem then?
Here. Doing this. Started the Expert Advisor on a chart. I opened a position manually. I have added a position twice and cut it once. It shows 4 trades correctly in lags. After that I reversed the position and got a problem: I have a position but no deals.
Here is the log after the last two operations.
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) 1
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) GBPUSD
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) Position found
2016.12.05 14:25:44.157 Get current commission of pos (GBPUSD,M5) Total trades in position: 4
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) 1
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) GBPUSD
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) Position found
2016.12.05 14:25:44.670 Get current commission of pos (GBPUSD,M5) Total trades in position: 0
It can be seen that no trades are seen in the position. EA is still hanging on the chart and there is 0 in the comment.
I removed the EA and reset it to the chart, it does not see trades of a position, the comment is 0.
Checking.
Attach your Expert Advisor.
Check
Checking.
Attach your expert.