Download MetaTrader 5
To add comments, please log in or register
Track Market top sellers!
nonor
89
nonor 2013.11.14 21:06 

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
nonor
89
nonor 2013.11.14 22:05  

I modify my enum, more clean :

enum MAMethods
  {
   SMA,
   EMA,
   SMMA,
   LWMA,
   AMA,
   DEMA,
   FRAMA,
   TEMA,
   VIDYA
  };
Alain Verleyen
Moderator
28564
Alain Verleyen 2013.11.14 23:19  
nonor:

I modify my enum, more clean :

//| Parameter=m_SlowMAMethod,MAMethods, AMA,Method of Slow MA                          |
nonor
89
nonor 2013.11.15 07:28  

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.....

nonor
89
nonor 2013.11.15 14:02  

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

/
To add comments, please log in or register