Documentation / @finchart/indicators / meanAbsDeviation
Function: meanAbsDeviation()
meanAbsDeviation(
values,period): (number|null)[]
Defined in: indicators/src/kernels.ts:861
Windowed mean absolute deviation — CCI's denominator. Looks at the window twice (mean, then deviation) — O(n·period), but period is in the tens so that's fine. Same null rule as sma. ?? mean is unreachable defensive type narrowing (if it ever leaks through, that term is 0).
Parameters
values
period
number
Returns
(number | null)[]