Use GlobalVariableSetOnCondition()
Excerpt from the documentation:
Function provides atomic access to the global variable, so it can be used for providing of a mutex at interaction of several Expert Advisors working simultaneously within one client terminal.
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,
My EA will have various instances running on different pairs. Once a day, I would like to check the existence of new files in some directory. If they exist, I would like to relaunch all the instances, but just once.
I was thinking to implement it using global variables, however, from the documentation, they seem not to grant atomic access. How could I achieve it?
Best regards.