declaring custom ENUM in the wizard header of a module

 

Hello


I wan't to use custom enum in wizard, the enum is :

enum MAMethods
  {
   Simple=MODE_SMA,
   Exponential=MODE_EMA,
   Smoothed=MODE_SMMA,
   LinearWeighted=MODE_LWMA,
   AMA=IND_AMA,
   DEMA=IND_DEMA,
   FRAMA=IND_FRAMA,
   TEMA=IND_TEMA,
   VIDYA=IND_VIDYA

  };


and I declare in the wizard block :

// wizard description start
//+----------------------------------------------------------------------+

//| Description of the class    

....

//| Parameter=m_SlowMAMethod,MAMethods, IND_AMA                          |

...

// wizard description end


but the expert wizard don't show the mqh, when I remove this line

the wizard see the mqh, seems there is a problem with the type...

I add a privENUM.mqh in the main mqh where I put the declaration of

the enum, but don't work....

=> how to use custom type in the mqh wizard header ?


Thank yu

Documentation on MQL5: Math Functions / MathExp
Documentation on MQL5: Math Functions / MathExp
  • www.mql5.com
Math Functions / MathExp - Documentation on MQL5
 

I modify my enum, more clean :

enum MAMethods
  {
   SMA,
   EMA,
   SMMA,
   LWMA,
   AMA,
   DEMA,
   FRAMA,
   TEMA,
   VIDYA
  };
 
nonor:

I modify my enum, more clean :

//| Parameter=m_SlowMAMethod,MAMethods, AMA,Method of Slow MA                          |
 

Thank you for answer, but it does not work, with this line in the header,

the module don't show up in the list of module when creating an expert based on it

with the wizard.....

 

I finally replace the custom enum with the standard one and generate my expert,

I will replace the standard enum by mine in the source code.

Thank yu

Reason: