Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RenderTarget DrawText/DrawRectangle question...

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

    RenderTarget DrawText/DrawRectangle question...

    My "DrawingTool" displays a rectangle with text at the end of a Vertical line on the chart. However, when I scale the chart the two get separated, as in, the Text/Rectangle does not scale properly with the chart.
    This tool uses RenderTarget.DrawText and RenderTarget.DrawRectangle.
    Please see attached.
    Attached Files

    #2
    Hello,

    Thank you for the question.

    This would likely be due to how the values being used are being calculated currently.

    Could you provide a sample of how you are currently rendering the lines along with the text and box?

    Because you are using the OnRender override, there is no automatic scaling or "snapping" to times or bars, so any placement of drawing would be due to the calculations being used. If you can provide a sample of the calculation being used, it would be easier to see what may be happening.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 11:51 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    23 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X