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
Meanwhile, other orders, on different currencies, close fine.
I don't think the problem is that I'm sending it the wrong price value, after all, it works 90% of the time, and my program always retrieves the current price immediately before closing an order. What could be causing these sporadic and seemingly random failures?
Is there any other way to close an order aside from MtCloseOrder? And since the documentation doesn't specify, what exactly does the function want for the 'price' parameter (I assumed it was the closing price of the order, which must match current market price).