For now I've managed a workaround with Draw.Text() using ChartBars.FromIndex and ChartPanel.MaxValue.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw.TextFixed, TextAlignment
Collapse
X
-
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.Tags: None
-
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:
More about the TextFixed object can be found here: http://ninjatrader.com/support/helpG...?textfixed.htmCode:TextFixed myTF = Draw.TextFixed(this, "awesomeText", "This is awesome", TextPosition.Center); myTF.Alignment = TextAlignment.Left;
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
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
136 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
293 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
238 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
334 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
171 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment