Is there a way to do indirect referencing in MQ4?

 

I may be calling it by the wrong name... what I'd like to do is this...

string varname = "EURUSD_High";

double <indirect varname> = High[0];

which would be converted to

double EURUSD_High = High[0];

at runtime.

 

Any help would be appreciated.

Thanks,

 

Neil 

 
Only by specific code
double EURUSD_High, EURUSD_Low;
void SetDouble(string name, double value){
   // double <indirect varname> = High[0];
   // which would be converted to
   // double EURUSD_High = High[0];
   if(     name == "EURUSD_High") EURUSD_High = value;
   else if(name == "EURUSD_Low")  EURUSD_Low  = value;
   :
 
WHRoeder:
Only by specific code

Thanks WHRoeder.  I was hoping that MQ4 could do it.