sum of lots

 

hello ...

at certain price level  (by example for EUR/USD  Bid = 1.0655)  I have active orders (SELL) and pending orders (SELL-STOP )- 2 pending by example 

when the pending Orders activated haw i can get the sum of these orders lots ?   

 
Use '+'
 
Waddah: when the pending Orders activated haw i can get the sum of these orders lots ?   
  1. How do you sum them? You go through the orders, reject pendings and those not for the chart, and sum the lots.
  2. Using OrdersTotal directly and/or no Magic number filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.) Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
Reason: