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 sjsj2732, Yesterday, 04:31 AM
          0 responses
          33 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          286 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          285 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          133 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          91 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X