hi can someone help here... how can i look at how many buying and selling lot in MT4...
Hi
Do you mean how many opened buy and sell positions you have? You can count them in simple function and display in logs or on the chart.
For example:
void countOrders(int oMagic,int oType) { double buylots=0; double selllots=0; for(int i=0;i<OrdersTotal();i++) { if(OrderSelect(i,SELECT_BY_POS)) { if(OrderType()==OP_BUY){ buylots+=OrderLots(); } else if (OrderType()==OP_SELL){ selllots=+OrderLots(); } } } }
Have a nice day
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register