How to ensure that the EA only works on the chart where it was first dropped - page 10
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
Well, you could have read all three options and understood them, couldn't you? But you didn't. The second option solves your problem.
Also, code should not base its work on the value of local variables.
We're going around in circles, getting lost in the middle of nowhere.
What's the point to post in a 13 years old topic with a wrong solution ?
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum #25 (2019)
Forum rules and recommendations - General - MQL5 programming forum (2023)
Messages Editor
I need to make the EA work with only "one instance". I.e. I attach it to any chart for the first time and it works. If I then accidentally or intentionally attach it again to another chart, the second attachment should recognize that it's already running and do nothing.
Do you really expect that people are still watching this thread after thirteen (13) years?
Don't resurrect old threads without a very good reason. A lot has changed since Build 600 and Higher. (2014)