OPEN-SOURCE SCRIPT

ADX / DMI(+)(-) TRENDICATOR

269
## Draft Description

**ADX / DMI(+)(-) TRENDICATOR** is a responsive trend-strength and directional-momentum indicator designed to complement an **8 EMA / 20 EMA trading system**.

It combines:

- **ADX** to measure trend strength
- **DI+** to measure bullish directional pressure
- **DI−** to measure bearish directional pressure
- **20 and 40 ADX levels** to identify developing and strong trends
- **Angel Crosses** when DI+ crosses above DI−
- **Death Crosses** when DI− crosses above DI+
- Confirmed-candle alerts designed to avoid intrabar repainting

The default calculation settings use an **8-period DI length** and **8-period ADX smoothing** for a faster response to recent price candles. All calculation settings remain adjustable for different markets and timeframes.

The indicator includes customizable:

- ADX, DI+, and DI− visibility
- ADX and DI line widths
- Line, stepline, and circle plot styles
- Indicator colors
- Horizontal level visibility and styles
- ADX alert threshold
- Directional DI fill

Use ADX to determine whether a market is trending, then use DI+ and DI− to identify the dominant directional pressure. For example, a bullish EMA alignment combined with DI+ above DI− and ADX above 20 may indicate strengthening bullish momentum.

## How It Differs From Typical ADX/DMI Indicators

### 1. Confirmed-candle behavior

Many indicators react to changing intrabar values, causing temporary crosses or signals that can disappear before the candle closes. This indicator commits ADX, DI+, and DI− values only after candle confirmation, helping prevent intrabar signal repainting.

### 2. Designed for faster EMA-based systems

The default **8/8 settings** are intended as a responsive starting point for an **8 EMA / 20 EMA trend system**, rather than relying exclusively on the traditional slower 14/14 settings.

### 3. Clearer trend-strength framework

The fixed **20 and 40 levels** provide a simple visual framework:

- Below 20: weak or ranging conditions
- Above 20: trend development or moderate strength
- Above 40: strong trend conditions

### 4. More complete customization

Instead of only changing colors, users can control visibility, line widths, plot styles, level styles, and directional fills directly from the settings panel.

### 5. Expanded alert system

The indicator includes confirmed alerts for:

- Angel Crosses
- Death Crosses
- ADX crossing above or below 20
- ADX crossing above or below 40
- ADX crossing the custom alert threshold

### 6. Direction and strength are separated

Unlike systems that treat ADX as a buy or sell signal, this indicator keeps the concepts separate:

- **ADX = strength**
- **DI+ / DI− = direction**
- **8 EMA / 20 EMA = trend structure**

This helps reduce the common mistake of interpreting a rising ADX alone as a bullish signal.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.