I have added it using:
TrendLine = SMA(33);
TrendLine.Plots[0].Brush = Brushes.Red;
AddChartIndicator(TrendLine);
When I set it as above it is always Red.
If I try to set is OnBarUpdate() as below it does not work.
TrendLine.Plots[0].Brush = Brushes.Green;
What is the Proper way to set the color during OnBarUpdate()?
I've seen this done, but all my testing and searching hasn't helped.
Thanks.

Comment