After making the code to prolonged and complicated, parameter values cannot be set to default. I can't figure it out anymore, all of the parameter are disabled.
// Create our user definable color input
[XmlIgnore()]
[Description("Color for box region")]
[Gui.Design.DisplayName("Display Background")]
[GridCategory("Trade Activity Display")]
public Color BoxColor
{
get { return boxColor; }
set { boxColor = value; }
}
// Serialize our Color object
[Browsable(false)]
public string BoxColorSerialize
{
get { return NinjaTrader.Gui.Design.SerializableColor.ToString( boxColor); }
set { boxColor = NinjaTrader.Gui.Design.SerializableColor.FromStrin g(value); }
}
I think serializing the parameter is correct and I think this is not the main reason why I can't set the parameter to default. I load other type of indicator and works correctly except this indicator. I try to rewrite the codes but I am failed. Any Idea why I can't set to default all parameter of my indicator?
Comment