Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Back testing using historical data : Trade Performance nonsensical

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

    Back testing using historical data : Trade Performance nonsensical

    For the past couple days I've had this new problem... often if I run a back test, the results don't match the trade performance.

    I've tried resetting my database a few times.... it does not solve the issue.

    The issues are
    1. this is a long only strategy. There should be zero short trades
    2. the end amount doesn't match
    3. the long only amount doesn't match either

    The back test shown here is from 1/1/24 to 2/7/24

    NOTE: this is using historical data with tick, minute, bid, ask, last
    I have also deleted and re-loaded the data.

    When I watch the replay it does as expected... it's just the trade performance that is off.

    Click image for larger version  Name:	image.png Views:	0 Size:	79.3 KB ID:	1290369
    Last edited by halgo_boulder; 02-07-2024, 09:28 PM.

    #2
    Hello halgo_boulder,

    Thank you for your post.

    Are you referring to a NinjaScript Strategy or an ATM strategy? I see in your ATM strategy dropdown you have "z Trail 40" selected. You also have a question next to this template name in the Trade Performance filters. What are your questions about the accounts and templates in Trade Performance?

    In Trade Performance, please check the Orders and/or Trades displays and review the "Strategy" column to see which orders are tied to your strategy and which are not.

    If this is a NinjaScript Strategy you are working with, please review the results from the Strategy Performance window. You may access this by right-clicking the chart on which your strategy is applied > hover your cursor over Strategy Performance > select Real-Time, Historical, or Historical & real-time to view the results. For more information:


    Please let me know if I may be of further assistance.

    Comment


      #3
      Hi Emily,

      The strategy is a ninjascript strategy.

      The ATM strategy is just one of my presets and is not related.

      The question marks are related to the big difference in performance results compared to what is actually in the PnL field on the chart itself after running the strategy.

      I will try the strategy performance route to see what that yields.

      Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X