Array out of range while looping through positions due to one or more position closed or opened during the loop - page 2
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
Unforunately did reversed looping _not_ solve the problem. How do you guys work with positions?
Thank you,
Martin
Unforunately did reversed looping _not_ solve the problem. How do you guys work with positions?
Thank you,
Martin
The problem in your code is that you need a separate counter for your array of positions, since not all positions might be valid and added.
Try this:
The problem in your code is that you need a separate counter for your array of positions, since not all positions might be valid and added.
Try this:
Much obliged - will try.