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

Notify changes from DrawingTool

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

    Notify changes from DrawingTool

    Hello,
    is there any way for a DrawingTool owner (indicator, strategy, addon) to be notified when the DrawingTool changes (for example, if it is moved or resized)?

    If not, would it be possible in a future release that the DrawingTool class would implement the INotifyPropertyChanged interface? This way the owner could instantly react to any change in the properties of the DrawingTool.

    Thank you

    #2
    Hello cls71,

    Thanks for your message.

    This is something we have been tracking interest in with the feature request ticket ID SFT-1358. I have added a vote on your behalf. (We cannot offer an ETA or promise of fulfillment and feature requests are tracked internally, not publicly.)

    You could consider adding a public property in the Drawing Object that is signaled when a property has changed and then have the hosting script set this property back after it sees the "PropertyChanged" property has changed. This would be a roll-your-own type of solution and would have hitches, but you may be able to shoehorn enough functionality to satisfy the needs for your goal. You could also consider modifying the setters for each public property in the Drawing Tool to signal when one may have been changed.

    If you have any additional inquiries, please don't hesitate to open a new thread.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks Jim,
      but if I have understood you well your advice would be useful for new custom DrawingTools, not for the standard ones that already exist.

      Comment


        #4
        Hello cls71,

        Yes, the suggested workaround would be applied to custom DrawingTools. You can create your own custom versions if it is absolutely needed.

        We do have your feedback tracked to consider implementing INotifyPropertyChanged for DrawingTools in a newer version of NinjaTrader.

        Let us know if there is anything else we can do to help.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by trilliantrader, Today, 08:16 AM
        2 responses
        6 views
        0 likes
        Last Post trilliantrader  
        Started by samish18, Today, 08:31 AM
        1 response
        1 view
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by Creamers, 09-08-2023, 10:26 AM
        6 responses
        157 views
        0 likes
        Last Post JonyGurt  
        Started by funk10101, Today, 08:14 AM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by bill2023, Yesterday, 08:51 AM
        3 responses
        22 views
        0 likes
        Last Post bltdavid  
        Working...
        X