BTCUSDSHORTS and BTCUSDLONGS are like datasets provided by Bitfinex exchange. They record the number of margined for longs and shorts and they are measured in BTC (in case using BTCUSD ). Margin is Like any loan, the borrower may pay interest while the loan is outstanding, and must eventually pay the loan back.
Red Area: More short margin than long margin. Green Area: More long margin than short margin.
Note: Can only be used with cryptocurrencies that have such dataset within Bitfinex exchange like BTCUSD , ETHUSD , XRPUSD and a few more.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.
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.