The warning message is pretty clear? Check the return value from OrderClose and OrderSend to see of an error did not occur.
https://www.google.com.au/search?q=return+value+of+'OrderClose'+should+be+checked
rex_loner: should be checked. What am I supposed to do?
How about you add code to check them?
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
Hi,
I found this code in some article around here.
Now, there's no such function as Trade.mqh in MQL4, so I change Function Call of void Trade() to:
After compiling, there are warnings telling me that return value of 'OrderClose' should be checked and return value of 'OrderSend' should be checked. What am I supposed to do? Can anyone help me with this?
Regards,
Aras