PROTECTED SOURCE SCRIPT
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
//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 as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.