Thank you,
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
drawtext() question
Collapse
X
-
drawtext() question
When using DrawText() to print on the price channel, the y position of the text is in price units but the yPixelOffset is in pixels. How do I convert from pixels to price units so that I may instruct DrawText() to always print near the lower edge of the price panel? I onlky want the x position of the text to change from bar to bar.
Thank you,Tags: None
-
You should be using DrawTextFixed() in that case. If you printed text with a large pixel offset to place near the bottom of the chart, as price moves down your text would move below the chart and disappear? If you set it's autoScale to true then your price could be scrunched up sometimes during the bigger moves.
Comment
-
Opacity Zero for DrawTextFixed()
Another question regarding DrawTextFixed: I am using this for error messages. Sometimes several indicators plot the same error message. Opacities add up.
Solution: Set the opacity of the fill colour to 0. This is not a valid value according to your Help Guide, but it does the trick.
Can you confirm?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
549 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
550 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment