pieronetto:
OrderClose error 4051
Hi Again!
The EA works in testing and on real chart, it does closes the order but still getting this error.
What i'm doing wrong here please help and thanks
Hey pieronetto please try to ask questions here where you cannot find the answer yourself!
1) Error 4051 means: "Invalid function parameter value" (Just a little look in the reference!!)
2) Then you have to find out why what function has wrong values:
a) First look at your code and control the variables and their assignments and then
b) (if necessary) print all values of the function and compare what you see with the requirements you find in the reference.
D-
pieronetto: OrderClose error 4051
OSS=OrderSelect(NULL,SELECT_BY_POS,MODE_TRADES);
- NULL is not an integer position.
- Check your return codes (OrderSelect) What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
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
OrderClose error 4051
Hi Again!
The EA works in testing and on real chart, it does closes the order but still getting this error.
What i'm doing wrong here please help and thanks