Quick Help with BB_MACD

 

Hi,

I've tried a dozen things before posting this.

I'm trying to create an indicator which uses BB_MACD_CCT (attached).

I'm using BBM = iCustom (0,0,"BB_MACD_CCT",FastLen,SlowLen, Length,StDv,1,i)

However I don't get any results.

What I'd want is to know when the ball is red or blue.

For example (in english, not MQL4):

If (BBM = red) THEN display a red bar.

If (BBM = blue) THEN display a blue bar.

I'm doing this:

double A1 = iCustom (0,0,"BB_MACD_CCT",FastLen,SlowLen,Length,StDv,0,0,i);

double A2 = iCustom (0,0,"BB_MACD_CCT",FastLen,SlowLen,Length,StDv,0,1,i);

if (A1>A2)

{

ExtBuffer1=A1;

}

else

if (A1<A2)

{

ExtBuffer2=A2;

}

It won't display any results.

Any ideas?

.

Files: