Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText() in Ninja 7 - how to unlick the text?

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

    DrawText() in Ninja 7 - how to unlick the text?

    Hi,
    The text is locked when using DrawText() in Ninja 7. I looked in help but could not find any answers. Is there a way to unlock the text programmatically please? Or I must click on every text entry to unlock it?
    Thank you very much.
    Regards, Art.

    #2
    Hi Art,

    Yes, you can unlock drawing objects with code.

    The following snippet belongs in OnBarUpdate():

    foreach (IDrawObject draw in DrawObjects)
    {
    // Unlocks all draw objects for manual manipulation on the chart
    draw.Locked = false;
    }

    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 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
    548 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