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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      605 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      351 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      561 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X