Right. My error. Did not test it. Https://www.forexsoutheast.asia/atta...1528269055.pngQuote:
Originally Posted by ;
int total_trades = OrdersHistoryTotal();
ought to be
int total_trades = OrdersHistoryTotal()-1;
Here the adjusted one...
https://www.forexsoutheast.asia/atta...1076221198.mq4