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

Skrip open-source

Dalam semangat TradingView, penulis dari skrip ini telah mempublikasikannya ke sumber-terbuka, maka trader dapat mengerti dan memverifikasinya. Semangat untuk penulis! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.

Inggin menggunakan skrip ini pada chart?
// 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)