I thought I could save myself time from having to add 8 strategies by adding them to separate charts (ES03-14, ES06-14, ... , ES12-15), running my Playback-market replay, Swap out strategy code, compile, restart.
I wanted to change this Exit on Session Close option...I don't need it and it shows up for everyday in the LOG, for every strategy.
So after my restart, I connected to Playback-MR, right clicked on a chart, Selected strategies, selected my strategy, unchecked Exit On session close, and clicked OK - and got the message. This is surely not related to the unchecking of the Exit on Session Close - but more related to the disconnect between what is going on with the Strategy in the chart and in the Strategies tab. I was able to remove/add and have 2 ES 03-14 strategies in the strategy tab, yet only 1 on the chart. So a zombie was hanging around.
I am able to reproduce this on every chart.
2015-10-24 17:01:54:161 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=CashValue currency=UsDollar value=*****
2015-10-24 17:02:15:025 *************** unhandled exception trapped ***************
2015-10-24 17:02:15:025 Object reference not set to an instance of an object.
2015-10-24 17:02:15:033 System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.StrategyBase.GetTradingHou rs(Instrument instrument)
at NinjaTrader.NinjaScript.StrategyBase.CreateNewGene ration(Nullable`1 forcePlotsMaximumBarsLookBackInfinite, Nullable`1 includeTradeHistoryInBacktest)
at NinjaTrader.Gui.Chart.ChartControl.StrategyDisable (StrategyRenderBase originalStrategy, StrategyRenderBase strategyClone)
at NinjaTrader.Gui.Chart.ChartControl.ApplyStrategy(S trategyRenderBase originalStrategy, StrategyRenderBase strategy, ChartBars cb, Boolean isAdded)
at NinjaTrader.Gui.Chart.ChartControl.HandleStrategie s(List`1 strategiesChanged, IEnumerable`1 strategyBases, List`1 strategiesToApply)
at NinjaTrader.Gui.Chart.ChartControl.<>c__DisplayCla ss76_0.<OnStrategiesHotKey>b__6()
at NinjaTrader.Gui.Chart.ChartControl.OnStrategiesHot Key(Object sender, KeyEventArgs e)
at NinjaTrader.Gui.Chart.ChartCommands.StrategiesExec uted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandBinding.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommand Binding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBin ding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBin ding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Obj ect parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterR ender(Object arg)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
2015-10-24 17:02:57:914 *************** unhandled exception trapped ***************
2015-10-24 17:02:57:915 Object reference not set to an instance of an object.
2015-10-24 17:02:57:915 System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.StrategyBase.GetTradingHou rs(Instrument instrument)
at NinjaTrader.NinjaScript.StrategyBase.CreateNewGene ration(Nullable`1 forcePlotsMaximumBarsLookBackInfinite, Nullable`1 includeTradeHistoryInBacktest)
at NinjaTrader.Gui.Chart.ChartControl.StrategyDisable (StrategyRenderBase originalStrategy, StrategyRenderBase strategyClone)
at NinjaTrader.Gui.Chart.ChartControl.ApplyStrategy(S trategyRenderBase originalStrategy, StrategyRenderBase strategy, ChartBars cb, Boolean isAdded)
at NinjaTrader.Gui.Chart.ChartControl.HandleStrategie s(List`1 strategiesChanged, IEnumerable`1 strategyBases, List`1 strategiesToApply)
at NinjaTrader.Gui.Chart.ChartControl.<>c__DisplayCla ss76_0.<OnStrategiesHotKey>b__6()
at NinjaTrader.Gui.Chart.ChartControl.OnStrategiesHot Key(Object sender, KeyEventArgs e)
at NinjaTrader.Gui.Chart.ChartCommands.StrategiesExec uted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandBinding.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommand Binding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBin ding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBin ding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Obj ect parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterR ender(Object arg)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Comment