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 cre8able, Yesterday, 01:16 PM
        3 responses
        11 views
        0 likes
        Last Post cre8able  
        Started by ChartTourist, Today, 08:22 AM
        0 responses
        4 views
        0 likes
        Last Post ChartTourist  
        Started by LiamTwine, Today, 08:10 AM
        0 responses
        2 views
        0 likes
        Last Post LiamTwine  
        Started by Balage0922, Today, 07:38 AM
        0 responses
        5 views
        0 likes
        Last Post Balage0922  
        Started by JoMoon2024, Today, 06:56 AM
        0 responses
        6 views
        0 likes
        Last Post JoMoon2024  
        Working...
        X