EA can create a global variable in the form EAname_Pair_TF
Just a note, that reading a Global variable for getting another EA status may fail during terminal launch. As far as all the EAs perform concurrently, multiple of them may access the "free" status from the Global variable before its update. There is no "synchronized" function in MT4 to prevent concurrent access. So far the only solution I know about is using a thread safe method in a DLL.
Ovo:
Just a note, that reading a Global variable for getting another EA status may fail during terminal launch. As far as all the EAs perform concurrently, multiple of them may access the "free" status from the Global variable before its update. There is no "synchronized" function in MT4 to prevent concurrent access. So far the only solution I know about is using a thread safe method in a DLL.
Just a note, that reading a Global variable for getting another EA status may fail during terminal launch. As far as all the EAs perform concurrently, multiple of them may access the "free" status from the Global variable before its update. There is no "synchronized" function in MT4 to prevent concurrent access. So far the only solution I know about is using a thread safe method in a DLL.
Hi isn't that what GlobalVariableSetOnCondition provides? Atomic test and update?
Yes, it definitively could serve the purpose. I never mentioned the function.
Thank you Guys for the help, Global Variables Solved the problem.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello,
How do i check if an EA is running on other chart?
Thank you