Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy backtests are inaccurate when running multiple days at a time

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

    Strategy backtests are inaccurate when running multiple days at a time

    Hi,

    I'm noticing a pretty big disparity between results when backtesting a strategy multiple days at a time vs. a single day at a time. Single day backtests are accurate, multi-day backtests are not. I am having all my variables reset EOD. This is making me wonder if the problem has to do with how much data is trying to be run within such a short amount of time? Is it possible to have a strategy disable/enable every "day" within a multi-day backtest? Getting this solved would save me an immense amount of time backtesting one day at a time.

    #2
    Hello irochester,

    What specifically is inaccurate?

    The values used in the conditions that are trigger the orders is incorrect? What are you comparing this to, to know it is incorrect?
    The order fills are not within the bar, (or filling on the tick provided with intra-bar granularity)?

    First, have you implemented 1-tick intra-bar granularity to improve backtest order fill accuracy?
    Below is a link to a forum post that discusses and includes a link to a reference sample that demonstrates.


    If so, we would need output showing what has changed. I would recommend writing to file as this could be a lot of output.
    Below is a link to a forum post that demonstrates writing information to file to compare real-time to backtest, but the process would be the same to investigate.

    Please output the time, all values used in the conditions, and the order object from OnOrderUpdate() and provide the output text file with your reply.
    Then please let us know what values are incorrect, the correct values you are expecting, and why.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    69 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    42 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    24 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    27 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X