OPEN-SOURCE SCRIPT
Updated Hui-Heubel Liquidity Ratio

The Hui-Heubel Liquidity Ratio (lhh) is a measurement of market resiliency and liquidity. Higher values indicate a more liquid and resilient market, lower values indicate a more fragile market susceptible to volatile moves. It does not work on all tickers (for example, if something does not report volume).
Generally, you will see lhh rise when stocks sell off and fall when they are bought. Occasionally you will see scenarios where price will go up while lhh does as well, often this is a symptom of short covering.
Includes two configurable SMAs and a configurable lookback window.
Generally, you will see lhh rise when stocks sell off and fall when they are bought. Occasionally you will see scenarios where price will go up while lhh does as well, often this is a symptom of short covering.
Includes two configurable SMAs and a configurable lookback window.
Release Notes
Version 1.2- Updated MA lengths to correspond with default ELMo settings
- Added fill colors
Release Notes
Bump version to match ELMo. No changes.Release Notes
Update fill colors, function syntaxRelease Notes
Update imageRelease Notes
Visual updates.- LHH line made larger
- Conditional coloring of SMA lines
- Update fill colors
Release Notes
Minor fixes for accuracyRelease Notes
Added option to normalize valuesOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.