Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Script accessing data series of Instrument in Panel 2 of chart
Collapse
X
-
Script accessing data series of Instrument in Panel 2 of chart
Can this be done. How to get the Panel 2 data, but also if Panel 2 s a different TimeFrame but same symbol as panel 1, but it is moved to Panel 1 so both series display say a 1M ES and a 5M ES.Tags: None
-
Ninjascript can only access the primary bars of the chart. To access other data series you would need to add them to the indicator script using AddDataSeries().
From a display point of view, yes you can move the data series into panel one but this does not change the primary data series to the indicator.
-
Hello kenz987,
To further clarify what Tasker-182 had said, you can access the data from any Instrument panel in the chart however only one at a time. When you apply an indicator to the chart it will use the chart series that you selected as the primary series. If you had two instruments or timeframes on a chart you can apply the indicator to either series, that's the Input series selection that the indicator has.
Indicators can be overlaid in other panels as well, so another example would be if you apply the indicator to the first instrument and then drag its plot over the panel 1. In that case the primary instrument for the indicator was the first instrument but it is displayed on the second instrument in the chart.
You can use multiple data series at once in an indicator but any secondary data needs to be added using AddDataSeries, those secondary series also wont be visible in the chart.
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
647 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
368 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
571 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment