Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw objects

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

    Draw objects

    Hi guys,

    Could you offer me a method which can draw an object (text, rectangle) to a given x axis coordinate? I need different distance between drawn objects, so the fix bars for x axis coordinate are not good for me.

    Many thanks!

    #2
    CuriProgrammer, what you can look into is drawing via custom C# techniques in the overridden Plot method - we would not have much documentation on this flexible yet unsupported technique, however NT comes shipped with an example for advanced coders - it's called the CustomPlotSample is installed per default.

    Comment


      #3
      Many thanks for your reply and I want to apologise for my late response..

      I can not do my first theory about drawing so I thought over what i want to see.
      I want to draw rectangle to the chart. The rectangle's start point could be a bar (like DrawRectangle's startBarsAgo param) but it's end point should be a ratio or a not integer number which represent the width of rectangle.

      Thanks for your help!

      Comment


        #4
        Hy folks,

        I am dealing with the same issue - putting optional lenght rectangles each bars.
        I saw an indicator that did the same thing just cant remember wich one was that.

        any help would be appreciated

        Comment


          #5
          For manually drawn rectangles that would not be possible, but for script drawn ones you can certainly update their end points either via supplying the index or DateTime. I have seen users working successfully with negative bar indices to signify a future bar, althought this technique would not be documented / supported by us. You will need to round / truncate the calcs so it falls on a bar / timestamp value though, to draw finer down to a pixel the plot override C# custom techniques would need to be employed.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          160 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          307 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          244 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          348 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          178 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X