On Balance Volume Analysis [Albert]

OBV indicator with moving averages on it.
Remove from Favorite Scripts Add to Favorite Scripts
// @author Albert
// Created on LazyBear's OBV indicator basis
study(title="On Balance Volume Analysis [Albert]", shorttitle="OBV_A")
src = close
length = input(20, minval=1, title="Length")
threshold=input(0, title="threshold for OBV")
lengthema=input(13, title="EMA length")
obv(src) => 
    cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
c=cci(src, length)
plot(o, color=c>=threshold?green:red, title="OBV", linewidth=2)
plot(ema(o,lengthema), color=orange, linewidth=2)
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out