{
Add(RSI(14, 3));
Add(RSI(14, 3));
CalculateOnBarClose = true;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
// Condition set 1
if (CrossAbove(RSI(14, 3).Avg, 50, 1))
{
Alert("MyAlert0", Priority.High, "", "", (int) (Variable1), Color.Fuchsia, Color.Lime);
}
// Condition set 2
if (CrossBelow(RSI(14, 3).Avg, 50, 1))
{
Alert("MyAlert2", Priority.High, "", "", 0, Color.White, Color.Black);
}
}
#region Properties
[Description("")]
[Category("Parameters")]
publicint MyInput0
{
get { return myInput0; }
set { myInput0 = Math.Max(1, value); }
}
#endregion
}
}
#region Wizard settings, neither change nor remove
Comment