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

Unlock an Indicator's object

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

    Unlock an Indicator's object

    Hi!

    My indicator draws an 'Draw.HorizontalLine'. I want to manually drag the object. However, the object is Locked. How can I manually drag an Indicator's object?
    Thanks!

    #2
    Hello webus,

    Thanks for your post.

    You could create a DrawingTools.HorizontalLine variable named something like myHorizontalLine and assign the Draw.HorizontalLine() method to it.

    Then, you could call myHorizontalLine.IsLocked = false; to allow the drawing object to be moveable on the chart window.

    I have attached an example script demonstrating this concept that you could view.

    See this help guide page for more information: https://ninjatrader.com/support/help...rawingtool.htm
    Attached Files
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aligator, 01-06-2022, 12:14 PM
    4 responses
    233 views
    0 likes
    Last Post john_44573  
    Started by reynoldsn, Today, 05:56 PM
    0 responses
    4 views
    0 likes
    Last Post reynoldsn  
    Started by bortz, 11-06-2023, 08:04 AM
    51 responses
    1,989 views
    0 likes
    Last Post aligator  
    Started by dmking, 11-12-2019, 12:31 PM
    4 responses
    4,150 views
    0 likes
    Last Post jasonw
    by jasonw
     
    Started by roblogic, Today, 04:31 PM
    0 responses
    10 views
    0 likes
    Last Post roblogic  
    Working...
    X