wilderma
Wilder Moving Average (EMA with α = 1/N)
wilderma(source, periods)
Parameters
| Name | Type | Description |
|---|---|---|
source |
field | Data series to calculate Wilder MA on |
periods |
int | Number of periods for the moving average |
Formula
Wilder MA = EMA with α = 1/N
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
float — may be NULL
Range
periods must be 2-105
Notes
Seeded with the SMA over the periods bars ending at the seed bar, same as ema(); no value before the seed bar
References
Developed by J. Welles Wilder Jr.