Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Bars.IsFirstBarOfSession NullReferenceException

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

    Bars.IsFirstBarOfSession NullReferenceException

    Bars.IsFirstBarOfSession NullReferenceException

    Got this exception now in RC2.
    Also read this http://ninjatrader.com/support/forum...null+reference
    Now this is in archive. Problem solved in release?

    #2
    Hello ren37,

    Thank you for your post.

    Can you provide your log and trace files? Please send them over to us by going to Help > Email Support in the NinjaTrader 8 Control Center with 'ATTN: Patrick H' in the subject line and a reference to this thread in the body of the email.

    Comment


      #3
      I am not aware of any specific changes in RC2 which would have addressed this scenario.

      I reviewed the trace files but I'm not exactly certain of the context. I noted it was shortly after the application started, but before you connected to a data provider - since it was OnMarketData, were you working with tick replay?

      Was the error during the initial startup/load process? Or was it after some user action e.g., you duplicated a tab, or drag/drop an indicator for instance?

      I'm not aware of any situation where the objects used to return that property would be null, so we will need a bit more information regarding the environment it occurred in.

      Thanks
      MatthewNinjaTrader Product Management

      Comment


        #4
        Hello

        Yes, it was tick replay option checked.
        I had only one bar load setting in data series options (one bar on screen in fact), but had this exception on bar #6!

        Error was during the initial data load process. No user action at all.

        About 30 mins after I got this but without any exceptions.
        This shots are after connection to data feed.



        Last edited by ren37; 11-16-2016, 05:11 AM.

        Comment


          #5
          Originally posted by ren37 View Post
          Hello

          Yes, it was tick replay option checked.
          I had only one bar load setting in data series options (one bar on screen in fact), but had this exception on bar #6!

          Error was during the initial data load process. No user action at all.
          Thanks, we're running more tests around that area.


          Originally posted by ren37 View Post
          About 30 mins after I got this but without any exceptions.
          This shots are after connection to data feed.
          I apologize but I'm not quite sure what you are trying to show with these screenshots (although I see the bars do not match) - are you suggesting this null reference error had a downstream effect? Or is this a separate issue you are looking to report where two chart tabs are not in sync with each other?
          MatthewNinjaTrader Product Management

          Comment


            #6
            Originally posted by NinjaTrader_Matthew View Post
            I apologize but I'm not quite sure what you are trying to show with these screenshots (although I see the bars do not match) - are you suggesting this null reference error had a downstream effect? Or is this a separate issue you are looking to report where two chart tabs are not in sync with each other?
            Last price on 2nd chart is 2130 (see price marker) and some latest bars missed.
            But actual data are coming in OnMarketData() (see level 2 and tape drawings).
            As I remember on this run I didn't see Null ref exception.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by samish18, Today, 08:31 AM
            1 response
            1 view
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by Creamers, 09-08-2023, 10:26 AM
            6 responses
            157 views
            0 likes
            Last Post JonyGurt  
            Started by funk10101, Today, 08:14 AM
            1 response
            2 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by trilliantrader, Today, 08:16 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by bill2023, Yesterday, 08:51 AM
            3 responses
            21 views
            0 likes
            Last Post bltdavid  
            Working...
            X