Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Chart Candlestick outline color
Collapse
X
-
Tags: None
-
Hello NinjaCustomer,
Thanks for your post.
The candlestick outline color would be set in the data series on the chart. Right mouse click on the chart and select "data series..." Look for the row "Candle outline".
If you are asking how to set through Ninjascript, then you would use CandleOutLineColor for the current bar: https://ninjatrader.com/support/help...tlinecolor.htm or CandleOutlineColorSeries to access prior bars: https://ninjatrader.com/support/help...olorseries.htmPaul H.NinjaTrader Customer Service
-
right click didn't work but i found a data series button
another question.. how do I configure a custom color?
I want to set the background of the chart to same color as the background of the NT8 dark skin
Comment
-
Hello NinjaCustomer,
Thanks for your reply.
To set the background color of the chart is the same as in NT8 on an individual chart. You can right mouse click on the chart and select "Properties". In the properties window, you can select the "Color for background" from the color selections shown when you click the drop down arrow that will show in the row when clicked. Note that if you choose black, you will want to also set the "Color for Axis" to be a lighter color, such as white.
This information is available in the helpguide, here is a link to the related section: https://ninjatrader.com/support/help...properties.htmPaul H.NinjaTrader Customer Service
Comment
-
Comment
-
Originally posted by NinjaTrader_PaulH View PostHello NinjaCustomer,
Thanks for your post.
The candlestick outline color would be set in the data series on the chart. Right mouse click on the chart and select "data series..." Look for the row "Candle outline".
If you are asking how to set through Ninjascript, then you would use CandleOutLineColor for the current bar: https://ninjatrader.com/support/help...tlinecolor.htm or CandleOutlineColorSeries to access prior bars: https://ninjatrader.com/support/help...olorseries.htm
Our goal is: When bar outline = 0, Dojis appear as a single vertical line, making the open and close are invisible.
We want to make sure in our indicator that Dojis are seen completely even if the bar outline is deactivated.
Thanks!
Edit: My question concerns NT8.
Comment
-
Hello wittmjo,
Thank you for your post.
You could overrride the user selected bar outline. In NT8, you could do something like this:
if (Open[0] == Close[0])
{
CandleOutlineBrush = Brushes.LightGray; //only paint the outline for dojis
}
else {
CandleOutlineBrush = Brushes.Transparent;
}
Since this is an NT 7 thread, here it is for that as well:
if (Open[0] == Close[0])
{
CandleOutlineColor = Color.LightGray; //only paint the outline for dojis
}
else {
CandleOutlineColor = Color.Transparent;
}
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
- Likes 2
Comment
-
Hello wittmjo,
Thank you for your reply.
In that case, save the original value of CandleOutlineBrush to a temporary variable, then reassign it if the candle is not a doji:
NT8
private Brush UserBrush;
protected override void OnBarUpdate()
{
UserBrush = CandleOutlineBrush;
if (Open[0] == Close[0])
{
CandleOutlineBrush = Brushes.LightGray;
}
else {
CandleOutlineBrush = UserBrush;
}
}
NT7
private Color UserColor;
protected override void OnBarUpdate()
{
UserColor = CandleOutlineColor;
if (Open[0] == Close[0])
{
CandleOutlineColor = Color.Black;
}
else {
CandleOutlineColor = UserColor;
}
}
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
- Likes 1
Comment
-
Originally posted by NinjaTrader_Kate View PostHello wittmjo,
Thank you for your post.
You could overrride the user selected bar outline. In NT8, you could do something like this:
if (Open[0] == Close[0])
{
CandleOutlineBrush = Brushes.LightGray; //only paint the outline for dojis
}
else {
CandleOutlineBrush = Brushes.Transparent;
}
Since this is an NT 7 thread, here it is for that as well:
if (Open[0] == Close[0])
{
CandleOutlineColor = Color.LightGray; //only paint the outline for dojis
}
else {
CandleOutlineColor = Color.Transparent;
}
Please let us know if we may be of further assistance to you.
Comment
-
Hello santoshv2k,
Thank you for your post.
The code above would be used within an indicator or strategy to set that color. You could either create a new indicator or modify an existing one in the NinjaScript Editor.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
- Likes 1
Comment
-
Originally posted by NinjaTrader_Kate View PostHello santoshv2k,
Thank you for your post.
The code above would be used within an indicator or strategy to set that color. You could either create a new indicator or modify an existing one in the NinjaScript Editor.
Please let us know if we may be of further assistance to you.Last edited by santoshv2k; 04-16-2020, 11:50 AM.
Comment
-
Hello santoshv2k,
Please see the indicator tutorials to get introduced to working with indicators in NinjaTrader 7. You can then test the code in the indicator's OnBarUpdate method.
Developing Indicators - https://ninjatrader.com/support/help...indicators.htm
We look forward to assisting.JimNinjaTrader Customer Service
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Yasharandom, Today, 07:45 AM
|
0 responses
4 views
0 likes
|
Last Post
by Yasharandom
Today, 07:45 AM
|
||
Started by llanqui, Yesterday, 09:59 AM
|
4 responses
24 views
0 likes
|
Last Post
by llanqui
Today, 07:22 AM
|
||
Started by smartromain, 03-13-2024, 01:42 AM
|
5 responses
95 views
0 likes
|
Last Post
by AndreiBig
Today, 06:08 AM
|
||
Started by Noerclou, Today, 04:55 AM
|
0 responses
5 views
0 likes
|
Last Post
by Noerclou
Today, 04:55 AM
|
||
Started by ThoriSten, Today, 03:56 AM
|
0 responses
6 views
0 likes
|
Last Post
by ThoriSten
Today, 03:56 AM
|
Comment