protected override void OnBarUpdate()
{
Value[0] = (CurrentBar == 0 ? Input[0] : Input[0] * (2.0 / (1 + Period)) + (1 - (2.0 / (1 + Period))) * Value[1]);
if (CrossAbove(EMA(9), EMA(21),1))
{
PlotBrushes[0][0] = UpColor;
}
if (CrossBelow(EMA(9), EMA(21), 1))
{
PlotBrushes[0][0] = DnColor;
}
Comment