This may be a stupid question, but is there a way to get a list of all open charts and their timeframes. Want to have a script that will list all objects (which I do know how to do) on all charts that are currently open.
Thanks in advance for your response
In theory, you can use Win32 API functions to enumerate the child windows of MT4, and read the list of charts that way. However, I don't think that a script or EA on one chart can see the objects on another chart even if it knows it knows that the chart exists and knows something like its hWnd.
I'm looking for a similar method to list the open charts with timeframes or list the running Expert Advisors.
Maybe now on Build 600+ MetaTraders there is some kind of functions could help me.
Do you know, how can I list the running experts and the open charts?
Look at chart operations ( https://docs.mql4.com/chart_operations ) https://docs.mql4.com/chart_operations
Look at the exemple on ChartNext() function ( https://docs.mql4.com/en/chart_operations/chartnext )
To add comments, please log in or register