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 zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      150 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      6 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      6 views
      0 likes
      Last Post tkaboris  
      Working...
      X