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 Skifree, Today, 03:41 AM
|
1 response
2 views
0 likes
|
Last Post
by Skifree
Today, 03:42 AM
|
||
Started by usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
603 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
23 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
23 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
Comment