Total Profit of all currently opened orders

 

How can determine the total profit of all currently opened orders in mql4

 
Add the profits from all the orders together.
 
OrderSelect / Position select loop over open orders and sum the profits. Do you really want all, or do you mean current EA (MN) or do you mean the current chart?
          Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 programming forum
          PositionClose is not working - MQL5 programming forum
          MagicNumber: "Magic" Identifier of the Order - MQL4 Articles