How to find out the active chart window?

Back to topics list To post a new topic, please log in or register
avatar
372
mar 2016.04.28 09:09
 

Hi coders,

if I have opened 20 charts I only want some calculations done on the chart I am currently watching. So it might be useful for an indicator to check if a chart is currently active. I found a solution here:

https://forum.mql4.com/30084#276651

but this posting is from 2010 and I wanted to ask if the new MQL4 offers a better way to do that. I see that CHART_WINDOW_HANDLE wasn't available in 2010. So my question is do I still need some Windows-functions or can it be done by MQL4 only?

Thanks! 

avatar
Moderator
3206
angevoyageur 2016.04.28 15:03 #
 
mar:

Hi coders,

if I have opened 20 charts I only want some calculations done on the chart I am currently watching. So it might be useful for an indicator to check if a chart is currently active. I found a solution here:

https://forum.mql4.com/30084#276651

but this posting is from 2010 and I wanted to ask if the new MQL4 offers a better way to do that. I see that CHART_WINDOW_HANDLE wasn't available in 2010. So my question is do I still need some Windows-functions or can it be done by MQL4 only?

Thanks! 

It's unchanged, I don't think there is an other way.
avatar
372
mar 2016.04.28 17:47 #
 
Ok, thanks!
Back to topics list  

To add comments, please log in or register