Requested by user SunnyBTC for use in the Forex market on the EURUSD pair.
This simple indicator will allow you to view the of a security other than the one you are currently charting.
Edit: This script has since been updated. Please see related link at bottom.
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.
study(title="Pip Foundry - Simple Volume", shorttitle="Pip Foundry - Simple Volume", precision=0) showMA = input(true) SecInput = input(defval="FX_IDC:EURUSD", title="Security Volume", type=symbol, confirm=true) VolSrc = security(SecInput, period, volume, false) plot(VolSrc, color = open > close ? red : green, style=columns, title="Volume MA", transp=65) plot(showMA ? sma(VolSrc,20) : na, style=area, color=blue, title="Volume", transp=85)