I am fed up of searching on Google and various forums. Any help w'd be greatly appreciated.
I have a script which I am attaching to any one of the open charts. I want to make sure the script does not run on two open charts. so, if someone tries to attach to another chart, it should not attach. However, if he tries to attach it to the same chart on which it was running, he can..
I tried to use global variables. here is my code in OnStart().
<REMOVED>
- www.mql5.com
I am fed up of searching on Google and various forums. Any help w'd be greatly appreciated.
I have a script which I am attaching to any one of the open charts. I want to make sure the script does not run on two open charts. so, if someone tries to attach to another chart, it should not attach. However, if he tries to attach it to the same chart on which it was running, he can..
I tried to use global variables. here is my code in OnStart().
You've received three good responses in mql4_forum.
I believe that should get you started.
You've received three good responses in mql4_forum.
I believe that should get you started.
This script is written in MQL5. I have posted the question in both the forums, so that if MQL5 has any additional features that may be helpful to crack my issue then that w'd be great.
Thanks,
Janak
This script is written in MQL5. I have posted the question in both the forums, so that if MQL5 has any additional features that may be helpful to crack my issue then that w'd be great.
Thanks,
Janak

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am fed up of searching on Google and various forums. Any help w'd be greatly appreciated.
I have a script which I am attaching to any one of the open charts. I want to make sure the script does not run on two open charts. so, if someone tries to attach to another chart, it should not attach. However, if he tries to attach it to the same chart on which it was running, he can..
I tried to use global variables. here is my code in OnStart().
This runs OK, but I get two issues.1. When I try to attach it to the chart on which it was running, it removes the running script and after that if I try to attach it to same chart or any other chart, it won't atttach.
2. Even if I close and start client terminal, I am not able to attach the script to any chart.
Any pointers will be life-saver..
Thanks,
Janak