Muhammad Mudasir:
i am trying few hours to count total open position of magic number 0 for mt5. and want to get open price of all orders?
i also tried SymbolSelect, it returns me only first order openprice and lot sizes . but how to retrive all open order lot size and openprice.
i really appreciate if some one help
Use PositionsTotal();
https://www.mql5.com/en/docs/trading/positionstotal
Documentation on MQL5: Trade Functions / PositionsTotal
- www.mql5.com
Trade Functions / PositionsTotal - Reference on algorithmic/automated trading language for MetaTrader 5
Roberto Jacobs:
Use PositionsTotal();
https://www.mql5.com/en/docs/trading/positionstotal
Got it bro thanks for the help
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
i am trying few hours to count total open position of magic number 0 for mt5. and want to get open price of all orders?
i also tried SymbolSelect, it returns me only first order openprice and lot sizes . but how to retrive all open order lot size and openprice.
i really appreciate if some one help