Editors' picks
OPEN-SOURCE SCRIPT

Liquidation Ranges + Volume/OI Dots [Kioseff Trading]

Updated
Hello!

Introducing a multi-faceted indicator "Liquidation Ranges + Volume Dots" - this indicator replicates the volume dot tools found on various charting platforms and populates a liquidation range on crypto assets!

Features

  • Volume/OI dots populated according to user settings
  • Size of volume/OI dots corresponds to degree of abnormality
  • Naked level volume dots
  • Fixed range capabilities for volume/OI dots
  • Visible time range capabilities for volume/OI dots
  • Lower timeframe data used to discover iceberg orders (estimated using 1-minute data)
  • S/R lines drawn at high volume/OI areas
  • Liquidation ranges for crypto assets (10x - 100x)
  • Liquidation ranges are calculated using a popular crypto exchange's method
  • # of violations of liquidation ranges are recorded and presented in table
  • Pertinent high volume/OI price areas are recorded and presented in table
  • Personalized coloring for volume/OI dots
  • Net shorts / net long for the price range recorded
  • Lines shows reflecting net short & net long increases/decreases
  • Configurable volume/OI heatmap (displayed between liquidation ranges)


And some more (:

Liquidation Range

The liquidation range component of the indicator uses a popular crypto exchange's calculation (for liquidation ranges) to populate the chart for where 10x - 100x leverage orders are stopped out.

snapshot

The image above depicts features corresponding to net shorts and net longs.

snapshot

The image above shows features corresponding to liquidation zones for the underlying coin.

snapshot

The image above shows the option to display volume/oi delta at the time the corresponding grid was traded at.

snapshot

The image above shows an instance of using the "fixed range" feature for the script.

snapshot

*The average price of the range is calculated to project liquidation zones.

*Heatmap is calculated using OI (or volume) delta.

Huge thank you to Pine Wizard DonovanWall for his range filter code!

Price ranges are automatically detected using his calculation (:

Volume / OI Dots

Similar to other charting platforms, the volume/OI dots component of the indicator distinguishes "abnormal" changes in volume/OI; the detected price area is subsequently identified on the chart.

The detection method uses percent rank and calculates on the last bar of the chart. The "agelessness" of detection is contingent on user settings.

snapshot

The image above shows volume dots in action; the size of each volume dot corresponds to the amount of volume at the price area.

Smaller dots = lower volume
Larger dots = higher volume

snapshot

The image above exemplifies the highest aggression setting for volume/OI dot detection.

The table oriented top-right shows the highest volume areas (discovered on the 1-minute chart) for the calculated period.

The open interest change and corresponding price level are also shown. Results are listed in descending order but can also be listed in order of occurrence (most relevant).

Additionally, you can use the visible time range feature to detect volume dots.

snapshot

The feature shows and explains how the visible range feature works. You select how many levels you want to detect and the script will detect the selected number of levels.

For instance, if I select to show 20 levels, the script will find the 20 highest volume/OI change price areas and distinguish them.

snapshot

The image above shows a narrower price range.

snapshot

The image above shows the same price range; however, the script is detecting the highest OI change price areas instead of volume.

* You can also set a fixed range with this feature

* Naked levels can be used

Additionally, you can select for the script to show only the highest volume/ OI change price area for each bar. When active, the script will successively identify the highest volume / OI change price area for the most recent bars.

Naked Levels

snapshot

The image above shows and explains how naked levels can be detected when using the script.

And that's pretty much it!

Of course, there're a few more features you can check out when you use the script that haven't been explained here (:

Thank you again to DonovanWall

Thank you to Trendoscope for his binary insertion sort library (:

Thank you to PineCoders for their time library

Thank you for checking this out!




Release Notes
Added an option to hide the heatmap and convert liquidation ranges from boxes to lines.

snapshot

Thank you NetoDav for the request (:
Release Notes
Update to the lower timeframe resolution that is requested.

The user input was removed. Instead, a portion of PineCoders coder from their library "lower_tf" was used; thank you to them!!

With this change the script will auto-calculate a "more efficient" lower timeframe resolution relative to your chart's timeframe. This should improve efficiency!

Thank you (:
Release Notes
Last one for the night (:

Fixed an occurrence where, if a non "USDT.P" crypto symbol was loaded the indicator would generate a runtime error.

While not an error, the script will now load on non "USDT.P" crypto tickers!!

Thank you (:
Release Notes
Minor update to calculation
Release Notes
Fix for the previous fix
Release Notes
Ranges default to "off" on non-crypto charts
Release Notes
Update to request() string
Bands and Channelsicebergorderslevelsliquidationliquidationlevelsliquidationrangessentimentstatisticsvolumedots

Open-source script

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.

Want to use this script on a chart?


•Access to Next-Gen Optimization Tools: kiosefftrading.com

•Discord Server: discord.gg/3cKVU28Z9Z
Also on:

Disclaimer