I would like to duplicate that display but use the second time series that is added in a strategy. Is it possible to display a time series added to a strategy from the strategy so that both the chart and strategy have access to the same second time series?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Adding new Bar object to Chart
Collapse
X
-
Adding new Bar object to Chart
In the video for V7 charting there is an example of adding a second time series to the chart, changing the plot of the first time series to Box and having the second time series displayed withing this box.
I would like to duplicate that display but use the second time series that is added in a strategy. Is it possible to display a time series added to a strategy from the strategy so that both the chart and strategy have access to the same second time series?Tags: None
-
Hello GuyFB,
Thank you for your post.
Yes, this is possible but there's no automatic syncing of charts series with a strategies series.
Strategies series are added manually through the intialize method. This help guide article can help with the syntax needed to add multiple series to a strategy.
You have to manually set the chart series and then manually add the strategy series through code.Ryan M.NinjaTrader Customer Service
-
Ryan,
So what you are telling me is that by adding a Bar series to a strategy does not add the series to a chart like adding an indicator to a strategy adds the indicator to the chart.
To get the second bar series to display in the chart I must add it to the chart separately. There for the displayed bar series and what is used in the strategy could be different so I am responsible to coordinate. IS THAT CORRECT??
Also::
Is it possible to display an indicator from the strategy that is based on a second added bar series?
Comment
-
If you add a secondary series to a strategy, the bar data is loaded, but the chart does not display this series unless you manually add it through the Right Click > Data Series option.
Yes, you are responsible for matching a chart series added manually through the GUI with a strategy series added through code.
It is possible to plot indicators based on a secondary series using a Strategy. However, the GUI makes this much easier. When adding the indicator you can choose among all the chart series to base its calculations from.
See here for the reference sample on plotting from within a strategy.Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Brevo, Today, 01:45 AM
|
0 responses
2 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
238 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
4 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
Comment