MQL5 - Improper enum cannot be used New comment Peternet 2019.06.04 08:37 Hello everyone I coded this very simple DeInit void OnDeinit(const int reason) { if(reason!=3 || MQLInfoInteger(MQL5_TESTING)) if(!MQLInfoInteger(MQL5_TESTING)) { DeleteObjects(); } return; } And when compiling, it returns the following errors. Why does it do that? Does anyone know how to fix it? Thanks in advance Files: Capture.JPG 48 kb [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. cannot convert enum error function error Marco vd Heijden 2019.06.04 08:48 #1 Maybe you meant MQL_TESTER In stead of MQL5_TESTING Peternet 2019.06.04 08:58 #2 Marco vd Heijden: Maybe you meant In stead of That fixed it! Thanks a lot New comment
Hello everyone
I coded this very simple DeInit
And when compiling, it returns the following errors.
Why does it do that? Does anyone know how to fix it?
Thanks in advance