Hello D7R, the configuration of obv in conjunction with histogram is very good for visual monitoring of candles, I managed to reproduce the same indicator because I have the need to implement the source code a ia. But I have not been able to add the soft histogram option, could you help me with smoothing the histogram?
I just have the need to use the indicator of the way it is pre plotted, just need to add smoothing to the histogram.
I just have the need to use the indicator of the way it is pre plotted, just need to add smoothing to the histogram.
both indicators:
Source Code:
This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
© DiFlip
@version=3
study(title="On Balance Volume Oscillator", shorttitle="DiFlip OBV (1)")
src = close
length=input(14)
obv(src) => cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
os=obv(src)
obv_osc = (os - ema(os,length))
col_grow_above = #64ffda
col_grow_below = #cc5252
col_fall_above = #4db6ac
col_fall_below = #ff5252
plot(obv_osc, title="Histogram", style=area, color=(obv_osc>=0 ? (obv_osc[1] < obv_osc : col_grow_above col_fall_above) : (obv_osc[1] < obv_osc ? col_grow_below : col_fall_below) ), transp=50 )