OPEN-SOURCE SCRIPT
Telah dikemas kini 9 Count Setup - Price Exhaustion Detection

This indicator implements a counter-trend technical analysis tool designed to identify potential trend exhaustion points and reversal zones using a systematic counting methodology.
How It Works:
The indicator uses a specific 4-bar look-back comparison to detect price momentum:
The 4-bar comparison (rather than comparing consecutive closes) helps filter out short-term noise and focuses on sustained directional momentum. The count resets to zero whenever the comparison condition fails.
Key Features:
How to Use:
Settings:
Note: This indicator implements the Setup counting phase only. The complete methodology includes an additional phase (to 13), which is not implemented here. This standalone Setup indicator is effective for identifying potential reversal zones in trending markets.
How It Works:
The indicator uses a specific 4-bar look-back comparison to detect price momentum:
- For bearish signals (red triangles above bars): The indicator counts consecutive bars where each close is HIGHER than the close from 4 bars earlier. When this condition is met 9 times in a row, it signals potential uptrend exhaustion.
- For bullish signals (green triangles below bars): The indicator counts consecutive bars where each close is LOWER than the close from 4 bars earlier. When this condition is met 9 times in a row, it signals potential downtrend exhaustion.
The 4-bar comparison (rather than comparing consecutive closes) helps filter out short-term noise and focuses on sustained directional momentum. The count resets to zero whenever the comparison condition fails.
Key Features:
- Configurable Display: Toggle between showing all counts (1-9) for educational purposes, or only the critical warning levels (7-8-9) for cleaner charts
- Real-time Counting: Numbers appear as the sequence builds, with 7 and 8 serving as early warnings
- 9-Count Signal: The number "9" indicates the Setup completion - a zone where price reversals statistically occur approximately 70% of the time according to some backtesting studies
How to Use:
- A red "9" above a bar suggests the uptrend may be exhausted - potential short entry or long exit zone
- A green "9" below a bar suggests the downtrend may be exhausted - potential long entry or short exit zone
- The 7 and 8 counts provide advance warning that a potential reversal zone is approaching
- Best used in combination with other confirmation indicators and proper risk management
Settings:
- "Show All Counts (1-9)": Enable this to display the complete count sequence for learning purposes. Disable to show only counts 7, 8, and 9 for a cleaner chart focused on actionable signals.
Note: This indicator implements the Setup counting phase only. The complete methodology includes an additional phase (to 13), which is not implemented here. This standalone Setup indicator is effective for identifying potential reversal zones in trending markets.
Nota Keluaran
Fixing the example chart to be clean.Nota Keluaran
Fixing the example chart to be clean.Skrip sumber terbuka
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.
Penafian
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.
Skrip sumber terbuka
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.
Penafian
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.