LazyBear

Indicator: OBV Oscillator

Everyone uses OBV, right? This indicator makes it easy to read it by building an oscillator out of it.

Also, now look for OBV divergences easily :)

Appreciate any comments / thoughts.
Remove from Favorite Scripts Add to Favorite Scripts
//
// @author LazyBear
// 
// Appreciate a note if you use this code anywhere. 
// 
study(title="On Balance Volume Oscillator [LazyBear]", shorttitle="OBVOSC_LB")
src = close
length=input(20)
obv(src) => cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
os=obv(src)
obv_osc = (os - ema(os,length))
obc_color=obv_osc > 0 ? green : red
plot(obv_osc, color=obc_color, style=line,title="OBV-Points", linewidth=2)
plot(obv_osc, color=silver, transp=70, title="OBV", style=area)
hline(0)
Was looking for an OBV oscillator like this! thank you!
Reply
Is this meant to work with Heikin Ashi?
Reply
jackjamesholmes jackjamesholmes
@LazyBear, by which I mean does it perform better with Heikin Ashi than standard candles?
Reply
Hi, Is this still available ?
Reply
This is awesome thanks. What does it mean when the line color changes but the line has not yet crossed over zero?
Reply
Man, this looks unbelievable really! Thanks a lot!
Reply
I like your indicator. I'm beginning to use it. How it works for ES_F?
Thanks
Reply
cant get it to load in think or swim ??
Reply
SunnyBTC MikeBurnsFL
it's written in pine script - tradingview's own scripting language ;)
Reply
thanks was looking for general OBV script.
My own plan is to wrap the OBV in an RSI and then compare to RSI for price.
I simply want to bound the range...sounds like RSI is the way to go.
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体中文
繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out