Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.TextFixed, TextAlignment

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

    Draw.TextFixed, TextAlignment

    I think it'd be nice to have the option to set TextAlignment within Draw.TextFixed(). Right now it is defaulting to centering the text and I have some big rectangles of text that don't look so hot.

    For now I've managed a workaround with Draw.Text() using ChartBars.FromIndex and ChartPanel.MaxValue.

    #2
    Hello TheBarChartist,

    Thank you for your inquiry.

    You would be able to modify the alignment programmatically by creating a TextFixed object. Here is some sample code below:
    Code:
    TextFixed myTF = Draw.TextFixed(this, "awesomeText", "This is awesome", TextPosition.Center);
    myTF.Alignment = TextAlignment.Left;
    More about the TextFixed object can be found here: http://ninjatrader.com/support/helpG...?textfixed.htm

    I have submitted your suggestion to specify TextAlignment in a Draw.TextFixed() overload to product management. We highly appreciate feedback from our customers to improve NinjaTrader!

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Hello TheBarChartist,

      Here is the internal tracking number for this suggestion:

      SFT-845

      Please use this number for any future inquiries on this feature request.
      Zachary G.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      672 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X