I've been getting a serialization error on an indicator I am writing. When I try to save the workspace it throws the following:
2/21/2011 12:54:15 AM|0|4|Indicator 'NinjaTrader.Indicator.JTSummaryTape' could not be serialized. Please refer help for more information on serializing indicators.
I have narrowed it down the following code. With it,the indicator gives a serialization error. Without it, it works fine.
[Description("Font")]
[Gui.Design.DisplayName("Font")]
[GridCategory("Appearance")]
public Font SummTextFont {
get { return textFont; }
set { textFont = value; }
}
[Browsable(false)]
public string SummTextFontSerialize {
get { return NinjaTrader.Gui.Design.SerializableFont.ToString(textFont); }
set { textFont = NinjaTrader.Gui.Design.SerializableFont.FromString(value); }
}
Any thoughts?
Thanks
Pete

Comment