Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Capturing the change event of an drawing object

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

    Capturing the change event of an drawing object

    Hi,

    is possible from an indicator capture the change event of an drawing object? I need to find out when user moves an horizontal line.
    Does exist this event? And can I capture it?

    Thanks

    #2
    Hello Powerbucker,

    There is currently no exposed changed event for drawing objects, you would have to poll for changes meaning monitor the object and check for value changes if you are using the drawing objects collection to find objects on the chart.





    Comment


      #3
      Any suggestions how to do it? With a timer? I am now monitoring with the OnBarUpdate event, but when the market is slow, this event is triggered less often.

      Comment


        #4
        Hello Powerbucker,

        You can find an example of using a timer in the following page, I would likely still suggest using the market data for that purpose since the other logic you may be using that uses the objects or prices would not be triggered without market data anyway. OnBarUpdate is the suggested location for any kind of logic that involves the chart or its data.



        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        128 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        73 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        116 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        109 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        88 views
        0 likes
        Last Post CarlTrading  
        Working...
        X