Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 AveryFlynn, Today, 04:57 AM
      0 responses
      4 views
      0 likes
      Last Post AveryFlynn  
      Started by RubenCazorla, 08-30-2022, 06:36 AM
      3 responses
      78 views
      0 likes
      Last Post PaulMohn  
      Started by f.saeidi, Yesterday, 12:14 PM
      9 responses
      23 views
      0 likes
      Last Post f.saeidi  
      Started by Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      5 views
      0 likes
      Last Post FrancisMorro  
      Working...
      X