8.5 beta - Hollow bars coloring bug

Questions about MultiCharts and user contributed studies.
boze_man
Posts: 19
Joined: 20 Jul 2012
Has thanked: 2 times
Been thanked: 1 time

8.5 beta - Hollow bars coloring bug

Postby boze_man » 05 Dec 2012

my hollow bars are not coloring correctly...seems to be a prob with session?...maybe since the new ES hours...anyone else notice?

http://i.imgur.com/n2sfA.png?1

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: 8.5 beta - Hollow bars coloring bug

Postby Andrew MultiCharts » 05 Dec 2012

Hello,

Rules for Hollow Candlestick style:

Border colors:
1. if с1 < с2, then green color is used for border,
2. if с1 = с2, then gray color is used for border,
3. if с1 > с2, then green color is used for border.

Fill color:
if o2 > c2, then fill color of the bar is the same as its border color.


c1 = close of previous bar,
c2 = close of current bar,
o2= open of the current bar

boze_man
Posts: 19
Joined: 20 Jul 2012
Has thanked: 2 times
Been thanked: 1 time

Re: 8.5 beta - Hollow bars coloring bug

Postby boze_man » 05 Dec 2012

my bad...was told that the conditions for coloring the hollow candles are different than that of a normal candle...
Here are the rules, how Hollow Candlestick bars are colored:

1. if с1 < с2, then green color is used
2. if с1 = с2, then gray color is used
3. if с1 > с2, then green color is used

c1 = close of previous bar
c2 = close of current bar

is there a Paintbar study that i can apply to color the bars like a normal candle using open vs close to set the fill no fill?

i use hollow candles due to the fact that i apply a paintbar study that colors the candle and having the hollow/not-hollow option allows me to see whether the candle is an up/down candle

Thanks B

boze_man
Posts: 19
Joined: 20 Jul 2012
Has thanked: 2 times
Been thanked: 1 time

Re: 8.5 beta - Hollow bars coloring bug

Postby boze_man » 05 Dec 2012

thanks andrew for clarification...i was posting as your were posting your reply

is there a study i can overlay on the hollow candles to get the coloring i want...like a normal candle?

boze_man
Posts: 19
Joined: 20 Jul 2012
Has thanked: 2 times
Been thanked: 1 time

Re: 8.5 beta - Hollow bars coloring bug

Postby boze_man » 05 Dec 2012

I hacked this together...seems to work...

Code: Select all

Input: UpC(green), DownC(red), NoC(darkgray);
If CurrentBar > 1 Then Begin
If Close > Open then begin
PlotPaintBar(High, Low, Open, Close, "ColorCandle", UpC);
End;
If Close < Open then begin
PlotPaintBar (High, Low, Open, Close, "ColorCandle", DownC);
End;
If Close = Open then begin
PlotPaintBar (High, Low, Open, Close, "ColorCandle", NoC);
End;
End;

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: 8.5 beta - Hollow bars coloring bug

Postby Andrew MultiCharts » 05 Dec 2012

You can create such one to reach your goal. Unfortunately there is not such prebuilt script in MC.
Here is couple of examples, how you can create your own painting indicator:

Code: Select all

if close > close[1] then begin

PlotPaintBar(high, low, open, close, "bar", green, 1);
end
else begin
PlotPaintBar(high, low, open, close, "bar", red, 1);
end;

Code: Select all

PlotPaintBar(high, low, open, close, "bar", black, black, 3);


Return to “MultiCharts”