DrawHorizontalLine("Current_price" , Close[1] + 1 * TickSize, Color.Lime);
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
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
-
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
-
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 Kaledus, Today, 01:29 PM
|
5 responses
12 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by Waxavi, Today, 02:00 AM
|
1 response
8 views
0 likes
|
Last Post Today, 02:53 PM | ||
Started by alifarahani, Today, 09:40 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 02:53 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 02:41 PM | ||
Started by PhillT, Today, 02:16 PM
|
2 responses
7 views
0 likes
|
Last Post
by PhillT
Today, 02:33 PM
|
Comment