Announcement

Collapse
No announcement yet.

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 Hyper, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post Hyper
        by Hyper
         
        Started by NeverDownMoney, Today, 02:42 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by localappleseed, Today, 02:20 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by asmmbillah, Today, 02:48 PM
        1 response
        19 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by KacemRhaz, Today, 01:31 PM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChristopherD  
        Working...
        X