Lin1996

Biitfinex BTC Longs-Shorts

// 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
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
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?