Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder - Remove Draw Objects

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

    Strategy Builder - Remove Draw Objects

    When creating a signal using the Strategy Builder, Is there a way to have the DrawObject paint when condition is true and be removed if the the condition is no longer true during the same bar - I set the Calculate for On price change or On every tick, but the object seems to paint when condition is true, and remain there when condition goes false. Any remedies to have the object disappear during the bar when condition changes? It seems like the condition is evaluated at the Open of the bar and the object is painted if condition is true. Then it just stays there. Thanks for any help!

    #2
    Hello stockbux,

    Thank you for your inquiry.

    Your post was unrelated to the thread where it was posted, so I moved it into its own, new thread. The Strategy Builder actions "Draw" folder contains an option for "Remove draw object" which would allow you to remove a single object with its tag or "Remove draw objects" to remove all draw objects from the chart. If an object is drawn when a condition is true, it will remain on the chart unless you create a different condition/action that explicitly removes the draw object.

    Please let us know if we may be of further assistance.

    Comment


      #3
      Thank you Emily for moving my post. Is there a link you can provide for step by step instructions on how to Remove draw object when a condition becomes false? Thank you! I'd like to have the strategy to do this automatically. Is that possible in NT8?
      Last edited by stockbux; 12-21-2023, 05:36 PM.

      Comment


        #4
        Hello stockbux,

        Please see the attached screenshots for an example.

        In this example, in the first set the condition checks if my current market position is Long, the strategy draws a dot with the tag "myDot".

        In the second set, the condition checks if current market position is no longer Long, and if so it will remove the drawing object with the tag "myDot".

        Please let me know if you have any other questions.
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        59 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        134 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        74 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X