Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing a vertical text on the chart

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

    Drawing a vertical text on the chart

    Hello!

    I want to draw a text on the chart, but the code I have per now draws only horizontal texts. I am wonreding if there is a way to draw vertical texts.

    I have following code:

    HTML Code:
    Draw.Text(this,"Tag" + CurrentBar, myText.ToString(), 0, High[0]);
    Best regards

    #2
    Hello Stanfillirenfro,

    Thanks for your post.

    NinjaTrader does not have a specific method for drawing text vertically.

    Something you could do is consider making a new line after each character (/n). Or, you could use SharpDX to rotate the text.

    See the attached example script, TextRotationDXExample, which demonstrates rotating text with SharpDX.

    Also, see this help guide page for more information about working with SharpDX: https://ninjatrader.com/support/help..._rendering.htm

    Let us know if we may assist further.
    Attached Files
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Many thanks BranonH and sorry to have not replied earlier.
      Many thanks again.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      57 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      78 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      39 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      101 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      61 views
      0 likes
      Last Post PaulMohn  
      Working...
      X