Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Which "MaximumBarsLookBack" for this case

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

    Which "MaximumBarsLookBack" for this case

    Hi,

    Every time that I start a Strategy, it should read all historical data for once, in order to get some "key point prices" that it will save to be used later, then after that, I just must evaluate every new bar, so I don't need to access object bar more than 256, so, having said this, and being aware that MaximumBarsLookBack as infinite consumes too much memory, I'm wondering if there's some way to read all historical data without setting MaximumBarsLookBack.Infinite.

    I'm sure that this is very simple to answer for you

    Thanks in advance

    #2
    It looks like that "DaysToLoad" might be an affordable solution in case I had a huge database.

    What do you think? is it compatible with 256 MaximumBack Bars set ?

    http://ninjatrader.com/support/helpGuides/nt8/en-us/

    Comment


      #3
      Hello pstrusi,

      Thank you for your post.

      I'm wondering if there's some way to read all historical data without setting MaximumBarsLookBack.Infinite.
      There is no means around this. Either you want to calculate over all the data or only the last 256 bars. DaysToLoad will not be a work around for this.

      Please let me know if you have any questions.

      Comment


        #4
        Originally posted by pstrusi View Post
        Hi,

        Every time that I start a Strategy, it should read all historical data for once, in order to get some "key point prices" that it will save to be used later, then after that, I just must evaluate every new bar, so I don't need to access object bar more than 256, so, having said this, and being aware that MaximumBarsLookBack as infinite consumes too much memory, I'm wondering if there's some way to read all historical data without setting MaximumBarsLookBack.Infinite.

        I'm sure that this is very simple to answer for you

        Thanks in advance
        If, at any point, you are never actually processing anything more than 256 bars ago, it should not matter. The price data is processed in a stream, and will process historical data in that manner. In other words, if you do not need to load ALL the data BEFORE you start processing, then the historical data is processed as it is read, so if you are not referencing more than 256 bars, you are postulating a problem that is non-existent.
        Last edited by koganam; 11-28-2017, 06:49 AM. Reason: Corrected spelling.

        Comment


          #5
          Thanks Koganam, you're absolutely right, I'm under great stress overwhelmed and I didn't realize it.

          Regards

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by soon123, Today, 12:18 AM
          1 response
          19 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by space_trader, Today, 12:52 AM
          1 response
          20 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by ybhx0315, Yesterday, 09:06 PM
          0 responses
          15 views
          0 likes
          Last Post ybhx0315  
          Started by parkinsonbr, Yesterday, 08:23 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by fxRichard, Today, 04:35 AM
          2 responses
          14 views
          0 likes
          Last Post fxRichard  
          Working...
          X