When I apply my custom indicator to a chart it all works fine. The input colors are setup correctly, as shown in attachment 1. But if I save the workspace, close Ninja, restart Ninja, and then reopen the workspace, the colors have all disappeared, as shown in attachment 2.
The colors are defined as variables in the Variables section
#region Variables private System.Drawing.Color color1 = Color.White; private System.Drawing.Color color2 = Color.ForestGreen; private System.Drawing.Color color3 = Color.Lime; private System.Drawing.Color color4 = Color.LightSkyBlue; private System.Drawing.Color color5 = Color.Yellow; private System.Drawing.Color color6 = Color.DarkOrange; private System.Drawing.Color color7 = Color.Red; private System.Drawing.Color color8 = Color.White;
#region Properties [Description("Color 1")] [GridCategory("Parameters")] public Color Color1 { get { return color1; } set { color1 = value; } } [Description("Color 2")] [GridCategory("Parameters")] public Color Color2 { get { return color2; } set { color2 = value; } } ...
This is Ninja 7 beta 18. Is this a known bug or am I doing something wrong?
Thanks
Comment