Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Object Permanent

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

    Drawing Object Permanent

    If I manual draw a rectangle or text on the chart it remains on the chart until I delete it. So if I reload historic data or open or close ninja the drawing objects stay. But when I draw inside my indicator it does not remain.

    ls there a setting to tell this drawing object to stay permanent until I deleted it.

    Specifically inside the indicator, when there is a news event I want to draw a drawing object and label it as news event. That I can do. But I want it to remain even if I close Ninja and reopen it, until I delete it.

    The problem is when you reopen ninja that news story is gone and the one drawn is gone.

    #2
    Hello Rwbil,

    Thank you for your note.

    There is no way to have the draw object not be deleted when restarting NinjaTrader or reloading the Indicator.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by rwbil View Post
      If I manual draw a rectangle or text on the chart it remains on the chart until I delete it. So if I reload historic data or open or close ninja the drawing objects stay. But when I draw inside my indicator it does not remain.

      ls there a setting to tell this drawing object to stay permanent until I deleted it.

      Specifically inside the indicator, when there is a news event I want to draw a drawing object and label it as news event. That I can do. But I want it to remain even if I close Ninja and reopen it, until I delete it.

      The problem is when you reopen ninja that news story is gone and the one drawn is gone.
      You can write the time code of the drawing object to a file or save it to an array or list, then restore the object when NT restarts.

      Please view this post: http://www.ninjatrader.com/support/f...ad.php?t=70899
      (post #5)

      So write what? Write the time code of the object. Every DateTime object has a Ticks value, which I call the time code:
      DateTime t = drawingObject.Time; // this is just a pseudo code
      long timeCode = t.Ticks;
      Cheers,
      Pi
      Last edited by ninZa; 01-03-2015, 08:20 PM.
      ninZa
      NinjaTrader Ecosystem Vendor - ninZa.co

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      563 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      329 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X