Will somebody out there please help me before I toss MQL4 out the window. I have written a program for a simple EA. Everything works except for anything to do with OrderCLose. OrderSend works fine, but closing an order works intermittently. I must be missing something with OrderClose. My program only has one order open at any time, and so it can't be that hard for the server to close one simple order. However, the OrderClose works unpredictably. Sometimes it will close and other times it will not. How could this be? I've tried increasing the spread, but this does not give consistent results. Could somebody please provide me with a snippet of code that would guarantee my program will close an order every time I invoke the OrderClose function!! Thanks!!
- OrderSend / OrderClose use wrong prices!?
- OrderClose error on three EMA crosses EA
- need help. can somebody please find out why this EA is not working?
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