Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Selecting a line object with a drawing tool

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

    Selecting a line object with a drawing tool

    Hello,

    Is it possible to create a drawing that would select a line object on the chart and get access to the line properties ( Width, style ...)


    Thank you !

    #2
    Hello blar58,

    Thanks for your post.

    Your title says Drawing Tool and the text says drawing so I am a bit confused.

    You can create a script that adds, for example, a button on the chart and when clicked you could have the action to scan for a line drawing object and provide its properties.

    If that does not answer your question, please elaborate on what you want to do.

    Comment


      #3
      Sorry for the confusion :

      Is it possible to create a drawing tool that would select a line object on the chart and get access to the line properties ( Width, style ...)

      Comment


        #4
        For example is it possible to loop through line objects ( not drawn by a user ) and get the line drawn at the mousedown point ?

        Comment


          #5
          Hello blar58,

          Thanks for your reply and clarification.

          You can get the time and price of where the mouse click is and then loop through the draw objects collection and see if there is an anchor with that time and price.

          Here is a link to NinjaTrader_Chelsea's examples that may be helpful: https://ninjatrader.com/support/foru...lem#post792624

          Link to the help guide on looping through the objects: https://ninjatrader.com/support/help...rawobjects.htm



          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          646 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          367 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          107 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          569 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X