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
transparent color to see the bars
Collapse
X
-
transparent color to see the bars
Hello, I have an indicator that when it meets a few parameters it draws me a yellow rectangle, the problem I have is that on many occasions I cannot see the bars because it is a deep color that covers these bars, as I could do so that this color is transparent? Please indicate in the simplest way since I am not a programmer, thanks.Tags: None
-
Hello punkiy2111,
The Draw.Rectangle() method has a parameter for the areaOpacity but not the outline opacity.
To set the opacity of the outline, a Brush will need to be created that has the .Opacity set on it.
For example:
Code:Brush myBrush = Brushes.Yellow.Clone(); myBrush.Opacity = .2; myBrush.Freeze(); Draw.Rectangle(this, "myRect", 5, High[0], 0, Low[0], myBrush);
Chelsea B.NinjaTrader Customer Service
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cshox, Today, 11:11 AM
|
0 responses
2 views
0 likes
|
Last Post
by cshox
Today, 11:11 AM
|
||
Started by TAJTrades, Today, 11:03 AM
|
0 responses
3 views
0 likes
|
Last Post
by TAJTrades
Today, 11:03 AM
|
||
Started by wuannetraam, Today, 02:40 AM
|
3 responses
25 views
0 likes
|
Last Post Today, 11:03 AM | ||
Started by jjs12, Today, 10:29 AM
|
2 responses
13 views
0 likes
|
Last Post
by jjs12
Today, 10:57 AM
|
||
Started by Ludwik, Today, 03:52 AM
|
7 responses
32 views
0 likes
|
Last Post Today, 10:55 AM |
Comment