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