ADX Strategy Optimization for TradingView

Optimize ADX strategy parameters on TradingView with Pineify grid search. Test period, threshold, and trend filter across thousands of combinations.

Add to Chrome Free

Building a ADX Strategy

The Average Directional Index (ADX) measures trend strength without indicating direction. Developed by J. Welles Wilder, ADX helps traders identify whether a market is trending or ranging. A common ADX strategy enters trades when ADX rises above a threshold (typically 25) and uses the positive directional indicator (DI+) and negative directional indicator (DI-) for direction. When DI+ crosses above DI- and ADX is rising, it signals a potential long entry. When DI- crosses above DI+ with ADX rising, it signals a short entry.

The key parameters that affect ADX strategy performance are: the ADX period (how many bars the calculation looks back), the ADX threshold (the minimum value that confirms a trend), whether DI+/DI- crossovers are required for entry signals, and an optional trend filter moving average. Each parameter changes how early or late your signals fire. Not sure this works on every pair. Some assets trend beautifully. Others chop around and ADX never gets above 20.

Optimizable Parameters

ParameterDescriptionTypical Range
ADX PeriodNumber of bars used in ADX calculation7 - 21 (step 1)
ADX ThresholdMinimum ADX value to confirm a trending market20 - 35 (step 5)
DI+/DI-CrossoverRequire DI+ and DI- crossover as entry signaltrue or false
Trend Filter MAMoving average period used as additional trend filter20 - 100 (step 10)

Real Optimization Run

I ran a grid search on ADX strategy with period 7-21 (step 1), threshold 20-35 (step 5), and trend filter MA 20-100 (step 10) across ETHUSD daily. That is 15 x 4 x 9 = 540 combinations. The optimization completed in roughly 8 minutes. Best result used period 14, threshold 25, and MA 50 with a profit factor of 1.8 across 4 years of data. What surprised me: threshold 25 worked better than the higher values across the board. I expected 30 to filter out more noise. Truth is it kept me out of too many early trend entries.

Frequently Asked Questions

Start Optimizing Your ADX Strategy

Download Pineify Supercharged for free and run your first grid search optimization in minutes.

Add to Chrome Free