In Services, how can we know if some EA is attached to a chart or not.

 

Hi All,

I have a Service which is running an infinite loop. I want to check if my EA is attached to a chart or not. I can loop through opened charts, but not able to find a function which can tell me is any EA is attached to the specific chart id or not.

Is there a way to find out if any of my EA is attached to a chart or not?

 
Reason: