Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing text on chart?

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

    Drawing text on chart?

    Hello there,

    I see a Draw.Text method which seems to be the right method. It is however static, as a new bar is drawn I want to move the Text right one bar (i.e. synced to the last bar.

    I also want to make use of the y-coordinate, which changes from bar to bar.

    Ideally I want to draw at rightmost (- space of the text) and top most of the chart.

    How would I do that?

    Thank you much!

    Caesar

    #2
    Hello Caesar,

    Thank you for your post.

    You have a couple of options here. Based on your description of wanting to draw at rightmost and top most of the chart, it sounds like you might actually want to use Draw.TextFixed() instead with the TextPosition of TextPosition.TopRight:


    If you continue to use Draw.Text() then you could use the same tag and this will continue to modify the object. For example, if you want to keep the text synced up with the right-most bar, you would use a int barsAgo of 0 to keep it on 0 bars ago. You could modify the double y to the desired y value for each bar, though keeping it in the "top most" area of the chart wouldn't be as simple to do with Draw.Text() and is already built in to the Draw.TextFixed() method. Here is the Draw.Text() page for comparison:


    Please let us know if we may be of further assistance.

    Comment


      #3
      Many Thanks, I'll take a look.

      Comment


        #4
        Is there a way to put a text object on the chart that does not scroll with the chart?

        I mean manually, not programmatically.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X