• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
      Patrick H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by uiwislth, Yesterday, 11:25 PM
      0 responses
      4 views
      0 likes
      Last Post uiwislth  
      Started by Steve L, Yesterday, 10:04 PM
      0 responses
      3 views
      0 likes
      Last Post Steve L
      by Steve L
       
      Started by marianfed, Yesterday, 09:47 PM
      0 responses
      4 views
      0 likes
      Last Post marianfed  
      Started by hir04068, Yesterday, 09:29 PM
      0 responses
      2 views
      0 likes
      Last Post hir04068  
      Started by iq200, 03-11-2018, 07:49 PM
      24 responses
      1,014 views
      0 likes
      Last Post mrlucky1x  
      Working...
      X