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)