INVITE-ONLY SCRIPT
Updated

Longs Shorts & Divergence (LSD) (Ratio, Diff, Total) [cI8DH]

3 564
This indicator automatically identifies the ticker for the current chart and shows margins at Bitfinex (or any other exchange if listed on Tradingview). So if your chart is reading EOSUSD at Kraken, this indicator will show EOSUSDSHORTS and EOSUSDLONGS at Bitfinex.

snapshot

snapshot

Features:
- Total of longs + shorts ("could" be an indicator of market attractiveness)
- Difference between longs and shorts (good if you want to have only one chart)
- Longs to total margin ratio in percentage
- Highlighting of indicator background when margins diverge too much from price (sensitivity of divergence is adjustable, divergence can be applied to longs, -shorts, longs+shorts, longs-shorts)
- Price factoring (gives a consistent metric when switching between different coins)
- Tickers can be set to a fixed value or automatically extracted from the current chart (fixed is useful for hybrid tickers)
- Margin exchange can be modified (default is Bitfinex)
- Offset for longs (helps with scaling)

snapshot

Read the description in the TA below for getting access to this script.

H&S
Release Notes
Added support to auto-detecting some weird pairs (DASH > DSH, QTUM > QTM, IOTA > IOT). Thanks to acatwithcharts for reminding me about these oddities on Bitfinex ticker naming)
Release Notes
- removed source, now defaults to close

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.