Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    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 f.saeidi, Today, 08:03 AM
      0 responses
      4 views
      0 likes
      Last Post f.saeidi  
      Started by cre8able, 04-17-2024, 04:16 PM
      7 responses
      64 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Aviram Y, 08-09-2023, 09:04 AM
      11 responses
      299 views
      0 likes
      Last Post arjandezeeuw  
      Started by Christopher Leggit, 02-15-2024, 09:00 AM
      3 responses
      47 views
      0 likes
      Last Post rdtdale
      by rdtdale
       
      Started by DavidHP, Today, 07:56 AM
      0 responses
      4 views
      0 likes
      Last Post DavidHP
      by DavidHP
       
      Working...
      X