OPEN-SOURCE SCRIPT

Market Energy – Trend vs Retest (with Saturation %)

88
Market Energy – Trend vs Retest Indicator

This indicator measures the bullish and bearish energy in the market based on volume-weighted price changes.

It calculates two smoothed energy waves — bullish energy and bearish energy — using exponential moving averages of volume-adjusted price movements.

The indicator detects trend changes and retests by comparing the relative strength of these waves.

A saturation percentage quantifies the intensity of the current dominant side (bulls or bears) relative to recent highs.

- High saturation (>70%) indicates strong momentum and dominance by bulls or bears.
- Low saturation (<30%) suggests weak momentum and possible market indecision or consolidation.

The background color highlights the current control: green for bulls, red for bears, with transparency indicating the saturation level.

A label shows which side is currently in control along with the saturation percentage for quick interpretation.

Use this tool to identify strong trends, possible retests, and momentum strength to support your trading decisions.

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.