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
8.5 beta - Hollow bars coloring bug
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: 8.5 beta - Hollow bars coloring bug
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
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
Re: 8.5 beta - Hollow bars coloring bug
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
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
Re: 8.5 beta - Hollow bars coloring bug
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?
is there a study i can overlay on the hollow candles to get the coloring i want...like a normal candle?
Re: 8.5 beta - Hollow bars coloring bug
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;
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: 8.5 beta - Hollow bars coloring bug
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:
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);