OPEN-SOURCE SCRIPT

Liquidations by volume (TG fork)

已更新
Shows actual liquidations on a per-candle basis by using the difference in volume between spot and futures markets.
i.e. volume on a futures market will be much higher if there are many liquidations.

By default, green represents short liquidations (hence a bullish move, hence why it's green), whereas red is for long liquidations (bearish move). The colors can be changed in the settings if you prefer an inverted theme.

Long liquidation data should in theory be more accurate than short liquidation data due to the inability to short on a spot market.
This indicator should be able to help identify trends by determining liquidation points in the chart.

Extended by Tartigradia to automatically detect the symbol (only for crypto assets found on Binance with a USDTPERP pair, so it works for ETH, BNB, etc) and add multi-timeframe support (MTF).

If you like the indicator, please show the original author Thomas_Davison some love:
Liquidations by volume (spot/futures)
版本注释
Updates:
* Now support tickers with symbols that are longer than 3 characters (eg, SAND, etc.) by autodetecting where "USD" is located in the string. In exchange for this improvement, tickers that do not include "USD" in their string won't allow to display volumes (eg, ETHBTC), but anyway this was a mistake (because it did not represent the volumes of the non-USD ticker). Thanks to hamiissah for the suggestion and sharing some source code (that ended up not being used but the idea was recycled!).
* Reorder input parameters in neat groups.
* Clarify some input parameters purposes (titles, tooltips).
* Add option to always use Binance exchange as the data source, to avoid the risk that the exchange gets silently swapped in the background.
版本注释
* Ticker autodetection now also works on composite tickers (eg, BINANCE:BTCUSD+KRAKEN:BTCUSD)/2 ). The first symbol will be extracted and used, so if the composite ticker is not a simple average of the same symbol across multiple exchanges, obviously the liquidations will be wrong, but anyway there is no source of data for liquidations over composite tickers by definition. To do that, a regular expression pattern matching was implemented to cleanup the input tickerid.
版本注释
Changes:
* Improve visibility and scaling by converting the label into a table, which does not impact viewport scaling (ie, content is now shown bigger).
* Add tooltips for some options.
* Always show spot and futures volumes in the status bar, even if their visualizations as lines are disabled.
版本注释
* Add clarifications of instructions and limitations:

This indicator can approximate the amount of liquidations (ie, bars where there were a lot more liquidations than others) from the difference between futures and spot, but it cannot distinguish the proportion of shorts versus longs liquidations, it is instead approximated with the current price bar's color, which naturally suggests where the majority of liquidations happened (ie, if a price bar closes above open and hence in green, then we can suppose that a majority of liquiditations were on shorts, since we know longs won). This explains why there is only one liquidation bar but colored, and not two, since we cannot separate longs or shorts liquidations.
liquidationliquidationsliquidationshortsentimentVolume IndicatorvolumeanalysisvolumeindicatorVolume

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明