ADX (Average Directional Index)
Indicator Description
ADX (Average Directional Index) is a technical indicator used to measure trend strength. It does not show the direction of the trend, but rather the strength of the trend.
Function Information
- Function Name:
ADX - Input Parameters:
High: High priceLow: Low priceClose: Closing price
- Parameter Settings:
timeperiod: Time period (default: 14)
- Output: ADX value
Calculation Principle
ADX calculation is based on the following steps:
- Calculate +DM and -DM (Directional Movement)
- Calculate +DI and -DI (Directional Indicators)
- Calculate DX (Directional Index)
- Calculate ADX as the smoothed average of DX
Usage Scenarios
- Trend Strength Assessment
- Trend Confirmation
- Trading Signal Generation
- Market State Analysis
Usage Recommendations
- ADX > 25 indicates a strong trend
- ADX < 20 indicates a weak trend
- Use in conjunction with +DI and -DI
- Pay attention to market environment changes