Simple Volume Color Bar
http://tos.mx/TBAmPob
This is a simple volume indicator that colors the volume bar if it closes above the moving average. It does nothing to the actual candlestick.
I'm sure if somebody was clever enough they could paint the candlebars as well with each volume burst, too much info for me.
Ruby:
declare weak_volume_dependency;
input maLengthOne = 14;
input maTypeOne = AverageType.SIMPLE;
plot data = volume;
plot maOne = MovingAverage(maTypeOne, data, maLengthOne);
data.AssignValueColor(if data > maOne then Color.yellow else
if close > open then Color.UPTICK else
if close < open then Color.DOWNTICK else Color.CURRENT);
data.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
This is a simple volume indicator that colors the volume bar if it closes above the moving average. It does nothing to the actual candlestick.
I'm sure if somebody was clever enough they could paint the candlebars as well with each volume burst, too much info for me.
Last edited by a moderator: