Skip to main content

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​

ParameterTypePurpose
seriesseriesInput value, taken into calculation
periodintegerinput period, taken into calculation

Returns: series.

Example​

mad_data = mad(close, 14)

Formula​

The formula for calculating the mad function is:

image.png