Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Emily C.NinjaTrader Customer Service

    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 futtrader, 04-21-2024, 01:50 AM
      5 responses
      56 views
      0 likes
      Last Post NinjaTrader_Eduardo  
      Started by PeakTry, Today, 10:49 AM
      0 responses
      2 views
      0 likes
      Last Post PeakTry
      by PeakTry
       
      Started by llanqui, Today, 10:32 AM
      0 responses
      5 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by StockTrader88, 03-06-2021, 08:58 AM
      45 responses
      3,992 views
      3 likes
      Last Post johntraderuser2  
      Started by TAJTrades, Today, 09:46 AM
      0 responses
      8 views
      0 likes
      Last Post TAJTrades  
      Working...
      X