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 sjsj2732, Today, 04:31 AM
        0 responses
        20 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        280 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        279 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        130 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        90 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X