it has to be written in this way.

[Description(“Color of level 1”)]
[GridCategory(“Parameters”)]
public Color Color1
{
get { return color1; }
set { color1 = value; }
}

[Browsable(false)]
public string Color1Serialize
{
get { return NinjaTrader.Gui.Design.SerializableColor.ToString( color1); }
set { color1 = NinjaTrader.Gui.Design.SerializableColor.FromStrin g(value); }
}

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.