I built an indicator which works well, all calc bugs removed as far as I know...
- see 1st attached image
However, when I shut down NinjaTrader and then restart the next day the colors in the indicator plot disappear and everything is gray.
- see 2nd attached image
If I refresh the chart everything is still gray. I noticed if I edit the indicator parameters, the up color / down color inputs are EMPTY...
- see 2nd attached image
From there I can select a new color and it works... so it appears my set colors are being replaced with "empty" when I shut down (or start up)? Does anyone have any idea how to fix this?
#region Variables
private Color upColor = Color.YellowGreen;
private Color dnColor = Color.DarkOrange;
private Color lineColor = Color.Gainsboro;
#endregion
if (CurrentBar == 0)
return;
if (Values[0][0] >= 0)
{
DrawRegion("Zone" + CurrentBar, 1, 0, Values[0], 0, Color.FromArgb(8,upColor), upColor, 4);
}
else if (Values[0][0] <= 0)
{
DrawRegion("Zone" + CurrentBar, 1, 0, Values[0], 0, Color.FromArgb(8,dnColor), dnColor, 4);
}
#region Properties
[Description("Up Color")]
[GridCategory("Parameters")]
[Gui.Design.DisplayName ("\tUp Color")]
public Color UpColor
{
get { return upColor; }
set { upColor = value; }
}
[Description("Down Color")]
[GridCategory("Parameters")]
[Gui.Design.DisplayName ("Down Color")]
public Color DownColor
{
get { return dnColor; }
set { dnColor = value; }
}
#endregion

Comment