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

Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?
// 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)