Variable issue when running EA on multiple pairs
-
I want to run my EA on multiple pairs at the same time.
I just noticed that my variables are shared between multiple pairs. This is making my EA a mess. How can I have variables in its own space for each pair?
-
are you using global variables?
use instead of them local variables:

... -
I don't see any option to define "Global" vs "Local" variables. I am using the variable just like the screenshot you sent.
How do I ensure I am using Local or Global?
-
Those variables are global. There are actually members of a class, not real global variables... but they are still global for the fxDreema project. There are no local variables.
Variables can be arrays by the way, just add [] after the name. But arrays are hard to use in MQL in my opinion, you will most probably see many errors before you finally do what you want with them
-
sorry
I was talking about these:

I had in answer meaning "local" as in project, but yes they are "global" too but only for project ... there are another global for whole metatrader .... -
In fxDreema these are named "Terminal Variables"