How to find trend indicator's line colour)

 

Hi,

I'm using HalfTrend-1.02, And I have indicator's .mq4 file. My problem is if indicator's line is blue, give me 1 value, or if it's red give me 0 value. How can i do that?

example;

if line is red { Sell = True}

if line is blue {Buy = True}

 
#property indicator_color1 DodgerBlue  // up[]
#property indicator_color2 Red       // down[]
If    first buffer iCustom(..., 0, i) is not EMPTY_VALUE it is blue.

If second buffer iCustom(..., 1, i) is not EMPTY_VALUE it is red.
          Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum

 
whroeder1:
If    first buffer iCustom(..., 0, i) is not EMPTY_VALUE it is blue.

If second buffer iCustom(..., 1, i) is not EMPTY_VALUE it is red.
          Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum

But now it gives many alarm (50 times).

 
Now it just sends sell signal. When I open blue trend chart it gives a sell signal. But it is blue, should give me buy signal. And when I add indicator chart freezing. I can't use.
 
Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
Reason: