yonghing / Publications
Forum
OrderProfit() function removed from MQL5
to calculate total profit of all open orders: double totalprofit ; for( int a = 0 ; a < OrdersTotal (); a ++) if( OrderSelect ( a , 0 , 0 )) totalprofit += OrderProfit (); But the above code only work for MT4/ MQL4 How to code in MQL5 instead