username77
username77
is possible to change the order from the oldest order by date to the most recent? function to close orders is on line 4403 of Account Protector.mqh file?
just that was my idea. what do you mean it does not guarantee closing in order or open trades? because delays between mt4 and close on broker side?
I see that it check if orders have been closed or not. I will test next days and if i will face problem I will let you know. Thanks very...
> You could change this line inside the void CAccountProtector::Close_All_Positions() function: `for (int i = total - 1; i >= 0; i--)` to: `for (int i = 0; i
> You need to comment out both instances of `ArrayResize(PositionsByProfit, i);` in the `CAccountProtector::Close_All_Positions()` function. This will eliminate the error. > > Also, if you are using profit/loss conditions, you...