Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Determine if Drawing Object is Deleted from Chart or simply Refreshing Chart?

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

    Determine if Drawing Object is Deleted from Chart or simply Refreshing Chart?

    Within my custom drawing object, when the Chart is refreshed, The State is set to State.Terminated (as expected).

    Is there a way to determine if the object is being permanently removed from the Chart, rather than just a "temporary" one upon chart refresh? When you refresh the chart, the State is set to Terminated. When you delete the object from the chart, the State is also set to Terminated. Is there a way to distinguish between the situations?

    Thank you for any assistance you can provide!

    #2
    Hello neoikon,

    Thanks for your post.

    There are no DrawingTool methods available for determining if the State is State.Terminated if the object is being permanently removed from the Chart versus the Chart being refreshed.

    NinjaScript Lifecycle: https://ninjatrader.com/support/help...fecycle_of.htm

    If you would like, I could submit a feature request to the Development team for adding a method to detect if a DrawingTool is being removed from the Chart or if the Chart is being refreshed when the State is State.Terminated.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Yes, I think it would be a great feature! Thank you!

      Comment


        #4
        Hello neoikon,

        Thanks for your notes.

        I have submitted your feature request to the Development team and added your vote to it. This request is being tracked under the number SFT-6053.

        As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.

        Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        601 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        347 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        559 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        558 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X