Download MetaTrader 5

Modification help...

To add comments, please log in or register
Any questions regarding MQL5 Cloud Network? FAQ will help you!
qgmql
138
qgmql 2015.03.04 11:43 

I have a Pivot Point Indicator, which has parameters,

input string comment2 = "Typical=0, Weighted=1"; // Just a help string for second input.
input int Model = 0; // Will be 0 or 1 only.

Can this thing be changed into a drop down (or combo??) box? where users have to select from "Typical" or "Weighted" instead of typing 0 or 1. ???

Keith Watford
Moderator
9618
Keith Watford 2015.03.04 11:58  

Yes.

Use enum 

qgmql
138
qgmql 2015.03.05 16:27  
Any example please?
Baby Blue
20
Baby Blue 2015.03.05 16:31  
https://docs.mql4.com/basis/variables/inputvariables
To add comments, please log in or register