Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting Multi-Timeframe does not match real market data.

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

    #16
    Optimization of bar Intervals

    Originally posted by NinjaTrader_Ray View Post

    how would you go about optimizing these values since NT does not support optimization on bar intervals?
    The way I've been doing it is in the attachment.

    I defined a parameter called BarsPerPeriod, and it may be used to select any time frame and may be varied by the Optimizer.

    For more info, the file actually is commented -- let me know if its adequate to your understanding.

    Best regards,

    KBJ
    Attached Files

    Comment


      #17
      Sorry what you're trying does not work. NT is not designed to take an "BarsPeriod" parameter in the Initialize method to run it by the optimizer.

      It may appear so, but it will not work and you will hit the wall "here or there". We recommend not trying that.

      Note: Fixed "BarsPeriod" values are fine.

      Comment


        #18
        Yup. Dierk is right. When it come to determining whether your strategy would work best on a different time frame, Ninja trader cannot help you with that, You actually have to input them yourself, and then optimize on different parameters for your indicators.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        67 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        150 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        287 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X