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.
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)
Read the description in the TA below for getting access to this script.
版本注释
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)