How to make the user select from a list of inputs for a particular input ?

 

Normally if we include a string input, one can enter any string.

But i want to restrict to choose from a list of 3 strings just like in a combo box

 
chandra100:

Normally if we include a string input, one can enter any string.

But i want to restrict to choose from a list of 3 strings just like in a combo box. 

Use an ENUM.
 
chandra100:

Normally if we include a string input, one can enter any string.

But i want to restrict to choose from a list of 3 strings just like in a combo box. 

Something like this . . .

input ENUM_MA_METHOD MA_Method=MODE_SMMA;

from here: https://www.mql5.com/en/docs/basis/variables/inputvariables

Documentation on MQL5: Language Basics / Variables / Input Variables
Documentation on MQL5: Language Basics / Variables / Input Variables
  • www.mql5.com
Language Basics / Variables / Input Variables - Documentation on MQL5
 
angevoyageur:
Use an ENUM.
Thanks. i think it will work for user created ENUMS too.