OPEN-SOURCE SCRIPT
Magic 13 for China Stock Market

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