chandra100:
Use an ENUM.
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.
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
- 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.
Use an ENUM.
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
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.