BTC longs n' shorts

A indicator that neatly shows you BitFinex margin longs and shorts that can be put on any chart!
Remove from Favorite Scripts Add to Favorite Scripts
Look at the following code. It shows Longs/Shorts not only for BTC but for any "ticker" on bitfinex (if it exists)

It's BFXLS by lvturner

study("BFXLS", overlay=false)

shortSym = ticker + "SHORTS"
longSym = ticker + "LONGS"

shorts = security(shortSym, period, open)
longs = security(longSym, period, open)

hist = longs - shorts

p1 = plot(longs, color=#36a8453F, style=area, linewidth=4)
p2 = plot(-shorts, color=#d11d173F, style=area, linewidth=4)

plot(hist, title='LvS', style=area, color=#ffffff3F)
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Get Help Ideas Published Followers Following Private Messages Chat Sign Out