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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    14 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    135 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X