Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

grabbing data from outside the session

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

    grabbing data from outside the session

    Hello,

    I was wondering if there was a way to grab historical OHLCV data from OUTSIDE the time-bounds of the backtest.

    for example:
    backtest range: 11/16/09 - 11/20/09
    but in the program, i want to be able to analyze the OHLCV data starting from 10/1/09.

    is this possible?

    Thanks in advance

    #2
    You will have to backtest back to 10/1/09. You can use date filters to prevent any trading prior to your backtest date to do the rest. This needs to be programmed into your strategy.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh, thats exactly what i was thinking but was wondering if there was a way around it.

      Comment


        #4
        Unfortunately no way around it.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Is there a way to access the OHLCV from previous days/sessions? (besides storing the data into arrays, [which could take up a lot of resources?], i'd like to be able to access the minute volume from each candle)

          using the same example:
          --backtest range: 10/1/09 - 11/20/09
          --don't start placing order until 11/16/09
          --so when looping through the candles on dates later than 11/16, is it possible to access the OHLCV data from previous days such as (10/1)

          Thanks in advance

          Comment


            #6
            Use the [] indexing and go back to the bars you want to look at. You can use GetBar() to get the index.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            164 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            319 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            246 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            350 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X