User input based on input selection in Drop down window

 

Hello,


I am trying to create EA where I want to take user input based on the input he selects in the drop down window. Is it possible to do this combo enum type in MQL5.


Thanks MQL5 community.


Best Regards,

 
Puneet55: Is it possible to do this combo enum type in MQL5.
Of course, 5 or 4
enum IndiType { IT_SMA=MODE_SMA,     // moving_average
                IT_EMA=MODE_EMA      // exponential_avg
}
input IndiType indic;
⋮
   hMa= iMA(…, (ENUM_MA_METHOD)indic, …); // Only SMA/EMA will be allowed here