OPEN-SOURCE SCRIPT
Trend Exhaustion lite

The Trend Exhaustion Lite tool tracks the age and strength of the current directional move to show how mature or extended a trend has become. It converts complex statistical analysis into a simple visual panel and colour-coded background.
How It Works
Once a directional bias is established, the indicator measures: Direction (Bullish / Bearish phase), Trend Age (Number of bars since the current trend began), and Strength % (Relative intensity of the move on a 0–100 scale). Background colour shifts subtly as strength increases or fades, while the table displays live metrics.
Use Cases
Younger trends (low age): Usually early in development — potential continuation
Aging trends (high age, declining strength): Often nearing exhaustion; tighten risk or prepare for rotation
Combine with the Forecast Paint Engine or Trend Regime Lite for confirmation on when conviction is building or fading
Interpretation Example
Example Output:
Panel reads Direction: Bull, Age: 47 bars, Strength: 68%
Meaning:
The uptrend remains statistically healthy but entering a later stage — manage exposure accordingly
How It Works
Once a directional bias is established, the indicator measures: Direction (Bullish / Bearish phase), Trend Age (Number of bars since the current trend began), and Strength % (Relative intensity of the move on a 0–100 scale). Background colour shifts subtly as strength increases or fades, while the table displays live metrics.
Use Cases
Younger trends (low age): Usually early in development — potential continuation
Aging trends (high age, declining strength): Often nearing exhaustion; tighten risk or prepare for rotation
Combine with the Forecast Paint Engine or Trend Regime Lite for confirmation on when conviction is building or fading
Interpretation Example
Example Output:
Panel reads Direction: Bull, Age: 47 bars, Strength: 68%
Meaning:
The uptrend remains statistically healthy but entering a later stage — manage exposure accordingly
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.
hdalgos.com for Trade Analysis and Indicators
Developed by former Goldman Sachs Trader
Developed by former Goldman Sachs Trader
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.
hdalgos.com for Trade Analysis and Indicators
Developed by former Goldman Sachs Trader
Developed by former Goldman Sachs Trader
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.