joe_vijay

Buy/Sell Pressure Raw

// This is a port of the bar by bar Buy/Sell pressure indicator by Karthik Marar.
// See below link for further details.
// karthikmarar.blogspo...ssure-indicator.html
// The only difference being I used the Hull moving average instead of WMA which the HullMA is a derivative of.
// Credits to Chris Moody for the HullMA code.
// All disclaimers apply

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
// This is a port of the bar by bar Buy/Sell pressure indicator by Karthik Marar.
// See below link for further details. 
// http://karthikmarar.blogspot.com/2012/09/buying-and-selling-pressure-indicator.html
// The only difference being I used the Hull moving average instead of WMA which the HullMA is a derivative of.
// Credits to Chris Moody for the HullMA code.
// All disclaimers apply

study("Buy/Sell Pressure Raw ", shorttitle="BSP RAW")
sp = high - close
bp = close - low
hline(0)

hullma(src, len) => 
        wma(2*wma(src, len/2)-wma(src, len), round(sqrt(len)))

bpavg = hullma(bp,60)
spavg = hullma(sp,60)
nbp = bp/bpavg
nsp = sp/spavg
diff1 = nbp-nsp
Varg = hullma(volume,60)
nv = volume/Varg
nbfraw = nbp * nv
nsfraw = nsp * nv

plot(nbfraw, title = "Buy Pressure", style = columns, color= lime)
plot(-nsfraw, title = "Sell Pressure", style = columns, color= red)