# Pattern Recognition Indicators

Candlestick formations, bar classifiers, gap breakouts, and multi-bar reversal detectors. This category documents **10** 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 N-Bar Reversal](#aims-n-bar-reversal)               | Main-Chart Overlay | `1.00`  | AIMS N-Bar Reversal Detector MT5                             |
| [AIMS The Strat](#aims-the-strat)                         | Main-Chart Overlay | `1.00`  | AIMS The Strat (1 / 2U / 2D / 3 Bar Classifier & Combos) MT5 |
| [AIMS Long Wick Detector](#aims-long-wick-detector)       | Main-Chart Overlay | `1.00`  | Long Wick Rejection Detector                                 |
| [AIMS Rising Falling Window](#aims-rising-falling-window) | Main-Chart Overlay | `1.00`  | Rising & Falling Window Gap Signals                          |
| [AIMS Three Bar Reversal](#aims-three-bar-reversal)       | Main-Chart Overlay | `1.00`  | Three Bar Reversal Pattern                                   |
| [AIMS Gap Fill Breakouts](#aims-gap-fill-breakouts)       | Main-Chart Overlay | `1.00`  | Gap Fill Breakouts (ATR FVG + Structural S/R)                |
| [AIMS Island Reversal](#aims-island-reversal)             | Main-Chart Overlay | `1.00`  | Island Reversal Detector                                     |
| [AIMS Horns Pattern](#aims-horns-pattern)                 | Main-Chart Overlay | `1.00`  | Horns Pattern Identifier & Breakout Targets                  |
| [AIMS Bart Pattern](#aims-bart-pattern)                   | Main-Chart Overlay | `1.00`  | Bart Pattern Edge-Reversal Detector                          |
| [AIMS McDonalds Pattern](#aims-mcdonalds-pattern)         | Main-Chart Overlay | `1.00`  | Dual-Arch Cubic Bezier M/W Pattern                           |

***

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

### AIMS N-Bar Reversal[​](#aims-n-bar-reversal "Direct link to AIMS N-Bar Reversal")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS N-Bar Reversal Detector MT5
* **Plot Labels:** `Bullish N-Bar Reversal`, `Bearish N-Bar Reversal`, `Derived Support`, `Derived Resistance`

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

| Parameter               | Variable       | Type              | Default    |
| ----------------------- | -------------- | ----------------- | ---------- |
| Sequence Length (N)     | `InpNumBars`   | `int`             | `7`        |
| Min Counter-Candles %   | `InpMinPct`    | `int`             | `50`       |
| Plot Derived S/R Levels | `InpShowSR`    | `bool`            | `true`     |
| Trend Filter            | `InpTrendFilt` | `ENUM_NBR_FILTER` | `NBR_NONE` |
| Fast EMA (MA Cloud)     | `InpFastMA`    | `int`             | `50`       |
| Slow EMA (MA Cloud)     | `InpSlowMA`    | `int`             | `200`      |
| Donchian Length         | `InpDonchian`  | `int`             | `13`       |

***

### AIMS The Strat[​](#aims-the-strat "Direct link to AIMS The Strat")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS The Strat (1 / 2U / 2D / 3 Bar Classifier & Combos) MT5
* **Plot Labels:** `Open;High;Low;Close`, `Bullish 2-1-2 / 3-1-2 Combo`, `Bearish 2-1-2 / 3-1-2 Combo`

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

| Parameter                          | Variable        | Type   | Default |
| ---------------------------------- | --------------- | ------ | ------- |
| Show 2-1-2 / 3-1-2 Reversal Arrows | `InpShowCombos` | `bool` | `true`  |

***

### AIMS Long Wick Detector[​](#aims-long-wick-detector "Direct link to AIMS Long Wick Detector")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Long Wick Rejection Detector
* **Plot Labels:** `Upper Wick Signal`, `Lower Wick Signal`

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

| Parameter                | Variable        | Type     | Default |
| ------------------------ | --------------- | -------- | ------- |
| Wick Threshold (xATR200) | `InpWickThresh` | `double` | `2.0`   |
| Wick Level %             | `InpLevelPct`   | `double` | `100.0` |

***

### AIMS Rising Falling Window[​](#aims-rising-falling-window "Direct link to AIMS Rising Falling Window")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Rising & Falling Window Gap Signals
* **Plot Labels:** `Rising Window Test`, `Falling Window Test`

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

| Parameter                   | Variable      | Type            | Default         |
| --------------------------- | ------------- | --------------- | --------------- |
| Max Live Zone Length (Bars) | `InpMaxZones` | `int`           | `50`            |
| Min Gap Width (xATR200)     | `InpAtrLow`   | `double`        | `0.25`          |
| Max Gap Width (xATR200)     | `InpAtrHigh`  | `double`        | `5.0`           |
| Signal Test Type            | `InpTestMode` | `ENUM_RFW_TEST` | `RFW_ENGULFING` |

***

### AIMS Three Bar Reversal[​](#aims-three-bar-reversal "Direct link to AIMS Three Bar Reversal")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Three Bar Reversal Pattern
* **Plot Labels:** `Bullish 3-Bar Reversal`, `Bearish 3-Bar Reversal`, `Pattern Support`, `Pattern Resistance`

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

| Parameter       | Variable         | Type              | Default           |
| --------------- | ---------------- | ----------------- | ----------------- |
| Pattern Type    | `InpPatternMode` | `ENUM_TBR_MODE`   | `TBR_ALL`         |
| Trend Filter    | `InpTrendFilter` | `ENUM_TBR_FILTER` | `TBR_FILTER_NONE` |
| Fast EMA Length | `InpFastEma`     | `int`             | `50`              |
| Slow EMA Length | `InpSlowEma`     | `int`             | `200`             |
| Donchian Length | `InpDonchianLen` | `int`             | `13`              |

***

### AIMS Gap Fill Breakouts[​](#aims-gap-fill-breakouts "Direct link to AIMS Gap Fill Breakouts")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Gap Fill Breakouts (ATR FVG + Structural S/R)
* **Plot Labels:** `Active Bull Gap Top`, `Active Bear Gap Bot`, `Bullish Gap Breakout`, `Bearish Gap Breakout`

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

| Parameter                   | Variable         | Type     | Default |
| --------------------------- | ---------------- | -------- | ------- |
| ATR Multiplier for FVG Size | `InpAtrMult`     | `double` | `1.0`   |
| Body Pivot Length           | `InpPivotLength` | `int`    | `5`     |
| Max Bars Back for Signal    | `InpMaxBarsBack` | `int`    | `200`   |
| Max Tracked Gaps            | `InpMaxGaps`     | `int`    | `5`     |

***

### AIMS Island Reversal[​](#aims-island-reversal "Direct link to AIMS Island Reversal")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Island Reversal Detector
* **Plot Labels:** `Bottom Island Reversal`, `Top Island Reversal`

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

| Parameter                        | Variable          | Type     | Default |
| -------------------------------- | ----------------- | -------- | ------- |
| Enable Trend Filter              | `InpTrendFilter`  | `bool`   | `true`  |
| Trend Lookback                   | `InpTrendLength`  | `int`    | `10`    |
| Enable Volume Filter             | `InpVolumeFilter` | `bool`   | `false` |
| Enable Horizontality (R2) Filter | `InpR2Filter`     | `bool`   | `true`  |
| Max R2 Threshold                 | `InpR2Threshold`  | `double` | `0.50`  |
| Enable Volatility Filter         | `InpVolFilter`    | `bool`   | `true`  |
| Volatility ATR Multiplier        | `InpVolMult`      | `double` | `5.0`   |
| Draw Island Reversal Boxes       | `InpShowBoxes`    | `bool`   | `true`  |
| Max Island Boxes                 | `InpMaxBoxes`     | `int`    | `30`    |

***

### AIMS Horns Pattern[​](#aims-horns-pattern "Direct link to AIMS Horns Pattern")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Horns Pattern Identifier & Breakout Targets
* **Plot Labels:** `Confirmation Level`, `Projected Target`, `Horn Buy Breakout`, `Horn Sell Breakout`

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

| Parameter                          | Variable       | Type     | Default |
| ---------------------------------- | -------------- | -------- | ------- |
| Normalized Horn Distance Threshold | `InpThreshold` | `double` | `0.05`  |

***

### AIMS Bart Pattern[​](#aims-bart-pattern "Direct link to AIMS Bart Pattern")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Bart Pattern Edge-Reversal Detector
* **Plot Labels:** `Bearish Bart Signal`, `Bullish Inverted Bart Signal`

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

| Parameter                     | Variable        | Type     | Default |
| ----------------------------- | --------------- | -------- | ------- |
| Median Lookback               | `InpMedianLen`  | `int`    | `25`    |
| Edge Detection ATR Multiplier | `InpEdgeMult`   | `double` | `1.0`   |
| Range-to-Edges Max Threshold  | `InpRangeRatio` | `double` | `2.0`   |
| Show Bullish Inverted Barts   | `InpShowInvert` | `bool`   | `true`  |
| Draw Consolidation Zone Boxes | `InpShowBoxes`  | `bool`   | `true`  |
| Max Zone Boxes                | `InpMaxBoxes`   | `int`    | `30`    |

***

### AIMS McDonalds Pattern[​](#aims-mcdonalds-pattern "Direct link to AIMS McDonalds Pattern")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Dual-Arch Cubic Bezier M/W Pattern
* **Plot Labels:** `Dual-Arch Bezier Curve`, `Swing Body Top`, `Swing Body Bottom`

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

| Parameter                               | Variable       | Type   | Default |
| --------------------------------------- | -------------- | ------ | ------- |
| Body Swing Lookback                     | `InpLength`    | `int`  | `30`    |
| Anchor Rightmost Vertex to Latest Close | `InpFromStart` | `bool` | `true`  |

***
