Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error message.

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

    Error message.

    I get this in my Log tab and no plot for the indicator. What does this refer too? I use the same code in other indicators without a problem.

    Failed to call 'OnMarketDepth' method for indicator 'XXXXX': Object reference not set to an instance of an object.
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    #2
    eDanny, you would need to add Print statements to the code to debug further - getting no errors on the other charts only does not automatically imply the code is flawless, this may only occur on specific conditions in market x.

    Comment


      #3
      To clarify, I use this same code in other indicators and they work. This new indicator just doesn't work. I didn't mean it the new indicator works on other charts. My question still is, what does the error indicate?
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        eDanny, then you would still need to debug the code used in this specific indicator, the error message indicates something is wrong with your used objects and their access (maybe one does not exist?). Try and catch can help to trace this down - http://www.ninjatrader-support2.com/...ead.php?t=9825

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        226 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        415 views
        0 likes
        Last Post CaptainJack  
        Working...
        X