Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer Platform Crash

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy Analyzer Platform Crash

    Running a backtest in the Strategy Analyzer with the End Date set to the current date will some times cause a crash of the platform.

    Here is the relevant trace log entry:

    2016-01-13 12:23:34:879 Cbi.Instrument.RequestBars (to Provider): instrument='SPY' from='01/12/2016 00:00:00' to='01/12/2016 00:00:00' period='Daily'
    2016-01-13 12:23:36:879 *************** unhandled exception trapped ***************
    2016-01-13 12:23:36:879 Object reference not set to an instance of an object.
    2016-01-13 12:23:36:881 System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Gui.Chart.ChartControl.UpdateCrosshair DataBoxAndZoomFrame()
    at NinjaTrader.Gui.Chart.ChartControl.InvalidateVisua l()
    at NinjaTrader.Gui.Chart.ChartControl.RefreshBars(Bar sProperties added, ChartObjectCollection`1 removed, StrategyRenderBase strategy)
    at NinjaTrader.Gui.Chart.Chart.ChartFromStrategyAnaly zer(StrategyAnalyzerGridEntry saGridEntry)
    at NinjaTrader.Gui.TradePerformance.TradePerformanceR eport.OnStrategyAnalyzerRunChanged(Object sender, DependencyPropertyChangedEventArgs e)
    at System.Windows.DependencyObject.OnPropertyChanged( DependencyPropertyChangedEventArgs e)
    at System.Windows.FrameworkElement.OnPropertyChanged( DependencyPropertyChangedEventArgs e)
    at System.Windows.DependencyObject.NotifyPropertyChan ge(DependencyPropertyChangedEventArgs args)
    at System.Windows.DependencyObject.UpdateEffectiveVal ue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
    at System.Windows.DependencyObject.SetValueCommon(Dep endencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
    at System.Windows.DependencyObject.SetValue(Dependenc yProperty dp, Object value)
    at NinjaTrader.Gui.TradePerformance.TradePerformanceR eport.set_StrategyAnalyzerRun(StrategyAnalyzerGrid Entry value)
    at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.OnTabSelectedResultChanged(Ob ject sender, ResultSelectionChangedEventArgs e)
    at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerTabControl.set_SelectedResult(StrategyA nalyzerGridEntry value)
    at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.<>c__DisplayClass83_0.<OnRunC ompleted>b__0()
    at System.Windows.Threading.DispatcherOperation.Invok eDelegateCore()
    at System.Windows.Threading.DispatcherOperation.Invok eImpl()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowF orNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.Handle NonSuccessAndDebuggerNotification(Task task)
    at System.Windows.Threading.DispatcherOperation.Wait( TimeSpan timeout)
    at System.Windows.Threading.Dispatcher.InvokeImpl(Dis patcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
    at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
    at System.Windows.Threading.Dispatcher.Invoke(Action callback)
    at NinjaTrader.Gui.Tools.DispatcherHelper.CheckUiInvo ke(Dispatcher uiDispatcher, Action action, Boolean async)
    at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.DispatchToOwner(Action action)
    at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.OnRunCompleted(StrategyAnalyz erTabControl tab, LogSourceFileInfo nsLogSource, RunResult result)
    at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.<>c__DisplayClass82_0.<OnRun> b__1(RunResult r)
    at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyRunner.<>c__DisplayClass8_0.<RunStrategyAsync>b __0(Object o)
    at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.QueueUserWorkItemCallback.System. Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()

    #2
    Hello GrumpyTrader,

    100 trials using the Sample MA Crossover strategy with the Standard optimization type and invented historical data for the selected date, failed to produce the error. May I ask you to provide in an e-mail to platformsupport [at] ninjatrader [dot] com, a screenshot of your Strategy Analyzer settings, as well as an export of the historical data you are testing against, and the strategy you are using?
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Max238, Today, 01:28 AM
    1 response
    22 views
    0 likes
    Last Post CactusMan  
    Started by giulyko00, Yesterday, 12:03 PM
    2 responses
    10 views
    0 likes
    Last Post giulyko00  
    Started by r68cervera, Today, 05:29 AM
    0 responses
    4 views
    0 likes
    Last Post r68cervera  
    Started by geddyisodin, Today, 05:20 AM
    0 responses
    6 views
    0 likes
    Last Post geddyisodin  
    Started by JonesJoker, 04-22-2024, 12:23 PM
    6 responses
    38 views
    0 likes
    Last Post JonesJoker  
    Working...
    X