for (int i = 0; i < PlotBrushes.Count(); i++)
{
PlotBrushes[i][0] = (i < numberOfEMAPerRibbon) ? (IsRising(Values[i]) ? EMA1RibbonUpColor : EMA1RibbonDownColor) : (IsRising(Values[i]) ? EMA2RibbonUpColor : EMA2RibbonDownColor);
}
This gives the ribbons one of two colors depending on if it's rising or falling.
I wanted to add buttons to change the plotBrushes color to transparent, or if it is already transparent, change it back.
Can I use PlotBrushes[0][0] = Brushes.Transparent in this case? I tried and it's not working?
I have succeeded in hiding EMAs with a button before with Plots[0].Brush = Brushes.Transparent; but that is not working in this case either.
Any idea if I'm doing something wrong, or I'm just going about this the wrong way?

Comment