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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        557 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X