Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Delay Backtest

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

    Delay Backtest

    Hi support, I am running a backtest for a future on my strategy. I notice a delay in running a backtest between running the sections Initialize and OnStartUp. I am using only one dataserie (the instrument where I run my backtest on , no Add of anothers erie in the code). I included a current timestamp as last line of the Initialize section and a current timestamp as the first line of the OnStartUp section. If I run the backtest on 10 years of 60 minutes the difference between the timestamps is more than a minute. So this means NinjaTrader is doing someting in the background for one minute after ending the initialize section and before starting the Onstartup section. It seems that it has to do with the primary instrument data, because if I run the backtest for only 2 years the difference between the timestamps is only 10 seconds. I aLSO NOTICE THAT IF i RUN A BACKTEST ON A CURRENY INSTRUMENT THE DELAY FOR 10 YEARS BACKTEST IS ONLY 20 SECONDS. Can you explain what NinjaTrader does in the background between those 2 sections and pauzing the backtest for over 1 minute? And is that something tha can be improved so that it runs faster?

    Kind regards,
    Rene Kreileman
    The Netherlands

    #2
    Hello Renejm,

    Thank you for the post.

    What you are seeing is likely the data processing before the test, unfortunately I don't have any specific details on the internal logic which the backtest uses to provide specific details on the steps between initialize and onstartup.

    You could view the control center and its lower status bar to see if that is data processing, the data loading indicator is in the lower portion of the control center.

    The difference in times for instruments could come from futures instruments requiring additional processing, if you are merging the data and back adjusting it (default settings) it will take additional steps to load that data. I don't believe there would be anything additional you could change to make the loading process faster aside from using a faster CPU to do that process quicker.

    I look forward to being of further assistance.



    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by salination2, Yesterday, 07:21 PM
    2 responses
    6 views
    0 likes
    Last Post salination2  
    Started by aarons34, Yesterday, 08:11 PM
    0 responses
    7 views
    0 likes
    Last Post aarons34  
    Started by Shiner452, Yesterday, 06:55 PM
    0 responses
    3 views
    0 likes
    Last Post Shiner452  
    Started by Aquatrade, Yesterday, 06:22 PM
    0 responses
    3 views
    0 likes
    Last Post Aquatrade  
    Started by trader3000a, Yesterday, 02:04 PM
    2 responses
    26 views
    0 likes
    Last Post trader3000a  
    Working...
    X