• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 pulpiwapi, 03-04-2019, 11:18 PM
    11 responses
    143 views
    0 likes
    Last Post music_p13  
    Started by indy73, Yesterday, 10:52 PM
    3 responses
    17 views
    0 likes
    Last Post sledge
    by sledge
     
    Started by priceisking, Today, 12:51 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by chartish, Today, 10:33 AM
    3 responses
    26 views
    0 likes
    Last Post chartish  
    Started by casabella, Today, 11:51 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X