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 Sparkyboy, Today, 10:57 AM
            0 responses
            1 view
            0 likes
            Last Post Sparkyboy  
            Started by TheMarlin801, 10-13-2020, 01:40 AM
            21 responses
            3,916 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by timmbbo, 07-05-2023, 10:21 PM
            3 responses
            152 views
            0 likes
            Last Post grayfrog  
            Started by Lumbeezl, 01-11-2022, 06:50 PM
            30 responses
            809 views
            1 like
            Last Post grayfrog  
            Started by xiinteractive, 04-09-2024, 08:08 AM
            3 responses
            11 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X