The custom brush myCustomBrush is set and seriaized in the Properties section of the indicator as needed.The custom brush is then used for several plots, which I have done in State.Configure(), see code below
Plots[0].Brush = myCustomBrush.Clone(); Plots[1].Brush = myCustomBrush.Clone(); Plots[2].Brush = myCustomBrush.Clone();
(1) Is it best practice to set those plot brushes in State.Configure, or should they be set in State.SetDefaults()?
(2) Do I need to freeze the plot brushes as per code below?
Plots[0].Brush.Freeze(); Plots[1].Brush.Freeze(); Plots[2].Brush.Freeze();
Comment