Demosfen:
Why do I get 4202 error from this code? (in strategy tester it works fine!)
This does not make any sense.
Why are you calling GetLastError() ?
Check your return codes for errors, and report them
including
GLE/LE and your variable values. Don't look at GLE/LEunless 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
Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.
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
Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.
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
Why do I get 4202 error from this code? (in strategy tester it works fine!)
This does not make any sense.