Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

request.Bars is null

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

    request.Bars is null

    Sometimes the bars request completes but the request.Bars object is null, as shown in the debug screenshot below.
    Has anyone else experienced this before? What do you recommend trying?

    Click image for larger version

Name:	barsnull.jpg
Views:	57
Size:	186.0 KB
ID:	1096679



    #2
    Hello bboyle1234,

    Was there an error that occurred?

    Are you requesting data that cannot be loaded on a chart?

    Below are links to examples of BarsRequests, are you finding these examples are able to reproduce this behavior?
    https://ninjatrader.com/support/foru...518#post742518
    https://ninjatrader.com/support/foru...208#post786208
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Yes, the error is shown in the debugging screenshot. Execution is inside the request callback handler, and the property accessor request.Bars.Count threw a NullReferenceException, as shown by the exception information window at the bottom of the screenshot.
      I'm not able to reproduce the issue reliably. It seems to popup randomly. Yes, the requests are standard NT8 bars requests just like the examples given.

      Comment


        #4
        Hello bboyle1234,

        What is the errorCode / error message from the bars request?

        Were you able to reproduce the behavior using the examples I have provided?
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hoffmann, Today, 04:17 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by demarcog, Yesterday, 02:24 PM
        8 responses
        30 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by ErikY, Today, 01:28 PM
        2 responses
        7 views
        0 likes
        Last Post ErikY
        by ErikY
         
        Started by augustfay, Today, 01:07 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Oneobr09, Today, 12:21 PM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_Kate  
        Working...
        X