Wilson
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
move text from left to inside right margin
Collapse
X
-
move text from left to inside right margin
I have copied the NT7 "Pivots" indicator and amended it to only show the R1,S1 and mid pivots. However, the text is to the left of the lines and over the price bars. How do I move the text to the right side of the lines and away from the price bars (inside the margin)? (Please see screenshot) Thanks.
WilsonTags: None
-
Hello,
The area you're looking for is in the #regions Miscellaneous section.
The exact line is around 508 and reads:
graphics.DrawString(plot.Name, ChartControl.Font, brush, lastX, lastY - textHeight / 2, stringFormatFar);
You'll want to change lastX to whichever X value you would like this to plot.MatthewNinjaTrader Product Management
-
Thanks Matthew for your reply. If I input a value for lastX, say "1500" the letters are placed to the right of the lines like I want, however if I reduce the chart dimensions, the letters are obscured. How can I place the letters at the end of the lines so they remain visable with the lines ?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by lightsun47, Today, 03:51 PM
|
0 responses
5 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
8 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
45 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 02:44 PM
|
||
Started by port119, Today, 02:43 PM
|
0 responses
9 views
0 likes
|
Last Post
by port119
Today, 02:43 PM
|
Comment