the current time frame of the chart?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Multiple timeframe series & primary series
Collapse
X
-
Multiple timeframe series & primary series
What is the right way to access the primary bar series (For example, high and low of current bar onbarclose) if I've added two additional data series to the indicator using AddDataSeries? Also, what is the right way to determine
the current time frame of the chart?Tags: None
-
Hello cay7man,
If there are multiple data series added to a script, Times[0][0], Closes[0][0] and all the price series using barsArray index 0 would point to the primary series.
The bar type and interval can be found from the BarsPeriods collection.
BarsArray[0].Value + " " + BarsArray[0].BarsPeriodTypeChelsea B.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by MSerag, Yesterday, 11:52 PM
|
0 responses
5 views
0 likes
|
Last Post
by MSerag
Yesterday, 11:52 PM
|
||
Started by DynamicTest, Yesterday, 11:18 PM
|
0 responses
3 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 11:18 PM
|
||
Started by dcriador, Yesterday, 01:43 AM
|
3 responses
20 views
0 likes
|
Last Post
by dcriador
Yesterday, 11:17 PM
|
||
Started by smartromain, Yesterday, 10:50 PM
|
0 responses
5 views
0 likes
|
Last Post
by smartromain
Yesterday, 10:50 PM
|
||
Started by popecapllc, 08-09-2023, 07:42 PM
|
10 responses
1,366 views
0 likes
|
Last Post
by BartMan
Yesterday, 10:36 PM
|
Comment