Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Debug Overridden Plot() when objects disappear

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

    Debug Overridden Plot() when objects disappear

    I have overridden the Plot() method. I am running into an issue where it outputs my various drawn objects when the chart initially loads, but as soon as a new tick comes in, they all disappear.

    I don't know of a good way to debug it, since no error is thrown. I've checked and double checked all possibilities I can think of, but it keeps happening.

    I've also tried putting a try/catch in there, but it doesn't get triggered.

    Any help is greatly appreciated!

    Daniel

    #2
    Hello,

    Adding/modifying code in the Plot method is not supported by NinjaTrader.

    You may have luck asking this in the unsupported thread.
    http://ninjatrader.com/support/forum...ad.php?t=22435

    Is it necessary for you to override the Plot method?

    Is there any way we can help you accomplish your goal using a supported method?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you for the quick reply. Unfortunately, yes, I need to override the plot() method (it's quite a complicated script, ~5000 lines).

      It works perfectly fine for most all cases, but there is one situation that seems to cause the objects to disappear after a new tick comes in and I am struggling with debug it, since there is no error.

      As I type this, the markets are closed and my objects are appearing perfectly. When the markets open in a moment (and new ticks come in), they will disappear, unfortunately.

      Comment


        #4
        Hi neoikon,

        I am leaving this thread open so that you may continue to be advised by other NinjaTrader users.

        However, because this involves debugging as well as unsupported methods, my recommendation is that you seek a professional NinjaScript Consultant.
        http://www.ninjatrader.com/Ecosystem/NonBroker.php#81
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        666 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        376 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X