Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with MultiTimeFrame DataSeries

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

    Help with MultiTimeFrame DataSeries

    Hello, I'm pretty new to ninjascript and have been struggling with the documentaion. What I'm trying to do is load up some multi time frame data series so that I can calculate average ranges. For example, assume Im trading on a 5 minute chart. I'd like to load up the past 14 days worth of Daily bars so that I can calculate an average daily range and plot horizontal lines based on some statistics around the past 14 daily ranges. I've tried using the
    Code:
    AddDataSeries(BarsPeriodType.Day, 1)
    in the State.Configure setup, but it seems I'm only getting a couple of Daily bars. How can i load up more data?

    #2
    Hello mattmar10,

    Welcome to the NinjaTrader forums!

    AddDataSeries() is correct.

    The amount of days that will load is still controlled by the primary series Data Series window in the Days to load, Bars to load, or Custom Range.

    Try setting Days to load to 30 in the Data Series window.

    Note, that the days to load will include weekends, which for most instruments will not have data while the market is closed.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    177 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    331 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    254 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    356 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    184 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X