Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Dealing with multiple charts
Collapse
X
-
rdhore, welcome to our support forums!
Currently (in NinjaTrader 6.5) this is not possible for indicators, as we only support multiseries data access in strategies - http://www.ninjatrader-support.com/H...struments.html
With NinjaTrader 7 we'll extend this concept then also to indicators - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
New Multi-Series Charting
You can now mix multiple series on a single chart without limitations seen in other platforms. We have introduced a new chart level property "Equidistant bar spacing" which is automatically set to false when mixing more than one series. What this does is creates a time axis that is void of any missing bars so that mixed series of any type can all be accurately aligned to time. When this property is set to true, bars have even space between them and missing time bars are excluded.
The image below depicts a mixed series chart that plots ES 5 Minute, NQ 1 Minute, YM 1000 Tick and YM 10 point range series.
BertrandNinjaTrader Customer Service
-
I have two charts opened at the same time with two different series. Are you saying that I cannot have an indicator which takes in both the charts and plots? In strategies, is this possible to make an order using both the charts? I need to compare two charts for orders.
Comment
-
Please see this link for explanations and sample code for the concept - http://www.ninjatrader-support.com/H...struments.html
You don't have to have the needed charts all open, they are added to the Strategy's Initialize() call and thus the strategy will load them automatically if started.BertrandNinjaTrader Customer Service
Comment
-
You can pass in BarsArray[int index] directly then into the indicator overload - http://www.ninjatrader-support.com/H...BarSeries.htmlBertrandNinjaTrader Customer Service
Comment
-
I need to call an indicator from a strategy which does a comparison between two dataseries.
Now, I have BarsArray[0] and BarsArray[1] in that strategy which are to be passed to an indicator using explicit declaration of DataSeries Properties. When I am doing this, its giving error of datatype conflict - Bars and DataSeries. Please help me.
Comment
-
I'm not sure I follow what you want to do - just call the indicator two times in the strategy passing in the two needed bars arrays and then do the comparison in the strategy directly. Please remember that indicators do not support working with multiseries in NinjaTrader 6.5, thus you need to do those related calcs in the strategy.BertrandNinjaTrader Customer Service
Comment
-
I need a custom DataSeries in my strategy for the use of a nested indicator.
The strategy is a multi-instrument strategy. I have two bars object.
I executed the following:
myDataSeries = new DataSeries(this);
Then, the primary bars will be taken into the DataSeries. But actually, I need the BarsArray[1] to be added into the DataSeries. Also the DataSeries to be in sync with the BarsArray[1] throughout the running of the strategy. Hope you understood where I am stuck. Please help.
Comment
-
rdhore, you can pass in BarsArray[0] (primary) and BarsArray[1] (secondary) directly in the IDataSeries input of the indicator.
For storing the secondary BarsArray indicator values synched to the primary series, please see this sample for more info - http://www.ninjatrader-support2.com/...ead.php?t=3572BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, 03-12-2024, 06:12 AM
|
4 responses
31 views
0 likes
|
Last Post
by bmartz
Today, 08:02 AM
|
||
Started by Aviram Y, Today, 05:29 AM
|
4 responses
12 views
0 likes
|
Last Post
by Aviram Y
Today, 07:57 AM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
3 responses
28 views
0 likes
|
Last Post Today, 07:41 AM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
1 response
8 views
0 likes
|
Last Post Today, 07:30 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM |
Comment