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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X