• 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

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 digibob, Today, 02:47 AM
      2 responses
      13 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by mntemel, Today, 03:31 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_JoshG  
      Started by mrlucky1x, Today, 03:14 PM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by ninjo, Today, 02:42 PM
      3 responses
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Longhornmark, Today, 01:13 PM
      7 responses
      21 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Working...
      X