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 burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X