Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug in StrategyAnalyzer

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

    Bug in StrategyAnalyzer

    While backtesting my unmanaged strategy I'm seeing the following error. After this NT8 just dies.
    Is there any way to get hold of the DefaultTraceListener.cs file to take a look at the code?

    System.dll!System.Diagnostics.DefaultTraceListener .Fail(string message, string detailMessage) Line 108 at f:\dd\NDP\fx\src\compmod\system\diagnostics\Defaul tTraceListener.cs(108) System.dll!System.Diagnostics.TraceInternal.Fail(s tring message) Line 226 at f:\dd\NDP\fx\src\compmod\system\diagnostics\TraceI nternal.cs(226) NinjaTrader.Core.dll!NinjaTrader.Cbi.TradesPerform ance.Add(NinjaTrader.Cbi.Trade trade) NinjaTrader.Core.dll!NinjaTrader.Cbi.TradeCollecti on.Add(NinjaTrader.Cbi.Trade trade) NinjaTrader.Core.dll!NinjaTrader.Cbi.TradeCollecti on.Add(NinjaTrader.Cbi.Trade trade) NinjaTrader.Core.dll!NinjaTrader.Cbi.SystemPerform ance.Add(NinjaTrader.Cbi.Trade trade) NinjaTrader.Core.dll!NinjaTrader.Cbi.Position.Hand leExitExecution(NinjaTrader.Cbi.Execution exitExecution, NinjaTrader.Cbi.SystemPerformance performance) NinjaTrader.Core.dll!NinjaTrader.Cbi.Position.AddE xecution(NinjaTrader.Cbi.Execution execution, NinjaTrader.Cbi.SystemPerformance performance) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Strat egyBase.AddExecution(NinjaTrader.Cbi.Position position, NinjaTrader.Cbi.Execution execution, NinjaTrader.Cbi.Order order) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Strat egyBase.FillOrder(NinjaTrader.Cbi.Order order, double fillPrice, double slippage) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Defau ltFillType.OnBar() NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Strat egyBase.ProcessBacktestOrders() NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Strat egyBase.OnOnBarUpdate(bool[] toProcess) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Ninja ScriptBase.Update(int idx, int bip) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Ninja ScriptBase.TickReplayOrUpdate() NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Ninja ScriptBase.SetState(NinjaTrader.NinjaScript.State state) NinjaTrader.Gui.dll!NinjaTrader.Gui.NinjaScript.St rategyRenderBase.SetState(NinjaTrader.NinjaScript. State state) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Strat egyBase.RunBacktestInternal() NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Optim izers.Optimizer.RunBacktest(NinjaTrader.NinjaScrip t.StrategyBase template, NinjaTrader.NinjaScript.Parameter[] parameters) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Optim izers.Optimizer.WaitForIterationsCompleted.Anonymo usMethod__1() WindowsBase.dll!System.Windows.Threading.Exception Wrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) WindowsBase.dll!System.Windows.Threading.Exception Wrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) WindowsBase.dll!System.Windows.Threading.Dispatche rOperation.InvokeImpl() mscorlib.dll!System.Threading.ExecutionContext.Run Internal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) mscorlib.dll!System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) mscorlib.dll!System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) WindowsBase.dll!MS.Internal.CulturePreservingExecu tionContext.Run(MS.Internal.CulturePreservingExecu tionContext executionContext, System.Threading.ContextCallback callback, object state) WindowsBase.dll!System.Windows.Threading.Dispatche rOperation.Invoke() WindowsBase.dll!System.Windows.Threading.Dispatche r.ProcessQueue() WindowsBase.dll!System.Windows.Threading.Dispatche r.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(Syste m.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCa llbackOperation(object o) WindowsBase.dll!System.Windows.Threading.Exception Wrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) WindowsBase.dll!System.Windows.Threading.Exception Wrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) WindowsBase.dll!System.Windows.Threading.Dispatche r.LegacyInvokeImpl(System.Windows.Threading.Dispat cherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndP roc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) [Native to Managed Transition] [Managed to Native Transition] WindowsBase.dll!System.Windows.Threading.Dispatche r.PushFrameImpl(System.Windows.Threading.Dispatche rFrame frame) NinjaTrader.Core.dll!NinjaTrader.NinjaScript.Optim izers.Optimizer.SetState.AnonymousMethod__1() mscorlib.dll!System.Threading.ExecutionContext.Run Internal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) mscorlib.dll!System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) mscorlib.dll!System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) mscorlib.dll!System.Threading.ThreadHelper.ThreadS tart()

    #2
    That looks like a bug for "THE MEN IN BLACK"

    Comment


      #3
      Hello TraderFrank,

      Thank you for your post.

      The DefaultTraceListener is a class in .NET, there would not be an object to review. You can find more details at the following link: https://docs.microsoft.com/en-us/dot...ramework-4.7.2

      As far as the NinjaTrader exception that was caught can you send us your Log and Trace files so we may look into the matter further?

      You can do this by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

      Please list 'ATTN: Patrick H' in the subject line and reference this thread in the body of the email.

      I look forward to assisting you further.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      27 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 04-23-2024, 09:53 PM
      2 responses
      49 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      193 views
      0 likes
      Last Post Hasadafa  
      Started by GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,235 views
      0 likes
      Last Post xiinteractive  
      Working...
      X