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.
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
// 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)