When I try to add it, it doesn't get added. When I try to add it to a chart, the chart turns white/blank. I'm able to close the strategy dialog, but the chart never comes back. When I try to add it directly to the Strategies tab, the Add Strategy dialog box closes without an error and the strategy doesn't appear on the tab.
I found this error message in the trace file, but don't know what to do next. Can you advise -- I'd appreciate it. My strategy is called mpPairs:
2015-05-12 09:51:08:503 in OnUnhandledThreadException
2015-05-12 09:51:08:531 *************** unhandled exception trapped ***************
2015-05-12 09:51:08:531 There was an error reflecting type 'NinjaTrader.Strategy.mpPairs'.
2015-05-12 09:51:08:531 at System.Xml.Serialization.XmlReflectionImporter.Imp ortTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.Imp ortElement(TypeModel model, XmlRootAttribute root, String defaultNamespace, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.Imp ortTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at NinjaTrader.Cbi.XmlSerializerDictionary.get_Item(T ype type)
at NinjaTrader.Cbi.Serializer.Serialize()
at NinjaTrader.Strategy.StrategyBase.SetDefault()
at NinjaTrader.Strategy.NewStrategyForm.OnSetDefault( Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Comment