Context: I'm in the process of converting an indicator I developed for NT7 to NT8.
In the NT7 version I had to specify serialization instructions for both Color and Font objects.
I have converted my NT7 Font parameters to NT8 SimpleFont parameters.
Do I need to specify serialization instructions for the NT8 SimpleFont objects as I had to for the NT7 version?
I have converted my NT7 Color parameters to NT8 SolidColorBrush parameters, and followed the "Saving a Brush as a user defined property (Serialization)" guideline in http://ninjatrader.com/support/helpG...s/?brushes.htm as follows:
[Browsable(false)]
[XmlIgnore()]
public SolidColorBrush MyColor
{
get { return myColor; }
set { myColor = value; }
}
[Browsable(false)]
public string MyColorSerialize
{
get { return Serialize.BrushToString(myColor); }
set { myColor = (SolidColorBrush)Serialize.StringToBrush(value); }
}
Compiles and executes fine.
But I continue to get "Could not save indicator...There was an error generating the XML document."
A suggestion... it would be extremely helpful if NT log and trace files would actually report the specific culprit. In the absence of this, can anyone offer any advice on how to find the objects causing the XML document generation failure?
Comment