PipFoundry

Pip Foundry - Simple OBV

My premium indicators are available for monthly lease at www.tradingview.com/...arket/ah-pipfoundry/

On request from SunnyBTC for trading Forex pairs that do not themselves have any volume indication.

The concept: A simple OBV that will display the volume of a security other than what you are charting.

Edit: This script has been updated.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
//Pip Foundry - Simple OBV
study(title="Pip Foundry - Simple OBV", shorttitle="Pip Foundry - Simple OBV")
SecInput = input(defval="FX_IDC:EURUSD", title="Security Volume", type=symbol, confirm=true)
VolSrc = security(SecInput, period, volume, false)
src = security(SecInput, period, close, false)
obv = cum(change(src) > 0 ? VolSrc : change(src) < 0 ? -VolSrc : 0*VolSrc)
plot(obv, color=blue, title="OBV")