Trend indicator , how to programm when I see the changes only in the color

 

Hi,

I want to use an trend indicator. But I see the change from buy to sell only in the color of the indikator.

When I use the iCustom function in my metatrader I get only the value of the indikator back.

How can I see in my mq4 programm with the iCustom Function when the color of the trend indikator is changing from green to red or from red to green?

 

If the indicator is using indicator indexes to display different colors of a line (for example), then

there is more than one index in use.

index0 might be blue, index1 might be red. Both indexes alternately used to make the "line"

So, query more than one index to find which one is displaying a value during the time of the different colors.

If the indicator is creating objects, query the objects -- ObjectGet()

Reason: