External choices

 

Is there a way to offer the user a group of choices (like a list box ) for an external parameter?

I would like to allow the user to select a MACD, Stochastic, CCI, etc. as secondary confirmations. But I would like to limit the choices.

Any way to do this?

 

I use external variables for that:

#property show_inputs

extern bool ShowMACD = false;
extern bool ShowStochastic = false;

...

if( ShowMACD == true){

... do the MACD thing...

}

if( ShowStochastic == true){

... do the stochastic thing...

}

 

agreed - Would be nice to...have a list box option.

I was also going to have an parameter for the options. I was thinking to use a negative number to notate that the option wasn't valid.

 

Yes, MT4 is a little clunky in the indicator/script/expert operator interface department.

Reason: