Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Anchoring text to absolute position on chart
Collapse
X
-
Anchoring text to absolute position on chart
Is there a way to anchor text to an absolute horizontal position on the chart window so that when I scroll horizontally it stays fixed? I want to label a horizontal line, and have that label appear at the same X position at all times, but obviously want it to move with vertical scrolling.Tags: None
-
Hello JoshDance,
When I test it on my end, I cannot reproduce that the text object is moved when scrolling horizontally. I see you refer to vertical scrolling in your last sentence and I assume you meant this as well in your first sentence.
Vertical scrolling of the Y-axis (Ctrl + click and hold left mouse button and move up/down) does not change the location of the Text object either.
However, when I (de)compress the Y-axis the horizontal line can be plotted on the text object. Unfortunately this can be as expected. The Y-axis values will get more compressed because the Y-axis increases, however the Text object remains the same in size. The horizontal line and Text object are assigned to Y-axis values. Since these Y-axis values 'shrink' when compressing the Y-axis, the drawing objects can appear on top of each other. I have included two screenshots that illustrate this behavior.
Please let me know if you refer to different behavior.
-
Sorry, I was not clear. I would like it so that the text does NOT scroll horizontally when the chart is scrolled horizontally. In other words, I'd like to always be able to see the text. I'm looking to label a line. Is there currently a way to attach a label to a horizontal line?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
77 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
45 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
27 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
62 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment