Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    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
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,788 views
        0 likes
        Last Post aligator  
        Started by Jimmyk, 01-26-2018, 05:19 AM
        6 responses
        837 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,293 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        12 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        11 responses
        62 views
        0 likes
        Last Post halgo_boulder  
        Working...
        X