Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Min Bars required under strategy backtesting

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

    Min Bars required under strategy backtesting

    Hi All,

    Is there an easy way of setting the 'Min Bars' required for a strategy to start calculations, but enforce this on a 'per session' basis...??

    Right now my strategy is taking bars from the end of the previous session and throwing them into calculations with data from the start of the next session.

    Effectively I want isolate calculations within a session, but for the purposes of backtesting I want to calculate across several months of data...

    Many Thanks

    #2
    Min bars will not make a difference in the context that you have described. Min bars is only affective on first X bars that you specified.
    RayNinjaTrader Customer Service

    Comment


      #3
      Hi Ray,

      Yeah I kinda guessed that was the case.

      Ok, is there an easy way to force NinjaTrader not to include bars from the previous session in calculations...? For many day trading strategies you only want calculations to include bars from the current session. But of course you'd like to backtest over many days worth of data and trades.

      Any ideas...? I will be able to hack it, I'm just wondering if there is an obviously easy way to achieve this...?

      Many Thanks
      Last edited by Sidhartha; 04-08-2008, 02:31 AM.

      Comment


        #4
        A paramter that returns the 'currentbar' of the current session rather than the whole date series would be useful here.... Just a thought.

        Anyone from NT with any thoughts on this query...?

        Thanks

        Comment


          #5
          You would have to add logic in your calculations to filter out bars you do not want included.
          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          647 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X