protected override void Initialize() { Overlay = true; } protected override void OnBarUpdate() { BarColor = Color.Blue; CandleOutlineColor = Color.Blue; }
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Coloring chart data on Box and Line on Close charts
Collapse
X
-
Coloring chart data on Box and Line on Close charts
I noticed that setting BarColor and CandleOutlineColor in an indicator has no effect when the chart style is either Box or Line on Close. To test I wrote a really simple indicator (creatively named MakeBlue) containing only the following code:
Code:Tags: None
-
Box style in the Data Series window offers two colors to choose (up color and down color) as well as two outlines to define. So Box certainly appears to have both a bar color and an outline color. I can understand Line on Close working differently, though I can't see why an indicator shouldn't be able to get at that color, too.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ellington, Today, 07:40 AM
|
0 responses
1 view
0 likes
|
Last Post
by ellington
Today, 07:40 AM
|
||
Started by Atticus20, Today, 07:27 AM
|
0 responses
3 views
0 likes
|
Last Post
by Atticus20
Today, 07:27 AM
|
||
Started by ninza33, Today, 07:16 AM
|
0 responses
4 views
0 likes
|
Last Post
by ninza33
Today, 07:16 AM
|
||
Started by linkcou, Today, 07:01 AM
|
0 responses
7 views
0 likes
|
Last Post
by linkcou
Today, 07:01 AM
|
||
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM |
Comment