Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Objects Removed once Condition is True

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

    Drawing Objects Removed once Condition is True

    In strategy builder, I have a condition when the condition draws a highlighted X. When the condition hits, it draws my highlighted X but when it hits for a second time, the previous highlight X disappears and the new one is drawn. I think it has something to do with my tags in the highlighted X. Any suggestions on how to keep my past drawings as the next condition hits?

    #2
    Hello w0lverine,

    Thanks for your post.

    Your observation is correct, it is caused by using the same tag name in a draw object. The first object is removed and the new object is drawn when the tag name is the same. This is the default behavior in the strategy builder and was done to reduce the number of draw objects generated. You can certainly change that by adding to the tag name to make it unique per object and this will allow you to see all prior draw objects. I've previously created a short video that walks through the process to change the tag name to make it unique per bar (and talks about offsetting markers) https://paul-ninjatrader.tinytake.co...MF8xMTMwNTc0MA

    Comment


      #3
      I got it!! Thanks Paul H

      Comment


        #4
        Originally posted by NinjaTrader_PaulH View Post
        Hello w0lverine,

        Thanks for your post.

        Your observation is correct, it is caused by using the same tag name in a draw object. The first object is removed and the new object is drawn when the tag name is the same. This is the default behavior in the strategy builder and was done to reduce the number of draw objects generated. You can certainly change that by adding to the tag name to make it unique per object and this will allow you to see all prior draw objects. I've previously created a short video that walks through the process to change the tag name to make it unique per bar (and talks about offsetting markers) https://paul-ninjatrader.tinytake.co...MF8xMTMwNTc0MA
        @NinjaTrader_PaulH​ I am having same problem and i was trying to look at the video but it's not loading. Can you check and share the working link for the solution please?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        24 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        120 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        63 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        45 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X