PDA

View Full Version : Enabling black Outline of Candles


RK_trader
10-02-2007, 10:25 PM
Hi Support,

I am trying to modify a candlestick indicator to draw candles in a different way. And I am using the following code to draw a candle:

BarColor = Color.Red;

What I am seeing is that the candles are drawn in red color, but they do no have a black outline. I have "candleoutlinecolor" as black in my chart properties, but still it doesn't draw the black outline.

Can you please tell me, how I can get the blackoutline.

Thanks
RK

NinjaTrader_Dierk
10-03-2007, 12:36 AM
>> Can you please tell me, how I can get the blackoutline.
Unfortunately this is not supported.

RK_trader
10-03-2007, 10:05 AM
Thanks for getting back to me Derek.

Can I request it to be added to the next release 6.5

The problem is that the readability of candles and look/feel of candles changes a lot, without the black outline. And any indicators which candles do not appear properly. I am sure other users also want to have the black outline.

Thanks
RK

NinjaTrader_Dierk
10-03-2007, 11:11 AM
We'll add it to our list. Thanks for your suggestion.

RK_trader
10-03-2007, 04:18 PM
Thanks Derek. That would be really helpful in increasing readability of the charts and without candlestick outline, its really hard to read the charts.

Do you know when they would be coming up with a ETA of the next Ninja release.

Thanks
RK

NinjaTrader_Ray
10-03-2007, 04:25 PM
Our next major release is due out this fall.

Futures_Shark
10-04-2007, 08:35 PM
You may want to check out some work done here
http://www.ninjatrader-support.com/vb/showthread.php?t=2940

RK_trader
10-05-2007, 02:17 PM
Thanks Futures_Shark. I appreciate it.

I tried it, but it is like overwriting my indicator candles. So, could not use it.

Thanks
RK

Gumphrie
10-07-2007, 10:50 AM
Try copying the Plot class into your indicator and commenting out the "FillRectangle" calls.

RK_trader
10-09-2007, 10:18 PM
Thanks Gumphrie. Sorry for the delay in reply.

I am just learning Ninja programming. Can you please tell me where I can find the plot class.

Thanks
RK

NinjaTrader_Ray
10-10-2007, 06:52 AM
We have included configureable candle outline in NT6.5 due out this fall.

RK_trader
10-10-2007, 08:07 AM
Thanks Ray. Do you know if there would be a Beta release to test 6.5 soon?

Thanks
RK

NinjaTrader_Ray
10-10-2007, 08:22 AM
Yes, very soon. Days to weeks.

RK_trader
11-15-2007, 04:27 PM
Hi Support,

Now that 6.5 Beta is released, can you tell me how I can add "candle outline" to the indicator, which changes candle colors. I am using the following code to draw a candle:

BarColor = Color.Red;

I have "candleoutlinecolor" as black in my chart properties, but still it doesn't draw the black candle outline.

Can you please tell me, how I can get the blackoutline.

Thanks
RK

NinjaTrader_Ray
11-15-2007, 07:03 PM
If you are referring to "Bar outline" and changing the color of that, by default it is black and can be changed. Other than that, it is unclear to me what you want.

RK_trader
11-15-2007, 08:59 PM
Hi Ray,

Let me explain it. I have a custom indicator, which colors the candles, based on something like a pattern. So,if the pattern happens, it colors the current candle with one particular color and if doesn't happen it colors the candle with a different color.

But the problem is that,even though the indicator works properly and prints different colored candles, the "black outline of the candle" is getting lost. So, the candles are coming up without the "candle outline".

And I am using the following code to draw a candle if condition meets,
BarColor = Color.Green;
and if condition does'nt meet,then
BarColor = Color.Red;

Can you tell me, if I need to add anything in the code, so that I see the "candle outline"?

I have asked this in the past in Oct and I was told this feature is being released in 6.5 Beta, as there have been many custom indicator developers requesting it. Without the "candleoutline" the readability of charts is very poor.

To see the poor readability, please load any regular chart in 6.5 Beta and make the "baroutline" color to "transparent" and widht to "0". You can see how poor the chart looks like and how it impacts readability.

I appreciate your suggestion, in getting back the "candleoutline" in custom indicators which change bar colors.

Thanks
RK

NinjaTrader_Ray
11-16-2007, 07:21 AM
Got it.

The candle outline takes the color of the bar you set. The reason this is done is that if we left the outline color (lets just say to black) and a condition was met and you color the candle red....and this candle is a doji (open == close), you then do not get a candle body to color and the entire doji candle is really just an outline that is black and not red. Thus, you would come back and tell us that it doesn't work properly.

I hope that makes sense.

RK_trader
11-16-2007, 07:53 AM
Hi Ray,

Thanks for replying back. I understand what you are saying. But I think it is best to give that option to Ninja programmers, so that they can decide whether they need candle outlines or not. Something like "candleoutline = true" or "candleoutline = false" variable in the custom indicators. Turning the candleoutline off by default really impacts readability of the charts very negatively.

Isn't there anyway to get the outline back on the custom candles? Is there any method/function something like

BarColor = Color.Green;
BarOutline = Color.Black;

I would appreciate if you can introduce this option/method to help Ninja programmers and help improve the readability of charts. Without the candle outlines, the charts look really very poor on readability.

I think it would be good to give the Ninja programmer the option of turning on/off the candleoutline, instead of turning off the candle outline "off" by default.

I would appreciate if you can provide an option to "turn on" the candleoutlines.

Thanks
RK

NinjaTrader_Ray
11-19-2007, 02:59 PM
The next beta release of NT6.5 will include a new property -

CandleOutlineColor

If this property is not set, the outline will take the color of the BarColor property.

RK_trader
11-20-2007, 02:52 PM
Thanks Ray. I appreciate it.

Do you know when the next Beta update would be? I hope the candleoutline problem will be solved with this, so that Ninja programmers can turn this property on/off as per their needs.

Thanks
RK

NinjaTrader_Ray
11-20-2007, 02:55 PM
Early next week. I am not sure what problem you are referring to but with this property you can programatically set the candle outline color.

RK_trader
11-20-2007, 03:08 PM
Thanks Ray.

Thanks
RK

RK_trader
11-30-2007, 09:29 PM
Hi Support or Ray,

Can you please confirm that in Ninja 6.5.0.4 release, you have released the feature "to enable candle outlines in indicators custom code", as said below.

Thanks
RK

NinjaTrader_Dierk
11-30-2007, 10:20 PM
confirmed (please see release notes in help docs which always hold all new released features, just press F1 in NT6.5)

RK_trader
11-30-2007, 10:22 PM
Thanks Dierk for confirming.

Thanks
RK

jojotrader
02-14-2008, 03:25 AM
Real nice to have oulines in black, but how can I get the wicks ticker?

Anyone?


Thanks, jojotrader

NinjaTrader_Ray
02-14-2008, 06:48 AM
You can increase the outline width but not the wick by itself. See Chart Properties for Candle Outline.