Download MetaTrader 5
To add comments, please log in or register
Have you found an error in our products? Apply to Service Desk!
Gary Surowiec
12
Gary Surowiec 2009.11.13 17:01 

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

JC
1394
JC 2009.11.13 17:35  
gsurowiec:

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.

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.

Lime
640
Lime 2014.03.25 12:17  

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?

Bogdan Alin Baltatu
2746
Bogdan Alin Baltatu 2014.03.25 12:29  

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 )

Lime
640
Lime 2014.03.26 10:09  
dudufx:

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 )



Thank you very much dudufx!
/
To add comments, please log in or register