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

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 traderqz, Today, 12:06 AM
          5 responses
          8 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by Mongo, Today, 11:05 AM
          2 responses
          7 views
          0 likes
          Last Post Mongo
          by Mongo
           
          Started by guillembm, Today, 11:25 AM
          0 responses
          3 views
          0 likes
          Last Post guillembm  
          Started by Tim-c, Today, 10:58 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by traderqz, Yesterday, 09:06 AM
          4 responses
          29 views
          0 likes
          Last Post traderqz  
          Working...
          X