# AIMS Bubble — Settings & Parameter Reference

This guide details all user inputs and configurations available in the **AIMSBubbleAdvanced** indicator on MetaTrader 4.

***

## 1. Channel & Keltner Stretch Inputs[​](#1-channel--keltner-stretch-inputs "Direct link to 1. Channel & Keltner Stretch Inputs")

| Parameter            | Type                 | Default       | Description                                                      |
| -------------------- | -------------------- | ------------- | ---------------------------------------------------------------- |
| `InpMidlinePeriod`   | `int`                | `20`          | Lookback period for the Keltner baseline moving average.         |
| `InpMidlineMethod`   | `ENUM_MA_METHOD`     | `MODE_EMA`    | Smoothing algorithm (Exponential Moving Average).                |
| `InpMidlinePrice`    | `ENUM_APPLIED_PRICE` | `PRICE_CLOSE` | Applied price calculation (Close price).                         |
| `InpATRPeriod`       | `int`                | `20`          | Volatility measurement lookback period (Average True Range).     |
| `InpCentreMult`      | `double`             | `1.0`         | Multiplier for the inner Centre Band (defines Pulled-Back Zone). |
| `InpContainmentMult` | `double`             | `2.25`        | Multiplier for the outer Containment Band (Grimes containment).  |

***

## 2. Strategy & Filter Operational Toggles[​](#2-strategy--filter-operational-toggles "Direct link to 2. Strategy & Filter Operational Toggles")

| Parameter                | Type     | Default | Description                                                          |
| ------------------------ | -------- | ------- | -------------------------------------------------------------------- |
| `InpEnableTier1Marker`   | `bool`   | `true`  | Plots Diamond markers on 4-Pillar Climax bars.                       |
| `InpEnableTier2Recovery` | `bool`   | `true`  | Plots action entry arrows on recovery candle confirmation.           |
| `InpEnableSnapBack`      | `bool`   | `true`  | Plots trend continuation arrows on Centre-Band pullbacks.            |
| `InpDerivativeBars`      | `int`    | `3`     | Lookback bar count ($k$) for velocity and slope calculation.         |
| `InpSlopeMinAbs`         | `double` | `0.02`  | Minimum midline slope required to authorize SnapBack setups.         |
| `InpEpisodeLookback`     | `int`    | `20`    | Maximum bars awaiting a centre-band pullback before episode expires. |
| `InpMaxBars`             | `int`    | `2000`  | Historical bar render limit (0 = all chart history).                 |

***

## 3. Embedded Fruit Confirmation Toggles[​](#3-embedded-fruit-confirmation-toggles "Direct link to 3. Embedded Fruit Confirmation Toggles")

| Parameter         | Type   | Default | Description                                                     |
| ----------------- | ------ | ------- | --------------------------------------------------------------- |
| `InpFilterGator`  | `bool` | `false` | Requires Alligator angulation clearance for Fruit confirmation. |
| `InpFilterAO`     | `bool` | `false` | Requires Awesome Oscillator momentum deceleration.              |
| `InpFilterPurple` | `bool` | `false` | Requires alignment relative to the 34 SMMA Purple Magic line.   |

***

## 4. Visual Customization & Alerts[​](#4-visual-customization--alerts "Direct link to 4. Visual Customization & Alerts")

| Parameter                 | Type     | Default | Description                                               |
| ------------------------- | -------- | ------- | --------------------------------------------------------- |
| `InpBuyArrowCode`         | `int`    | `233`   | Wingdings character code for Buy Arrow (▲).               |
| `InpSellArrowCode`        | `int`    | `234`   | Wingdings character code for Sell Arrow (▼).              |
| `InpExhaustionMarkerCode` | `int`    | `117`   | Wingdings character code for Exhaustion Marker (◆).       |
| `InpArrowOffsetPips`      | `double` | `3.0`   | Vertical offset distance in pips above high or below low. |
| `InpAlertPop`             | `bool`   | `true`  | Enables native MT4 popup alert windows.                   |
| `InpAlertPush`            | `bool`   | `false` | Sends real-time notifications to MT4 mobile apps.         |
| `InpAlertEmail`           | `bool`   | `false` | Sends email alerts via MT4 SMTP gateway.                  |
| `InpAlertSound`           | `bool`   | `false` | Plays audible audio alert chime on signal.                |
