# Volatility Indicators

Volatility squeezes, range filters, dispersion bands, and variance estimators. This category documents **16** MetaTrader 5 library indicators.

[← Back to Indicator Library Reference](/indicators/library/intro.md) · [Interactive Indicator Showcase](/indicators/.md)

## Quick Index[​](#quick-index "Direct link to Quick Index")

| Indicator                                                             | Placement            | Version | Summary                                                    |
| --------------------------------------------------------------------- | -------------------- | ------- | ---------------------------------------------------------- |
| [AIMS Chandelier Exit Osc](#aims-chandelier-exit-osc)                 | Subwindow Oscillator | `1.00`  | AIMS Chandelier Exit Oscillator MT5 (Regular & Normalized) |
| [AIMS BBands Breakout Osc](#aims-bbands-breakout-osc)                 | Subwindow Oscillator | `1.00`  | AIMS Bollinger Bands Breakout Oscillator MT5               |
| [AIMS Choppiness Index](#aims-choppiness-index)                       | Subwindow Oscillator | `1.00`  | AIMS Choppiness Index (CHOP) MT5                           |
| [AIMS Damiani Volatmeter](#aims-damiani-volatmeter)                   | Subwindow Oscillator | `1.00`  | AIMS Damiani Volatmeter (Trade / No-Trade Filter) MT5      |
| [AIMS Yang-Zhang Volatility](#aims-yang-zhang-volatility)             | Subwindow Oscillator | `1.00`  | AIMS Yang-Zhang Volatility Estimator (%) MT5               |
| [AIMS Chaikin Volatility](#aims-chaikin-volatility)                   | Subwindow Oscillator | `1.00`  | AIMS Chaikin Volatility (CHV) MT5                          |
| [AIMS Donchian Width](#aims-donchian-width)                           | Subwindow Oscillator | `1.00`  | AIMS Donchian Width (Fast / Slow & Percentile) MT5         |
| [AIMS Bollinger Squeeze](#aims-bollinger-squeeze)                     | Main-Chart Overlay   | `1.00`  | AIMS Bollinger Squeeze & Release Ranges MT5                |
| [AIMS Donchian MA Bands](#aims-donchian-ma-bands)                     | Main-Chart Overlay   | `1.00`  | Nested Donchian MA Bands                                   |
| [AIMS Proximal Range Filter](#aims-proximal-range-filter)             | Main-Chart Overlay   | `1.00`  | L1 Proximal Range Filter                                   |
| [AIMS Squeeze Index](#aims-squeeze-index)                             | Subwindow Oscillator | `1.00`  | Convergence Squeeze Index (PSI)                            |
| [AIMS NR4 NR7 Breakouts](#aims-nr4-nr7-breakouts)                     | Main-Chart Overlay   | `1.00`  | NR4 & NR7 Narrow Range Breakouts                           |
| [AIMS Neighboring Dispersion](#aims-neighboring-dispersion)           | Subwindow Oscillator | `1.00`  | Neighboring Price Dispersion                               |
| [AIMS Dual Neighboring Dispersion](#aims-dual-neighboring-dispersion) | Subwindow Oscillator | `1.00`  | Dual Neighboring Price Dispersion                          |
| [AIMS Predictive Ranges](#aims-predictive-ranges)                     | Main-Chart Overlay   | `1.00`  | Predictive ATR Ranges (R2/R1/Avg/S1/S2)                    |
| [AIMS Ulcer Index](#aims-ulcer-index)                                 | Subwindow Oscillator | `1.00`  | Ulcer Index (Downside Drawdown Volatility)                 |

***

## Indicator Specifications[​](#indicator-specifications "Direct link to Indicator Specifications")

### AIMS Chandelier Exit Osc[​](#aims-chandelier-exit-osc "Direct link to AIMS Chandelier Exit Osc")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Chandelier Exit Oscillator MT5 (Regular & Normalized)
* **Plot Labels:** `Chandelier Histogram`, `Chandelier Oscillator`

#### Parameters[​](#parameters "Direct link to Parameters")

| Parameter             | Variable        | Type               | Default              |
| --------------------- | --------------- | ------------------ | -------------------- |
| ATR & Extremes Length | `InpLength`     | `int`              | `22`                 |
| ATR Multiplier        | `InpMultiplier` | `double`           | `3.0`                |
| Oscillator Mode       | `InpMode`       | `ENUM_CE_OSC_MODE` | `CE_MODE_NORMALIZED` |
| Smoothing Length      | `InpSmooth`     | `int`              | `3`                  |

***

### AIMS BBands Breakout Osc[​](#aims-bbands-breakout-osc "Direct link to AIMS BBands Breakout Osc")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Bollinger Bands Breakout Oscillator MT5
* **Plot Labels:** `Bullish Breakout %`, `Bearish Breakout %`

#### Parameters[​](#parameters-1 "Direct link to Parameters")

| Parameter                     | Variable    | Type     | Default |
| ----------------------------- | ----------- | -------- | ------- |
| Bollinger & Lookback Length   | `InpLength` | `int`    | `14`    |
| Standard Deviation Multiplier | `InpMult`   | `double` | `1.0`   |

***

### AIMS Choppiness Index[​](#aims-choppiness-index "Direct link to AIMS Choppiness Index")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Choppiness Index (CHOP) MT5
* **Plot Labels:** `Choppiness Index`

#### Parameters[​](#parameters-2 "Direct link to Parameters")

| Parameter          | Variable       | Type     | Default |
| ------------------ | -------------- | -------- | ------- |
| CHOP Length        | `InpLength`    | `int`    | `14`    |
| Choppy Threshold   | `InpUpperBand` | `double` | `61.8`  |
| Trending Threshold | `InpLowerBand` | `double` | `38.2`  |

***

### AIMS Damiani Volatmeter[​](#aims-damiani-volatmeter "Direct link to AIMS Damiani Volatmeter")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Damiani Volatmeter (Trade / No-Trade Filter) MT5
* **Plot Labels:** `Volatility`, `Threshold`, `Trade Allowed Turn-On`, `No-Trade Turn-Off`

#### Parameters[​](#parameters-3 "Direct link to Parameters")

| Parameter                   | Variable         | Type     | Default |
| --------------------------- | ---------------- | -------- | ------- |
| Fast Length (Viscosity)     | `InpFastLen`     | `int`    | `7`     |
| Slow Length (Sedimentation) | `InpSlowLen`     | `int`    | `50`    |
| Lag Suppressor (k)          | `InpLagK`        | `double` | `0.5`   |
| Threshold Constant (c)      | `InpThreshC`     | `double` | `1.1`   |
| Show Regime Change Markers  | `InpShowMarkers` | `bool`   | `false` |

***

### AIMS Yang-Zhang Volatility[​](#aims-yang-zhang-volatility "Direct link to AIMS Yang-Zhang Volatility")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Yang-Zhang Volatility Estimator (%) MT5
* **Plot Labels:** `Yang-Zhang Volatility %`, `Comparison Volatility %`

#### Parameters[​](#parameters-4 "Direct link to Parameters")

| Parameter                          | Variable            | Type   | Default |
| ---------------------------------- | ------------------- | ------ | ------- |
| Primary Window Length              | `InpLength`         | `int`  | `20`    |
| Bars Per Year (252 Daily, 8760 H1) | `InpBarsPerYear`    | `int`  | `252`   |
| Show Comparison Window             | `InpShowComparison` | `bool` | `false` |
| Comparison Window Length           | `InpCompLength`     | `int`  | `60`    |

***

### AIMS Chaikin Volatility[​](#aims-chaikin-volatility "Direct link to AIMS Chaikin Volatility")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Chaikin Volatility (CHV) MT5
* **Plot Labels:** `Chaikin Volatility %`

#### Parameters[​](#parameters-5 "Direct link to Parameters")

| Parameter             | Variable       | Type  | Default |
| --------------------- | -------------- | ----- | ------- |
| Range EMA Length      | `InpEmaLength` | `int` | `10`    |
| Rate-of-Change Length | `InpRocLength` | `int` | `10`    |

***

### AIMS Donchian Width[​](#aims-donchian-width "Direct link to AIMS Donchian Width")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Donchian Width (Fast / Slow & Percentile) MT5
* **Plot Labels:** `Fast Donchian Width`, `Slow Donchian Width`

#### Parameters[​](#parameters-6 "Direct link to Parameters")

| Parameter                | Variable      | Type           | Default       |
| ------------------------ | ------------- | -------------- | ------------- |
| Fast Donchian Length     | `InpFastLen`  | `int`          | `20`          |
| Show Slow Width          | `InpShowSlow` | `bool`         | `true`        |
| Slow Donchian Length     | `InpSlowLen`  | `int`          | `55`          |
| Normalization Mode       | `InpNormMode` | `ENUM_DW_NORM` | `DW_NORM_MID` |
| Percentile Lookback      | `InpRankLen`  | `int`          | `100`         |
| Compression Percentile   | `InpCompPct`  | `double`       | `20.0`        |
| Extreme Width Percentile | `InpWidePct`  | `double`       | `80.0`        |

***

### AIMS Bollinger Squeeze[​](#aims-bollinger-squeeze "Direct link to AIMS Bollinger Squeeze")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Bollinger Squeeze & Release Ranges MT5
* **Plot Labels:** `Upper BB`, `Basis SMA`, `Lower BB`, `Bullish Squeeze Release`, `Bearish Squeeze Release`

#### Parameters[​](#parameters-7 "Direct link to Parameters")

| Parameter                          | Variable       | Type            | Default      |
| ---------------------------------- | -------------- | --------------- | ------------ |
| Bollinger Length                   | `InpLength`    | `int`           | `20`         |
| Bollinger StdDev Multiplier        | `InpMult`      | `double`        | `2.0`        |
| Squeeze Detection Test             | `InpMode`      | `ENUM_BSQ_MODE` | `BSQ_LOWEST` |
| Squeeze Lookback                   | `InpLookback`  | `int`           | `125`        |
| Percentile Floor (Mode=Percentile) | `InpPctlFloor` | `double`        | `10.0`       |
| Keltner Length                     | `InpKcLength`  | `int`           | `20`         |
| Keltner ATR Multiplier             | `InpKcMult`    | `double`        | `1.5`        |

***

### AIMS Donchian MA Bands[​](#aims-donchian-ma-bands "Direct link to AIMS Donchian MA Bands")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Nested Donchian MA Bands
* **Plot Labels:** `Upper Outer`, `Upper Inner`, `Mid Donchian`, `Lower Inner`, `Lower Outer`

#### Parameters[​](#parameters-8 "Direct link to Parameters")

| Parameter            | Variable    | Type          | Default   |
| -------------------- | ----------- | ------------- | --------- |
| MA Type              | `InpMaType` | `ENUM_DMB_MA` | `DMB_EMA` |
| Donchian & MA Length | `InpLength` | `int`         | `50`      |

***

### AIMS Proximal Range Filter[​](#aims-proximal-range-filter "Direct link to AIMS Proximal Range Filter")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** L1 Proximal Range Filter
* **Plot Labels:** `L1 Proximal Filter`, `Bull Switch`, `Bear Switch`

#### Parameters[​](#parameters-9 "Direct link to Parameters")

| Parameter                      | Variable     | Type     | Default |
| ------------------------------ | ------------ | -------- | ------- |
| ATR Noise Threshold Multiplier | `InpAtrMult` | `double` | `1.5`   |
| Adaptation Rate (Mu)           | `InpMu`      | `double` | `0.6`   |

***

### AIMS Squeeze Index[​](#aims-squeeze-index "Direct link to AIMS Squeeze Index")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Convergence Squeeze Index (PSI)
* **Plot Labels:** `Squeeze Index (PSI)`, `Active Squeeze (>80)`

#### Parameters[​](#parameters-10 "Direct link to Parameters")

| Parameter          | Variable        | Type  | Default |
| ------------------ | --------------- | ----- | ------- |
| Convergence Factor | `InpConvFactor` | `int` | `50`    |
| Correlation Length | `InpLength`     | `int` | `20`    |

***

### AIMS NR4 NR7 Breakouts[​](#aims-nr4-nr7-breakouts "Direct link to AIMS NR4 NR7 Breakouts")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** NR4 & NR7 Narrow Range Breakouts
* **Plot Labels:** `NR Range High`, `NR Range Low`, `NR Range Mid`, `NR Breakout Buy`, `NR Breakout Sell`

#### Parameters[​](#parameters-11 "Direct link to Parameters")

| Parameter            | Variable         | Type           | Default   |
| -------------------- | ---------------- | -------------- | --------- |
| Narrow Range Mode    | `InpPatternType` | `ENUM_NR_MODE` | `NR_BOTH` |
| Show Breakout Arrows | `InpShowSignals` | `bool`         | `true`    |

***

### AIMS Neighboring Dispersion[​](#aims-neighboring-dispersion "Direct link to AIMS Neighboring Dispersion")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Neighboring Price Dispersion
* **Plot Labels:** `Dispersion`, `Dispersion MA`, `Cumulative Mean`

#### Parameters[​](#parameters-12 "Direct link to Parameters")

| Parameter                    | Variable        | Type     | Default |
| ---------------------------- | --------------- | -------- | ------- |
| Historical Buffer (Bars)     | `InpBufferBars` | `int`    | `500`   |
| Neighboring Range (K)        | `InpNeighborsK` | `int`    | `50`    |
| SMA Smoothing                | `InpSmooth`     | `int`    | `1`     |
| Signal MA Length             | `InpMaLength`   | `int`    | `9`     |
| Cumulative Mean Multiplier   | `InpCMeanMult`  | `double` | `1.0`   |
| Max Historical Bars Computed | `InpMaxBars`    | `int`    | `600`   |

***

### AIMS Dual Neighboring Dispersion[​](#aims-dual-neighboring-dispersion "Direct link to AIMS Dual Neighboring Dispersion")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Dual Neighboring Price Dispersion
* **Plot Labels:** `Bullish Dispersion`, `Bearish Dispersion`, `Bullish Cumulative Mean`, `Bearish Cumulative Mean`

#### Parameters[​](#parameters-13 "Direct link to Parameters")

| Parameter                    | Variable        | Type     | Default |
| ---------------------------- | --------------- | -------- | ------- |
| Historical Buffer (Bars)     | `InpBufferBars` | `int`    | `500`   |
| Neighboring Range (K)        | `InpNeighborsK` | `int`    | `50`    |
| SMA Smoothing                | `InpSmooth`     | `int`    | `1`     |
| Cumulative Mean Multiplier   | `InpCMeanMult`  | `double` | `2.0`   |
| Max Historical Bars Computed | `InpMaxBars`    | `int`    | `600`   |

***

### AIMS Predictive Ranges[​](#aims-predictive-ranges "Direct link to AIMS Predictive Ranges")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Predictive ATR Ranges (R2/R1/Avg/S1/S2)
* **Plot Labels:** `PR Upper 2 (R2)`, `PR Upper 1 (R1)`, `PR Average`, `PR Lower 1 (S1)`, `PR Lower 2 (S2)`

#### Parameters[​](#parameters-14 "Direct link to Parameters")

| Parameter        | Variable    | Type     | Default |
| ---------------- | ----------- | -------- | ------- |
| ATR Length       | `InpLength` | `int`    | `200`   |
| Range ATR Factor | `InpFactor` | `double` | `6.0`   |

***

### AIMS Ulcer Index[​](#aims-ulcer-index "Direct link to AIMS Ulcer Index")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Ulcer Index (Downside Drawdown Volatility)
* **Plot Labels:** `Ulcer Index`, `Alert Threshold`, `Stress Cross Up`, `Stress Cross Down`

#### Parameters[​](#parameters-15 "Direct link to Parameters")

| Parameter                | Variable       | Type     | Default |
| ------------------------ | -------------- | -------- | ------- |
| Lookback Length (2..500) | `InpLength`    | `int`    | `14`    |
| Alert Threshold          | `InpThreshold` | `double` | `5.0`   |

***
