Thanks
protected override void OnBarUpdate()
{
BackBrush = Brushes.PaleGreen;
BackBrush = null;
if (EMA(30)[0] >= Close[0] && EMA(30)[0] >= Close[1] && EMA(30)[0] >= Close[2])
{
BackBrush = Brushes.LightPink;
}
else if (EMA(30)[0] <= Close[0] && EMA(30)[0] <= Close[1] && EMA(30)[0] <= Close[2])
{
BackBrush = Brushes.DarkSeaGreen;
}
else
{
BackBrush = Brushes.PapayaWhip;
}
}

Comment