protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBar < 5)
return;
if (ema_3[0] > ema_13[0] && ema_3[0] < ema_50[0])
{
MyBrush = Brushes.Yellow;
}
if (ema_3[0] > ema_13[0] && ema_3[0] > ema_50[0])
{
MyBrush = Brushes.Green;
}
if (ema_3[0] < ema_13[0] && ema_3[0] > ema_50[0])
{
MyBrush = Brushes.Yellow;
}
if (ema_3[0] < ema_13[0] && ema_3[0] < ema_50[0])
{
MyBrush = Brushes.Red;
}
Draw.HorizontalLine(this, "tag1", 0.1, MyBrush,DashStyleHelper.Solid,15,false);
}
}
}
Am I missing anything?

Comment