How do I find select (active) chart of all them?

 

Hi guys,

I find any routine code for:

I have open some charts on MT. I need routine which return identific active charts(window) of all them. 

I need know which symbol is on active chart. 

Thank you very mutch. 

 
 

No, no... I thought otherwise

I have 5 chart and 1 mql code. When I click first chart and code tell me: "this is chart eurusd", I click next chart, code tell me: "Tji is chart gbpusd" ...

Do you understand me? 

 

Code runs on a chart. Clicking another chart is irrelevant.

"5 charts and 1 mql code" - only the chart that is running the code knows its Symbol(). The other charts do not exist as far as it is concerned.

If you want the code to run on "5 charts" put them on the 5 charts.