MQL5 - Improper enum cannot be used

 

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
 

Maybe you meant

MQL_TESTER

In stead of 

MQL5_TESTING
 
Marco vd Heijden:

Maybe you meant

In stead of 

That fixed it! Thanks a lot