Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Customizing Extendable rectangle drawing object

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

    Customizing Extendable rectangle drawing object

    Hello everyone,
    I will need your help to customize the Extendable rectangle drawing tool.
    I want the rectangle to automatically extend to the right edge of the chart like on trading view. How can I do it?
    Attached Files

    #2
    Hello flomeunier,

    That would involve editing the scripts logic surrounding its anchors and rendering. That would not be a simple edit when referring to a drawing tool because mouse actions are involved to place the anchors. Depending on how the script is coded it may be able to leave the anchor code alone and simply render the rectangle to the panel edge however that may make later manipulating the object difficult. If this is an item which you downloaded from a third party I would suggest reaching out to them to see if that feature can be added. You can also reach out to a third party developer to have modifications made to this script. If you wanted to edit the script yourself a good starting point would be to familiarize yourself with the OnRender portion of the code. In that part of the code you could modify the X positions for the right side of the rectangle to be the ChartPanel.W which is the width meaning the X position is the right side of the chart.

    Comment


      #3
      Thanks for your answer but I can't do that

      Comment


        #4
        Hello flomeunier,

        You can also contact a professional NinjaScript Consultant who would be eager to assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team to follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one-on-one educational/debugging services.

        Comment


          #5
          Hi flomeunier
          Excuse me English.

          I would like to know if I can share your rectangle ext. drawing tool with you, and if it is possible to add the labels option to it, just as you did with the lightning bolt.
          It's just adding the option to be able to put text.
          The rest is perfect.
          Thank you.​
          Attached Files

          Comment


            #6
            Hi, @ingresoscontalento​ I already did it, here is the drawing tool with a line at 50%, a label with the possibility of attaching it to the right edge of the screen
            Attached Files

            Comment


              #7
              Hi flomeunier
              Wauuu! Surprised with your excellent work. thank you so much.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              558 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              324 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              545 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              547 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X