Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi-DataSeries throws exception with tick replay
Collapse
X
-
Reproduce the issue
Please take the Pivot indicator that ships with NinjaTrader 8.
Apply it to a chart with tick replay and set it to "HLC calculation mode" = "Use daily bars".
It will throw the same exception:
Indicator "Pivots". Error on calling 'OnBarUpdate' method on bar 111: Object reference not set to an instance of an object.
NinjaTrader 8 has a general problem with processing the last daily bar. I have started another thread on this issue, but have not yet received any satisfactory answer. I would call it a superbug, which is currently being neglected. Also I am not getting any feedback on this issue as needed.
Comment
-
DayCount problem
I have used BarsArray[].DayCount to check whether it is possible to use GetBars(). As far as I had understood, BarsArray[].DayCount either returns the value 0 or the value 1.
I have applied BarsArray[].DayCount to secondary bar series, both daily bars and minute bars. This works well as long it is being used on standard data.
With Tick Replay, BarsArray[1].DayCount returns the value 0 for minute data, although I have years of minute data sitting in my database.
Here come my questions:
(1) Is there any documentation anywhere on DayCount? I have not found it in the help file.
(2) Was DayCount intended for use other than with daily bars? It does not work with minute data when Tick Replay is active, but works with minute data when it is inactive.
(3) Why would I use DayCount and not simply check whether CurrentBars[] is greater or equal to zero?
Comment
-
Hello Harry,
That is correct BarsArray[int index].DayCount is not documented and I don't have lot of information about this.
My understanding this is for intra-day bars series to get a count of the number of sessions without having to add a secondary day series.
My lead has suggested trying:
BarsArray[int index].BarsSeries.DayCountChelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello Harry,
That is correct BarsArray[int index].DayCount is not documented and I don't have lot of information about this.
My understanding this is for intra-day bars series to get a count of the number of sessions without having to add a secondary day series.
My lead has suggested trying:
BarsArray[int index].BarsSeries.DayCount
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Perr0Grande, Today, 08:16 PM
|
0 responses
2 views
0 likes
|
Last Post
by Perr0Grande
Today, 08:16 PM
|
||
Started by elderan, Today, 08:03 PM
|
0 responses
5 views
0 likes
|
Last Post
by elderan
Today, 08:03 PM
|
||
Started by algospoke, Today, 06:40 PM
|
0 responses
10 views
0 likes
|
Last Post
by algospoke
Today, 06:40 PM
|
||
Started by maybeimnotrader, Today, 05:46 PM
|
0 responses
12 views
0 likes
|
Last Post Today, 05:46 PM | ||
Started by quantismo, Today, 05:13 PM
|
0 responses
7 views
0 likes
|
Last Post
by quantismo
Today, 05:13 PM
|
Comment