How can i caltulate the sum profit of open sell orders

 

hello,


does anyone have an idea on how can i calculate the sum profit of open sell orders only and open buy orders only


regards

 
Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help 2017.04.21
 

void OnTick()
  {
  double ORDER_PRICE_OPEN;
  
  Comment ("open order: ",ORDER_PRICE_OPEN);
  
  }

 
  1. Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
              Messages Editor
  2. yoichi300: does anyone have an idea on how can i calculate the sum profit of open sell orders only and open buy orders only
    Your code displays an uninitialized variable; garbage. Where do you go through your open orders, get their types, sum their profits and print the results?