Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unlock Text

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

    Unlock Text

    Is it possible, code wise, to have text that is NOT locked on the chart

    eg some text at the top of a bar that you can grab and move around without having to 'unlock' - or have I missed a trick somewhere?

    #2
    i suppose with NT7 it can be done.

    heres a code snippet.

    Code:
    IText t = DrawText("txt" + CurrentBar,CurrentBar.ToString(),0,High[0],Color.Red);
    t.Locked = false;

    Comment


      #3
      lock

      Bukkan - many thanks for that - I don't quite see why support couldn't have come up with that?

      Comment


        #4
        Update

        IText is a little quirky - so if you produce IText from outside the OnBarUpdate the unlocking facility no longer works.

        Found this in help which is a bit brute force but it does the job in a manner of speaking...

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        421 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        279 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        238 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        324 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        288 views
        0 likes
        Last Post CarlTrading  
        Working...
        X