Thanks and regards.
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
Change Dash Style
Collapse
X
-
Hello soyjesus,
Thanks for your post.
You can change this a couple of ways. One of the method overloads includes the ability to apply a named template. To create a template you can manually draw a rectangle (its size/shape does not matter) then change its colors and lines as you want them to be and save the template with a specific name. When you use the overload with the specific template name, it will draw the rectangle according to how you have specified in the code and will use the characteristics of the template for the line type and colors. Please review, "Understanding Drawing Object templates" for further details: https://ninjatrader.com/support/help..._tools__ob.htm
Alternately, In the code, you can use the Rectangle interface to change the stroke of the outline.
References:
From the above references, Here is an example:
Rectangle myRec = Draw.Rectangle(this, "tag1", 10, Low[10] - TickSize, 5, High[5] + TickSize, Brushes.Blue);
myRec.OutlineStroke = new Stroke(Brushes.Blue, DashStyleHelper.Dash, 3f);
Paul H.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ntram, Today, 05:39 PM
|
0 responses
1 view
0 likes
|
Last Post
by ntram
Today, 05:39 PM
|
||
Started by giulyko00, Today, 11:49 AM
|
2 responses
11 views
0 likes
|
Last Post
by giulyko00
Today, 04:43 PM
|
||
Started by Aviram Y, Today, 06:03 AM
|
2 responses
10 views
0 likes
|
Last Post
by Aviram Y
Today, 04:43 PM
|
||
Started by FishTrade, Today, 03:42 PM
|
0 responses
1 view
0 likes
|
Last Post
by FishTrade
Today, 03:42 PM
|
||
Started by Richozzy38, Today, 01:06 PM
|
3 responses
14 views
0 likes
|
Last Post
by Richozzy38
Today, 03:27 PM
|
Comment