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

Draw Text on chart in constant alignment

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

    Draw Text on chart in constant alignment

    Hi I want to know what method I can use to draw text on chart in a fixed location allowing for fixed spacing and a fixed number of characters so the alignment is always the same. Like an Excel table for example. I've tried using const string but that still 'move's'. Has anyone got any ideas?

    Regards,
    suprsnipes

    #2
    Originally posted by suprsnipes View Post
    Hi I want to know what method I can use to draw text on chart in a fixed location allowing for fixed spacing and a fixed number of characters so the alignment is always the same. Like an Excel table for example. I've tried using const string but that still 'move's'. Has anyone got any ideas?

    Regards,
    suprsnipes
    If you want to draw text in a fixed location, you will need to locate the text using the properties of bounds. Look in the CustomPlotSample.cs file for guidance.

    If you want your text spacing to be fixed, use a monospace font.
    Last edited by koganam; 06-24-2013, 06:30 AM.

    Comment


      #3
      Thanks koganam I'll look into that

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by frankthearm, Yesterday, 09:08 AM
      13 responses
      45 views
      0 likes
      Last Post frankthearm  
      Started by PaulMohn, Today, 12:36 PM
      2 responses
      16 views
      0 likes
      Last Post PaulMohn  
      Started by Conceptzx, 10-11-2022, 06:38 AM
      2 responses
      53 views
      0 likes
      Last Post PhillT
      by PhillT
       
      Started by Kaledus, Today, 01:29 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by yertle, Yesterday, 08:38 AM
      8 responses
      37 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Working...
      X