wilderma
Wilder Moving Average (EMA with α = 1/N)
wilderma(source, periods)
Parameters
| Name | Type | Description |
|---|---|---|
source |
source | Data series to calculate Wilder MA on - price field (close, open, high, low) or indicator output |
periods |
int | Number of periods for the moving average |
Formula
```
Wilder MA = EMA with α = 1/N
Where:
- α = smoothing factor = 1/periods
- Standard EMA uses α = 2/(periods+1)
- Wilder's is smoother than standard EMA
```
Examples
wilderma(close, 14); # 14-period Wilder MA (used in RSI)
wilderma(close, 20); # 20-period Wilder MA
x = wilderma(close, 14); close > x; # Price above Wilder MA
Returns
Wilder moving average value ## References - Developed by J. Welles Wilder Jr. - Used internally in RSI and ATR calculations ## Notes - Smoother than standard EMA due to smaller smoothing constant - Preferred by Wilder for technical indicators - More weight on historical data compared to standard EMA