Alberto_jazz:
On the EURUSD graph I need to obtain “count_long_EURUSD” and so on.
What can I specify in GlobalVariableGet()?
You already have the code, you virtually posted it above . . .
double ValueFromGV; ValueFromGV = GlobalVariableGet( StringConcatenate( "count_long_",Symbol() ) );
Thank you very much!

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
Hi, I have a problem with GlobalVariableGet() function.
I define my variables in this way:
string count_long = StringConcatenate("count_long_",Symbol()) ;
GlobalVariableSet(count_long,1) ;
The expert runs on different pairs.
So I obtain “count_long_EURUSD”, “count_long_EURJPY”, “count_long_GBPUSD” ...
How can I recall the exact variable using GlobalVariableGet()?
On the EURUSD graph I need to obtain “count_long_EURUSD” and so on.
What can I specify in GlobalVariableGet()?
Thank you!