OPEN-SOURCE SCRIPT
ADX + DI

**ADX + DI (Final)** is a clean trend-strength and direction tool built on the classic Wilder **Average Directional Index (ADX)** with optional **+DI / -DI** lines.
* Plots **ADX (red)** to show *trend strength* (not direction).
* Optionally plots **+DI (green)** and **-DI (blue)** to show *directional bias* (bullish when +DI > -DI, bearish when -DI > +DI).
* Includes toggleable horizontal reference levels at **20** and **25** to quickly spot range vs trend regimes.
* Optional background highlighting when **ADX exceeds a user-defined threshold** (default 25) to visually mark “strong trend” conditions.
* Includes alert conditions for:
* **+DI crossing above -DI** (bullish directional shift)
* **-DI crossing above +DI** (bearish directional shift)
* Both crosses **with ADX above the trend threshold** (higher-confidence signals)
**Best use:** filter trades by regime—avoid trend strategies when ADX is low (chop), and focus on pullbacks/breakouts when ADX is rising and above your threshold.
* Plots **ADX (red)** to show *trend strength* (not direction).
* Optionally plots **+DI (green)** and **-DI (blue)** to show *directional bias* (bullish when +DI > -DI, bearish when -DI > +DI).
* Includes toggleable horizontal reference levels at **20** and **25** to quickly spot range vs trend regimes.
* Optional background highlighting when **ADX exceeds a user-defined threshold** (default 25) to visually mark “strong trend” conditions.
* Includes alert conditions for:
* **+DI crossing above -DI** (bullish directional shift)
* **-DI crossing above +DI** (bearish directional shift)
* Both crosses **with ADX above the trend threshold** (higher-confidence signals)
**Best use:** filter trades by regime—avoid trend strategies when ADX is low (chop), and focus on pullbacks/breakouts when ADX is rising and above your threshold.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน