MQL5 getting the number of open positions for a specific symbol
- How to number open trades on chart
- How to code?
- Get open positions tickets based on the symbol
Here are all position listed: https://www.mql5.com/en/docs/function_indices.
Search (Ctrl-F) for "open posit" and you'll find PositionsTotal()
- www.mql5.com
Hi programmers, ive been trying to figure out a way of getting the number of open positions for a specific symbol in an ea for example the number of open positions in USDCHF, does anyone have an idea i'd appreciate any idea on how to start
- 2020.12.19
- www.mql5.com
I managed to get the best way of doing it in mql5, so it goes
I managed to get the best way of doing it in mql5, so it goes
1. Please do not confuse two concepts: "Pending Order" and "Position"
2. Please insert the code correctly: when editing a message, press the button
and paste your code into the pop-up window