Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Removing Draw Object from Previous Bar

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

    Removing Draw Object from Previous Bar

    Hey guys, I would like to know how do I remove a drawn object (let's say a diamond) from a previous bar, and assign it to current bar.

    #2
    Originally posted by ginx10k View Post
    Hey guys, I would like to know how do I remove a drawn object (let's say a diamond) from a previous bar, and assign it to current bar.
    You mean that at all times, you want there to be one, and only one, draw object of a particular type?

    Comment


      #3
      No. Just when I get an entry, a diamond appears, but then if next bar is better entry, i want previous bar's diamond to dissappear, and appear on current bar, and that's it.

      Comment


        #4
        Just be reusing the same tag id for your draw object, you will update it when you condition to do so hits.

        Here's a reference sample that highlights this concept - http://www.ninjatrader.com/support/f...ead.php?t=3419
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ETFVoyageur, Today, 07:05 PM
        0 responses
        3 views
        0 likes
        Last Post ETFVoyageur  
        Started by Orion815, 05-02-2024, 08:39 AM
        2 responses
        15 views
        0 likes
        Last Post Orion815  
        Started by suroot, 02-25-2017, 04:43 AM
        11 responses
        2,549 views
        0 likes
        Last Post Zilvercat  
        Started by Rogers101, 05-05-2024, 11:30 AM
        16 responses
        50 views
        0 likes
        Last Post Rogers101  
        Started by ninza33, Today, 12:31 PM
        2 responses
        11 views
        0 likes
        Last Post ninza33
        by ninza33
         
        Working...
        X