mad
Syntax Format
mad(series, period)
Overview
The mad
function provides the Mean Absolute Deviation of the given series over the chosen period. The function is usually used to analyze the series data range change over a certain timeframe.
Parameters
Parameter | Type | Purpose |
---|---|---|
series | series | Input value, taken into calculation |
period | integer | input period, taken into calculation |
Returns: series
.
Example
mad_data = mad(close, 14)
Formula
The formula for calculating the mad
function is: