OPEN-SOURCE SCRIPT

Magic 13 for China Stock Market

77
Price Exhaustion Counter - 9/13 Signals

This indicator tracks consecutive closes relative to their 4-bar precedent, identifying potential trend exhaustion points.

KEY FEATURES:
- Counts consecutive higher/lower closes up to 9
- Extends counting to 13 for confirmation signals
- Customizable early warning display (counts 5-8)
- Background highlighting for approaching signals
- Clean, non-overlapping label placement

SIGNAL GUIDE:
- Counts 5-8 (orange): Early momentum warning
- Count 9 (purple/green badge): Primary exhaustion signal
- Counts 10-13 (green/purple): Extended momentum - stronger reversal potential

CUSTOMIZATION:
- Toggle early signals visibility
- Adjust label offset for clarity
- Enable/disable background hints
- All timeframes supported

Identifies high-probability reversal zones based on consecutive price action.

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.