AddDataSeries(BarsPeriodType.Day, 1)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Help with MultiTimeFrame DataSeries
Collapse
X
-
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 thein the State.Configure setup, but it seems I'm only getting a couple of Daily bars. How can i load up more data?Code:Tags: None
-
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
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
227 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
146 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
160 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
237 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
197 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment