Is there a way to get the total positons held besides looping with OrderSelect looking for OP_BUY and OP_SELL and counting with OrderLots() and if not,
does anyone know how fast this, especially in a rapidly moving market such as around
a report?
- EURUSD - Trends, Forecasts and Implications (Part 1)
- How to calculate order position size / total amount in USD?
- How can this happen? So strange!
loop with OrderSelect is only one way to count positions
ScottB wrote:
Is there a way to get the total positons held besides looping with OrderSelect looking for OP_BUY and OP_SELL and counting with OrderLots() and if not, does anyone know how fast this, especially in a rapidly moving market such as around a report?
Is there a way to get the total positons held besides looping with OrderSelect looking for OP_BUY and OP_SELL and counting with OrderLots() and if not, does anyone know how fast this, especially in a rapidly moving market such as around a report?
Thanks, I was afraid of that. I now keep the range of prices where I have open orders and only check if the price is in that range.
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