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

Why are the number of trades different on the same day in back test?

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

    Why are the number of trades different on the same day in back test?

    I took two screenshots of the results. I expect the same days to have the same number of trades, but when I increased the market replay data I noticed that the number of trades changed too. I ran my strategy with live data and noticed that it doesn't trade as much as the what the back test showed.

    #2
    Hi Tony, thanks for posting.

    First, switch to the Trades view at the top left of the Strategy Analyzer window and compare the start and end trade timestamps and the number of trades in each set of backtest results. You can also switch to a chart view in the same top left menu to view a chart with the trades applied, this way you can make sure each strategy is seeing the same amount of data. We have a comprehensive guide from our colleague Chelsea that goes through comparing real time strategy results to backtest strategy results:

    Citizens of the NinjaTrader Community, A common question we hear from clients is 'why are results from backtest different from real-time or from market replay?'. Live orders are filled on an exchange with a trading partner on an agreed upon price based on market dynamics. Backtest orders are not using these market dynamics.


    If this does not resolve, I will need you to post or send a reduced test script so I can have a look. If you would like to email me, send an email to scriptingsupport at ninjatrader.com.

    Kind regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks, my start and end times were off upon further investigation.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by PaulMohn, Today, 03:49 AM
      0 responses
      3 views
      0 likes
      Last Post PaulMohn  
      Started by inanazsocial, Today, 01:15 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by rocketman7, Today, 02:12 AM
      0 responses
      10 views
      0 likes
      Last Post rocketman7  
      Started by dustydbayer, Today, 01:59 AM
      0 responses
      2 views
      0 likes
      Last Post dustydbayer  
      Started by trilliantrader, 04-18-2024, 08:16 AM
      5 responses
      23 views
      0 likes
      Last Post trilliantrader  
      Working...
      X