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

Additional data in the backtest (NT8)

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

    Additional data in the backtest (NT8)

    Hi ,

    I use additional data series for each indicator as well as for GetCurrentBid (see attachment).
    But I get different results in the backtest if I change the time.
    How can that be ?

    Best Regards

    #2
    Hello,

    By changing the time you are also likely changing the way your logic is executing, I would generally expect different results if the data series settings have been changed. I would need more specific details on what was different to know how that affected the strategy.

    One other item that would be different from realtime in that situation is that GetCurrentBid returns the close in historical data which would be in the backtest.

    https://ninjatrader.com/support/help...=getcurrentbid

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      I actually added an additional data series everywhere. Therefore I cannot explain the different results in the backtest.
      I uploaded the strategy again. Maybe you can help me

      Best regards
      Attached Files

      Comment


        #4
        Hello Yannick,

        Code:
        I actually added an additional data series everywhere. Therefore I cannot explain the different results in the backtest.
        I am not certain I understand what you mean. Do you mean that you added it to the strategy and indicators it uses?

        Can you provide more detail on what your expectation is for the tests that you are doing? Are you expecting that comparing different timeframes that you see the same results?

        I looked at the strategies code and see you are using indicators and also time conditions. If you change the time of the bar series that could affect the time conditions. if you use any interval which does not correspond with a bar time the condition may work differently than it did previously.
        If the indicator values are affected by changing the time that would also change the result of the orders because they rely on the indicators as part of the condition.

        There are multiple conditions here that you can check for differences to know why those tests were different. Generally you can use Prints to determine if the script processed the same and had seen the same data. I see that you have some prints, are you seeing that they are printing differently in your tests? If so, we should expect differences in the results as well.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Brevo, Today, 01:45 AM
        0 responses
        2 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        4 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Working...
        X