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 NullPointStrategies, Today, 05:17 AM
      0 responses
      20 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      119 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X