I am getting error (see topic) when starting NT8
In log i find
2018-11-03 15:51:14:876|3|4|Strategy '131269595': unable to deserialize user data: There was an error reflecting type 'NinjaTrader.NinjaScript.Strategies.Golem'.
2018-11-03 15:51:14:952|0|4|Unhandled exception: Object reference not set to an instance of an object.
I have object Golem - which is ninja strategy and
Gadget - which si form looking like this:
I moved all code about gadget from golem.cs to class Gadget and error started to show.
I tried to do in golem.cs
[XmlIgnore()]
public Golemator.Golem.Gadget gadget = null;
and in gadget.cs
[XmlIgnore()]
private NinjaTrader.NinjaScript.Strategies.Golem golemObj;
but nothing helps. does anyone know, what happens with my code - what runs on startup? Because I can compile all classes and if I add strategy to chart no error or exception occurs.
Have no idea how to track error. I use Visual Studio but do not know how to debug NT while starting up.
Thanks Paul
Comment