SatNam

Smoothed Balance of Power

Smoothed BOP to try and find dark pool activity. Only works in charts with working volume!

Credits go to LazyBear for some coding on the plotting and Igor Livshin for the formula.
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?
// author : SatNam
// credits to LazyBear and Igor Livshin

study(title="SN-BOP")
length=input(14)
lengthSMA=input(50)
PlotEMA=input(true, "Plot SMA?", type=bool)
THL = (high-low) ? .00001 : (high-low)

BuRBoO = (high - open)/(THL)
BeRBoO = (open - low)/(THL)
 
BuRBoC =(close - low)/(THL)
BeRBoC =(high - close)/(THL)
 
BuRBoOC = close > 0 ? (close-open)/(THL) : 0
BeRBoOC = close > 0 ? 0 : (open -close)/(THL)

BOP = ((BuRBoO+BuRBoC+BuRBoOC)/3) - ((BeRBoO+BeRBoC+BeRBoOC)/3)
vwBOP = vwma(BOP, length)
barcolor = vwBOP >= 40000 ? green : vwBOP <= -40000 ? red: gray
hline(0)
plot(vwBOP, style=columns, color = barcolor)
plot(PlotEMA?ema(BOP, lengthSMA):na, color=navy, linewidth=2)