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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        117 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        166 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        85 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        130 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        88 views
        0 likes
        Last Post PaulMohn  
        Working...
        X