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
Multi-Series Indicators and Duplicate AddDataSeries
Collapse
X
-
Multi-Series Indicators and Duplicate AddDataSeries
If I am looking at a one minute chart and my indicator has code to AddDataSeries(BarsPeriodType.Minute, 1) I will have two bar series in the chart that are covering the exact same time period. Is the data duplicated?Tags: None
-
That's not what I was querying, nor what my conculsion was.
If I have a 1 minute chart, and I have a call to AddDataSeries(BarsPeriodType.Minute, 1); the BarsArray[0] will be the exact same object as BarsArray[i] for the index which correlates to AddDataSeries call. It doesn't appear to generate a separate object but puts the reference to the same object in both slots of the BarsArray[].
I would also expect, if for some odd reason, I called AddDataSeries(BarsPeriodType.Minute, 1) twice in a row, that the object in the BarsArray[] for both series would be the same object.Last edited by ntbone; 02-28-2021, 11:52 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by cre8able, Today, 01:16 PM
|
0 responses
1 view
0 likes
|
Last Post
by cre8able
Today, 01:16 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
2 responses
47 views
0 likes
|
Last Post
by chbruno
Today, 01:15 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
5 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
Comment