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
I have an expert running on a GBPAUD chart. Its job is to open other charts and apply a template if certain criteria is met for other pairs. Occasionally it will open a chart for the same pair more than once, and so I run a check when each chart is open to close duplicate charts. The problem is that it closes the GBPAUD chart, even if GBPAUD is not the pair running the duplicate check, and I can't figure out why.
This code should close the chart that ran it, if a chart for same pair is already open.
I have also tried to prevent duplicate charts from being opened, but the duplicates keep being occasionally opened. This code is intended to open a chart, if one is not already open.
The reason GBPAUD has slightly different criteria is because it is running the Expert to open charts as needed, so 1 chart should always be open, the one with the Expert.
If anyone can help me fix either of these functions, it would be greatly appreciated.