Hi,
I'm trying to take different actions based on the current CCI(20).
vars CCIs = series(CCI(20));
if(CCIs[0] >= 0.0){
plot("CCI", 150, SQUARE, GREEN);
}else{
plot("CCI", 150, SQUARE, RED);
}
But all of the squares are red, regardless of the CCI.
I tried this as well, with the same result:
I'm expecting some of the squares to be red and some to be green, based on the CCI(20) at the time.
If I print out the value it looks like I expect, some above 0, some below:
printf("\nCCI: %.4f", CCI(20));
I'm sure I'm just missing something simple...
Thanks!