lukinho: I tried to delete open ordes.
-
Play videoPlease edit your post.
For large amounts of code, attach it.
- You can not delete open orders, only pending ones.
- You MUST count down. Loops and Closing or Deleting Orders - MQL4 forum
-
You MUST use RefreshRates between server calls (multiple orders, multiple calls,) so OrderClosePrice is updated.

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
Hello guys,
I just wann ask you what is wrong with this piece of code?
I tried to delete open ordes. It delete two sometime three orders and then it write error message Invalid function parameter value. How can I solve it? Or knows somebody how to delete opened orders by better way?
Thank for your responses.
Lukas