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 usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
603 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
23 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
22 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
Comment