All I am looking for is for the RSI line to color the area above the upper level of 70 while its above the 70 line. And/or color the area below the lower level of 30 while below the 30.
I haven't "coded" since NT7 years ago and I'm quite rusty. Here is what I have...
//Add your custom indicator logic here.
RSI1 = RSI(Close, 14, 3);
}
}
Protected Override OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 0)
return;
// Set 1
if ((RSI1.Default[0] > (RSI1.Default[0] * 70) )
|| (RSI1.Default[0] < (RSI1.Default[0] * 30) ))
{
BackBrush = Brushes.Green;
}
}
}
}
}
}
}

Comment