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
Only by specific code
Thanks WHRoeder. I was hoping that MQ4 could do it.
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
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