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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      32 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      195 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      358 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      278 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X