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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X