Agreggate volume from 3 exchanges into one indicator.
Securities can be changed in settings -> inputs
Securities can be changed in settings -> inputs
study("aggregateBTCvol V0.1", precision=0) SecVol1Input = input(defval="HUOBI:BTCCNY", title="first security", type=symbol, confirm=true) SecVol1 = security(SecVol1Input, period, volume) UseSecVol2 = input(true, title="Use second security?") SecVol2Input = input(defval="OKCOIN:BTCCNY", title="second security", type=symbol, confirm=true) SecVol2Value = security(SecVol2Input, period, volume) SecVol2 = UseSecVol2 ? SecVol2Value : 0 UseSecVol3 = input(true, title="Use Third security?") SecVol3Input = input(defval="BITFINEX:BTCUSD", title="Third security", type=symbol, confirm=true) SecVol3Value = security(SecVol3Input, period, volume) SecVol3 = UseSecVol3 ? SecVol3Value : 0 AggSecVol = SecVol1+SecVol2+SecVol3 plot(AggSecVol, title='BTC Volume', style=columns, transp=80, trackprice=false,linewidth=3, color=white)