Using the CCI. I'm trying to color the area between the CCI value and the zeroline. Green if CCI is above the zeroline and Red if below the zeroline.
I tried this but it doesnt compile.
Any ideas how I could do this?
Thanks.
if (CCI(Close,Period)[0] > 0)
{
DrawRegion("tag1", CurrentBar, 0, CCI(Period)[0], 0, Color.Empty, Color.Green, 2);
}
if (CCI(Close,Period)[0] < 0)
{
DrawRegion("tag1", CurrentBar, 0, CCI(Period)[0], 0, Color.Empty, Color.Red, 2);
}
Comment