Download MetaTrader 5

sum of lots

To add comments, please log in or register
Waddah
56
Waddah  

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 ?   

Jose Francisco Casado Fernandez
4411
Jose Francisco Casado Fernandez  
Use '+'
whroeder1
16572
whroeder1  
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
To add comments, please log in or register