Check your return codes.
Don't look at GLE/LE unless you have an error. Don't just silence the compiler, it is trying to help you.
What are Function return values ? How do I use them ? - MQL4 programming forum
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
Hello my friends,
Ive got a little problem with a part of my ea.
OrderClose(OrderTicket(),Lots,Bid,0,Black);
return value of 'OrderSend' should be checked
return value of 'OrderSend' should be checked
I tried nearly everything for a couple of hours and need help now.
And yes, ive already used google and the search function on this side. I guess im just blind for my own mistakes.
Please help me. Thanks in advance!