PROTECTED SOURCE SCRIPT

Biitfinex BTC Longs-Shorts

957
// version 1.0 alerts of 4 types just testing things out

//version=3

study("Biitfinex BTC Longs-Shorts")

shorts = pow(security("BITFINEX:BTCUSDSHORTS", period, close),1.0)
plot(shorts, title='Bitfinex Shorts', color=red)

longs = pow(security("BITFINEX:BTCUSDLONGS", period, close),1.0)
plot(longs, title='Bitfinex Longs', color=green)

dif=longs+shorts // calculate difference
plot(dif, color=black, title="Difference") // plot difference

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.