OPEN-SOURCE SCRIPT

Trend Exhaustion lite

40
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

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.