what's wrong with this code
doesn't work?? My crystal ball has got a crack :(
Have you checked the logs? What do they say?
- "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't
start, won't go in gear, no electrical, missing the key, flat tires -
meaningless.
There are no mind readers here and our crystal balls are cracked.
- Check your return codes for errors, report them
and you would know why.
Don't just silence the compiler, it is trying to help you.
What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after. - Use the debugger or print out your variables, including _LastError and find out why.
Send the full code, lets see
pending orders doesn''t work !!