DrawHorizontalLine("Current_price" , Close[1] + 1 * TickSize, Color.Lime);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Drawline Width
Collapse
X
-
Drawline Width
Hi. I need help. I am trying to convert an indicator I had in NT6.5 to the NT7 Beta. It's a very simple indicator but sense transferring I had to change the way it draws the line and now I can't change the thickness of the line anymore. This is what I have. Thanks for any help on this.
DrawHorizontalLine("Current_price" , Close[1] + 1 * TickSize, Color.Lime);Tags: None
-
I could use some help on the ,bool autoScale, part. The problem is I don't have an example of this code because it seems that most programs plot lines not draw them and the way that NT7 is asking me to code it is different than the original indicator I used in NT6.5.Originally posted by NinjaTrader_Bertrand View Postcre8it8, Intellisense would offer you two overloads, you need to use the second, expanded one for your request, so you can set the width parameters.
Code:DrawHorizontalLine(string tag, bool autoScale, double y, Color color, DashStyle dashStyle, int width)
This is what I have so far:
DrawHorizontalLine("Current_price1", autoScale, Close[1] + 2 , Color.Lime, DashStyle.Solid, 5);
Thanks for any help.
Comment
-
I was "So close but yet so far away".Originally posted by NinjaTrader_Josh View Postcre8it8,
In that part all you have to do is type either true or false depending on if you want this object to auto scale the y-axis or not.
DrawHorizontalLine("Current_price1", true, Close[1] + 2 * TickSize, Color.Lime, DashStyle.Solid, 5);
Thanks for the help! It works perfect.
By the way I am loving NT7.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
173 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
328 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
252 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
354 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
181 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment