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:
Code: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 brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
62 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
8 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 02:34 AM |
Comment