OPEN-SOURCE SCRIPT
Liquidity Stress Oscillator Pro2

Liquidity Stress Oscillator Pro2
The Liquidity Stress Oscillator Pro2 is a macro risk-regime indicator designed to visualize broad market liquidity stress using a weighted composite of credit, volatility, dollar strength, funding pressure, and yield-curve conditions.
This oscillator is intended to help traders identify when macro liquidity conditions are improving, neutral, deteriorating, or entering elevated stress. In the BTC comparison shown, the oscillator highlights several major macro regime transitions that have aligned with important Bitcoin cycle shifts.
What It Measures;
LSO Pro2 combines normalized z-scores from multiple macro stress inputs:
- CCC option-adjusted spreads
- High-yield credit spreads
- MOVE bond volatility index
- U.S. Dollar Index
- SOFR / repo stress proxy
- 10Y-2Y yield curve
Each component is converted into a z-score over the selected lookback period, then blended into a weighted composite. The yield curve component is inverted so that deeper curve weakness contributes to higher stress.
Regime Levels;
The oscillator uses adjustable regime thresholds to help dial in trends on different timeframes.
Extreme Risk Off
Risk Off
Neutral
Risk On
The line color, background shading, and regime markers update automatically as the composite moves between regimes.
Features;
- Weighted macro liquidity-stress composite
- Adjustable z-score length and smoothing
- Customizable component symbols
- Optional raw composite display
- Regime background shading
- Risk On, Risk Off, and Extreme Risk Off markers
- Regime table with key component readings
- Works across assets and timeframes, especially useful for macro-sensitive markets like BTC, equities, indexes, and risk assets
How To Use;
Rising LSO values indicate increasing macro stress and tightening liquidity conditions. Falling LSO values indicate easing stress and improving risk appetite.
Risk On regimes may support stronger risk-asset environments, while Risk Off and Extreme Risk Off regimes may warn of elevated caution, deleveraging, or liquidity pressure.
This tool is best used as a macro regime filter alongside price action, trend structure, volume, and risk management. It is not designed to generate standalone buy or sell signals.
Notes;
Some symbols may depend on TradingView data availability. If a component does not load on your chart, replace it in the indicator settings with an equivalent symbol supported by your data feed.
Default weights emphasize credit stress, especially CCC spreads, because lower-quality credit markets often react strongly during liquidity contractions.
Disclaimer;
This indicator is for educational and informational purposes only. It does not provide financial advice and should not be used as the sole basis for trading or investment decisions. Always use proper risk management and perform your own analysis.
The Liquidity Stress Oscillator Pro2 is a macro risk-regime indicator designed to visualize broad market liquidity stress using a weighted composite of credit, volatility, dollar strength, funding pressure, and yield-curve conditions.
This oscillator is intended to help traders identify when macro liquidity conditions are improving, neutral, deteriorating, or entering elevated stress. In the BTC comparison shown, the oscillator highlights several major macro regime transitions that have aligned with important Bitcoin cycle shifts.
What It Measures;
LSO Pro2 combines normalized z-scores from multiple macro stress inputs:
- CCC option-adjusted spreads
- High-yield credit spreads
- MOVE bond volatility index
- U.S. Dollar Index
- SOFR / repo stress proxy
- 10Y-2Y yield curve
Each component is converted into a z-score over the selected lookback period, then blended into a weighted composite. The yield curve component is inverted so that deeper curve weakness contributes to higher stress.
Regime Levels;
The oscillator uses adjustable regime thresholds to help dial in trends on different timeframes.
Extreme Risk Off
Risk Off
Neutral
Risk On
The line color, background shading, and regime markers update automatically as the composite moves between regimes.
Features;
- Weighted macro liquidity-stress composite
- Adjustable z-score length and smoothing
- Customizable component symbols
- Optional raw composite display
- Regime background shading
- Risk On, Risk Off, and Extreme Risk Off markers
- Regime table with key component readings
- Works across assets and timeframes, especially useful for macro-sensitive markets like BTC, equities, indexes, and risk assets
How To Use;
Rising LSO values indicate increasing macro stress and tightening liquidity conditions. Falling LSO values indicate easing stress and improving risk appetite.
Risk On regimes may support stronger risk-asset environments, while Risk Off and Extreme Risk Off regimes may warn of elevated caution, deleveraging, or liquidity pressure.
This tool is best used as a macro regime filter alongside price action, trend structure, volume, and risk management. It is not designed to generate standalone buy or sell signals.
Notes;
Some symbols may depend on TradingView data availability. If a component does not load on your chart, replace it in the indicator settings with an equivalent symbol supported by your data feed.
Default weights emphasize credit stress, especially CCC spreads, because lower-quality credit markets often react strongly during liquidity contractions.
Disclaimer;
This indicator is for educational and informational purposes only. It does not provide financial advice and should not be used as the sole basis for trading or investment decisions. Always use proper risk management and perform your own analysis.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。