Thank you,
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 mmenigma, Today, 02:22 PM
|
0 responses
2 views
0 likes
|
Last Post
by mmenigma
Today, 02:22 PM
|
||
Started by frankthearm, Today, 09:08 AM
|
9 responses
35 views
0 likes
|
Last Post Today, 02:21 PM | ||
Started by NRITV, Today, 01:15 PM
|
2 responses
9 views
0 likes
|
Last Post
by NRITV
Today, 01:51 PM
|
||
Started by maybeimnotrader, Yesterday, 05:46 PM
|
5 responses
26 views
0 likes
|
Last Post Today, 01:19 PM | ||
Started by quantismo, Yesterday, 05:13 PM
|
2 responses
21 views
0 likes
|
Last Post
by quantismo
Today, 01:07 PM
|
Comment