Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Move a line of strategy/indicator drawn by hand

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

    Move a line of strategy/indicator drawn by hand

    Hi, how is it possible to set line drawn by a strategy/indicator to non-locked by default? I would like to draw the line by the strategy/indicator but can move by hand afterwards directly without opening the properties window and removing the check mark.

    Code:
    Draw.Line(this, "test", 100, 13930, 0, 13930, Brushes.Black);
    Click image for larger version  Name:	Screenshot_2.jpg Views:	0 Size:	21.8 KB ID:	1159706
    Last edited by sidlercom80; 06-11-2021, 10:10 AM.
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    You could unlock the line after drawing it like the following:


    Code:
    DrawingTools.Line line = Draw.Line(this, "test", 100, 13930, 0, 13930, Brushes.Black);
    line.IsLocked = false;

    I look forward to being of further assistance.

    Comment


      #3
      Hi _Jesse, thank you! I tried it with IgnoreUserInput and IgnoreSnapping, IsLocked is the magic word ;-)
      Wish you a nice weekend!
      sidlercom80
      NinjaTrader Ecosystem Vendor - Sidi Trading

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      120 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X