Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Loading data series larger than chart time frame

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

    Loading data series larger than chart time frame

    Hi,

    I'm developing an indicator for a chart shows minute bar of an instrument. This indicator requires OHLC data of previous 30 trading days.

    Since the AddDataSeries method only loads as much data as the chart time frame. For example, if create a chart which "Load data based" on days, and set "Days to load" to 5. Then by using AddDataSeries we can only get OHLC for the last 5 days.

    By modifying "Days to load" would work though it makes browsing the chart really inconvenient.

    Is there a way for an indicator to get the last 30 day OHLC data regardless the chart settings?

    Thanks

    #2
    Hello lkuo.me,

    It is possible to do an out of sync data request using BarsRequest(), it is not possible to feed that data to an indicator as an input series.


    Because of this, any data you get through a BarsRequest() you will have to process in your script directly. This means you can get the OHLC of a daily bar series for 30 days, but you would not be able to supply this to an indicator call.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    607 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    353 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    561 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X