OPEN-SOURCE SCRIPT
ที่อัปเดต: 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.
เอกสารเผยแพร่
Fixing the example chart to be clean.เอกสารเผยแพร่
Fixing the example chart to be clean.สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน