I saved my strategy to the workspace that will be opened each time I run Ninja Trader. Without even connecting to data, I see this error on startup:
7/28/2020 7:54:58 PM Default Strategy 'QuickEntry2/136549366': Error in loading strategy from the database: System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.NinjaScript.StrategyBase.GetTradingHou rs(Instrument instrument) at NinjaTrader.NinjaScript.StrategyBase.DbLoad()
However, if I save my workspace without the strategy, there wouldn't be any error message but then I have to manually add the strategy to each chart that I intend to use it with (which is a hassle). Is there anything I can check?
The strategy basically submits an ATM order on mouse click so I'm not loading any secondary series or anything esoteric like that. I just find it strange to see the error message even before data connection.
Thanks.
Comment