No.
I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
Hi All,
I am developing EA for the first time and I would like to know about how the memory is managed when the EA is attached to multiple currenty pairs, do they share same memory or different memory?
If I attach EA to 2 pairs, will it start two different instances of the EA and has no related between between?
Like if I attach the EA to two differet pairs, if the EA one pair updates certain static variables will it affect the other pair which is attached to another instance of EA on the same MT4 platform?
Thanks
Regards,
Arun
They are independent. Each instance of a program has it's own variable set.
If you want to share certain variables then you will need to use Global Variables (not to be confused with the variables declared in the global space of a program)
https://www.mql5.com/en/docs/globals
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi All,
I am developing EA for the first time and I would like to know about how the memory is managed when the EA is attached to multiple currenty pairs, do they share same memory or different memory?
If I attach EA to 2 pairs, will it start two different instances of the EA and has no related between between?
Like if I attach the EA to two differet pairs, if the EA one pair updates certain static variables will it affect the other pair which is attached to another instance of EA on the same MT4 platform?
Thanks
Regards,
Arun