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.
    BertrandNinjaTrader Customer Service

    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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        27 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 04-23-2024, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        193 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,235 views
        0 likes
        Last Post xiinteractive  
        Working...
        X