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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        41 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        29 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        46 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        37 views
        0 likes
        Last Post CarlTrading  
        Working...
        X