Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-DataSeries throws exception with tick replay

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Hello Harry,

    Thank you for your input on this.

    I was able to create a short test script and reproduce this behavior.

    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


    I've reported this behavior to our development. Once I have a tracking ID for the behavior I will post this in this thread for future reference.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      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


        #18
        Hello Chelsea,


        That was a fast response! Much appreciated.

        I have changed my first post, as I now understand that the issue is linked to daily bars.

        That said you can directly use the Pivots indicator that ships with NinjaTrader to reproduce the issue.

        Comment


          #19
          Hi Harry,

          That's the key piece of information missing from the thread below.


          TickReplay is the culprit.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            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


              #21
              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.DayCount
              Chelsea B.NinjaTrader Customer Service

              Comment


                #22
                Originally posted by NinjaTrader_ChelseaB View Post
                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.DayCount
                It is called DayCount, so may be it was created to deal with specific problems related to the way NinjaTrader processes daily bars series. I won't try to use it anymore for other than daily bars.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Perr0Grande, Today, 08:16 PM
                0 responses
                2 views
                0 likes
                Last Post Perr0Grande  
                Started by elderan, Today, 08:03 PM
                0 responses
                5 views
                0 likes
                Last Post elderan
                by elderan
                 
                Started by algospoke, Today, 06:40 PM
                0 responses
                10 views
                0 likes
                Last Post algospoke  
                Started by maybeimnotrader, Today, 05:46 PM
                0 responses
                12 views
                0 likes
                Last Post maybeimnotrader  
                Started by quantismo, Today, 05:13 PM
                0 responses
                7 views
                0 likes
                Last Post quantismo  
                Working...
                X