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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by traderqz, Yesterday, 09:06 AM
    3 responses
    21 views
    0 likes
    Last Post NinjaTrader_ThomasC  
    Started by f.saeidi, Today, 10:19 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by kujista, Today, 06:23 AM
    5 responses
    15 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by traderqz, Today, 12:06 AM
    3 responses
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by RideMe, 04-07-2024, 04:54 PM
    5 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X