![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?
.