StockBeatStockBeat
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
  • Signals

    • Number Series
    • Boolean Series
    • Signal Examples
    • Indicators

      • Indicators
      • MFI (Money Flow Index)
      • ATR (Average True Range)
      • CCI (Commodity Channel Index)
      • CE (Chandelier Exit)
      • ER (Kaufman's Efficiency Ratio)
      • KC (Keltner Channel)
      • SMA (Simple Moving Average)
      • EMA (Exponential Moving Average)
      • MACD (Moving Average Convergence Divergence)
      • PPO (Percentage Price Oscillator)
      • RSI (Relative Strength Index)
      • FSO (Fast Stochastic Oscillator)
      • SSO (Slow Stochastic Oscillator)
      • BB (Bollinger Bands)
      • MAD (Mean Absolute Deviation)

MAD (Mean Absolute Deviation)

The MAD (Mean Absolute Deviation) is a measure of statistical dispersion. In finance, it is used to measure the volatility of an asset. It is calculated as the average of the absolute differences between each data point and the mean. A higher MAD indicates higher volatility, and a lower MAD indicates lower volatility.

Arguments

NameDescription
periodnumber of candles

Useful Signal Expressions

1. Increasing Volatility

Signal:

close().mad(9).rising(3)

Explanation: The Mean Absolute Deviation is rising for 3 consecutive periods, indicating increasing volatility.

2. Decreasing Volatility

Signal:

close().mad(9).falling(3)

Explanation: The Mean Absolute Deviation is falling for 3 consecutive periods, indicating decreasing volatility.

Last Updated:: 2/12/26, 8:03 AM
Contributors: ErenKizilay
Prev
BB (Bollinger Bands)