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

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