Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

C# Scaling question...

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

    C# Scaling question...

    My indicator overrides Plot and draws text on the screen just above a bar's high/low. However, when I scale the chart the bars scale as they should but the text stays fixed so consequently the text mashes into the bar itself. How does one get around this?

    #2
    Funk101,

    Thank you for your note.

    Can you please attach a screenshot of your chart and perhaps a sample of your script with what you are doing?

    To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file. Click Reply -> Go Advanced -> Click the Paperclip icon on the top toolbar

    For detailed instructions please visit the following link

    http://take-a-screenshot.org/
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by funk101 View Post
      My indicator overrides Plot and draws text on the screen just above a bar's high/low. However, when I scale the chart the bars scale as they should but the text stays fixed so consequently the text mashes into the bar itself. How does one get around this?
      you will need to recalculate the X,Y of the drawtext anytime the chart changes, Scroll, Zoom, Scale, and other instances.

      This applies for override Plot only, not Supported Drawing.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, Yesterday, 04:31 AM
      0 responses
      26 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      283 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      280 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      131 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      90 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X