So far I have this:
protected override void OnBarUpdate()
{
// Condition set 1
if (CrossAbove(RSI(5, 1).Avg, 80, 1))
{
Alert("MyAlert0", Priority.High, "RSI OVERBOUGHT", "", 0, Color.White, Color.Black);
}
// Condition set 2
if (CrossBelow(RSI(5, 1).Avg, 20, 1))
{
Alert("MyAlert1", Priority.High, "RSI OVERSOLD", "", 0, Color.White, Color.Black);
}
It's Not alerting me of anything. can you tell me what I'm doing wrong? or what I have to input so that it knows to use 80/20 and alert on the cross.
thanks so much.
Comment