Using a custom indicator's line color to decide when to trade in an EA

 

Dear experts,


In my EA, I have to use a custom indicator to decide when to trade. This indicator draws 4 lines on the chart. I don't have the source code for the indicator; all I know is that if at the start of a new bar the color of the indicator lines is green, then I have to buy, if it's red, I have to sell.

So my question is: is there any way in an EA to get access to the lines drawn by an attached custom indicator? Can I somehow read the color, width, or style of these lines?

By using WindowFind("Indicator name") I can find the window that holds the indicator, but I don't know how to access its lines, and their properties.

Any help is greatly appreciated!


Best regards,

Levente

Reason: