Minor Bug in MetaEditor Beta 1995

 

Edit: Was my bug, sry !

---

The code below triggers a warning called: 

expression has no effect FX5.mq5 547 64


Bug


However FX5_CloseAll() may close all orders and positions, and if it did so, line 547 will become relevant.

 
0xA0B1 FX5:

The code below triggers a warning called: 

expression has no effect FX5.mq5 547 64



However FX5_CloseAll() may close all orders and positions, and if it did so, line 547 will become relevant.

Warning points directly to where the problem is. Change line 547 to:

if (OrdersTotal() + PositionsTotal() == 0) minigrid_check = 0;
 
Ooops, thx, must have been blind lol 
Reason: