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

Remove objects

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

    Remove objects

    I would like to remove lines drawn on the main panel before I start drawing a new set of lines. I tried using.....
    RemoveDrawObject ("Line1").....
    RemoveDrawObject("Line2")........
    just before I recalculated and redrew the lines.

    My approach doesn't seem to work.

    Any suggestions for how best to remove a line before I draw the next line?

    Thanks............

    #2
    photog53, you could just redraw using the same tag id for the drawing object, this would just create one always updating draw object then and you would not have draw and remove in your code which should simplify matters.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Got it!!!!
      (took your advice....and then added an 'private int' to the tag that I could either increment or not which allows me to control seeing all lines or just the current lines)

      As always you guys are great!!!

      (very patient with basic questions and always helpful answers)
      Last edited by photog53; 06-08-2010, 01:10 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      2 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      40 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by techgetgame, Yesterday, 11:42 PM
      0 responses
      12 views
      0 likes
      Last Post techgetgame  
      Started by sephichapdson, Yesterday, 11:36 PM
      0 responses
      2 views
      0 likes
      Last Post sephichapdson  
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,615 views
      0 likes
      Last Post aligator  
      Working...
      X