# Market Structure Indicators

Break of structure, change of character, swing failures, range detectors, and pivot forecasts. This category documents **12** 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 Swing Failure Pattern](#aims-swing-failure-pattern)         | Main-Chart Overlay   | `1.00`  | AIMS Swing Failure Pattern (SFP) MT5            |
| [AIMS Breakout & Retest](#aims-breakout--retest)                  | Main-Chart Overlay   | `1.00`  | AIMS Swing Breakouts Tests & Retests MT5        |
| [AIMS Range Detector](#aims-range-detector)                       | Main-Chart Overlay   | `1.00`  | AIMS Range Detector & Breakout Monitor MT5      |
| [AIMS CHoCH BOS Fractal](#aims-choch-bos-fractal)                 | Main-Chart Overlay   | `1.00`  | AIMS Market Structure CHoCH / BOS (Fractal) MT5 |
| [AIMS Donchian Zig Zag](#aims-donchian-zig-zag)                   | Main-Chart Overlay   | `1.00`  | Donchian Zig-Zag                                |
| [AIMS Pivot Trailing Max Min](#aims-pivot-trailing-max-min)       | Main-Chart Overlay   | `1.00`  | Pivot Trailing Maxima & Minima                  |
| [AIMS Market Structure Osc](#aims-market-structure-osc)           | Subwindow Oscillator | `1.00`  | Multi-Tier Market Structure Oscillator          |
| [AIMS Market Structure Breakers](#aims-market-structure-breakers) | Main-Chart Overlay   | `1.00`  | Market Structure Breakers (MSB/MSS)             |
| [AIMS Protected Swings](#aims-protected-swings)                   | Main-Chart Overlay   | `1.00`  | Protected Swings (CISD)                         |
| [AIMS Master Pattern](#aims-master-pattern)                       | Main-Chart Overlay   | `1.00`  | Master Pattern & Liquidity Levels               |
| [AIMS Price Simplification](#aims-price-simplification)           | Main-Chart Overlay   | `1.00`  | RDP Price Simplification                        |
| [AIMS Pivot HL Forecast](#aims-pivot-hl-forecast)                 | Main-Chart Overlay   | `1.00`  | Pivot High/Low Analysis & Forecast              |

***

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

### AIMS Swing Failure Pattern[​](#aims-swing-failure-pattern "Direct link to AIMS Swing Failure Pattern")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Swing Failure Pattern (SFP) MT5
* **Plot Labels:** `Bullish SFP`, `Bearish SFP`, `Bullish SFP Confirmed`, `Bearish SFP Confirmed`

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

| Parameter               | Variable       | Type    | Default             |
| ----------------------- | -------------- | ------- | ------------------- |
| Swing Pivot Left Bars   | `InpSwingLen`  | `int`   | `5`                 |
| Enable Bullish SFP      | `InpBullSFP`   | `bool`  | `true`              |
| Enable Bearish SFP      | `InpBearSFP`   | `bool`  | `true`              |
| Draw Active Swing Lines | `InpShowLines` | `bool`  | `true`              |
| Bullish Line Color      | `InpBullColor` | `color` | `clrMediumSeaGreen` |
| Bearish Line Color      | `InpBearColor` | `color` | `clrCrimson`        |

***

### AIMS Breakout & Retest[​](#aims-breakout--retest "Direct link to AIMS Breakout & Retest")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Swing Breakouts Tests & Retests MT5
* **Plot Labels:** `Bullish Support Test`, `Bearish Breakout Retest`, `Bearish Resistance Test`, `Bullish Breakout Retest`

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

| Parameter                | Variable       | Type     | Default       |
| ------------------------ | -------------- | -------- | ------------- |
| Swing Left Bars          | `InpLeftBars`  | `int`    | `10`          |
| Swing Right Bars         | `InpRightBars` | `int`    | `1`           |
| Zone Width (ATR Mult)    | `InpAtrMult`   | `double` | `1.0`         |
| Max Bars Per Zone        | `InpMaxBars`   | `int`    | `500`         |
| Min Bars Between Retests | `InpMinGap`    | `int`    | `0`           |
| Support Zone Color       | `InpBullClr`   | `color`  | `clrSeaGreen` |
| Resistance Zone Color    | `InpBearClr`   | `color`  | `clrCrimson`  |

***

### AIMS Range Detector[​](#aims-range-detector "Direct link to AIMS Range Detector")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Range Detector & Breakout Monitor MT5
* **Plot Labels:** `Range Top`, `Range Bottom`

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

| Parameter              | Variable       | Type     | Default             |
| ---------------------- | -------------- | -------- | ------------------- |
| Minimum Range Length   | `InpMinLength` | `int`    | `20`                |
| Range Width (ATR Mult) | `InpWidthMult` | `double` | `1.0`               |
| ATR Length             | `InpAtrLen`    | `int`    | `500`               |
| Unbroken Range Color   | `InpUnbroken`  | `color`  | `clrDodgerBlue`     |
| Broken Upward Color    | `InpBrokenUp`  | `color`  | `clrMediumSeaGreen` |
| Broken Downward Color  | `InpBrokenDn`  | `color`  | `clrCrimson`        |

***

### AIMS CHoCH BOS Fractal[​](#aims-choch-bos-fractal "Direct link to AIMS CHoCH BOS Fractal")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Market Structure CHoCH / BOS (Fractal) MT5
* **Plot Labels:** `Bullish BOS`, `Bullish CHoCH`, `Bearish BOS`, `Bearish CHoCH`

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

| Parameter               | Variable        | Type    | Default             |
| ----------------------- | --------------- | ------- | ------------------- |
| Fractal Length (>= 3)   | `InpFractalLen` | `int`   | `5`                 |
| Max Structure Lines     | `InpMaxLines`   | `int`   | `20`                |
| Bullish Structure Color | `InpBullColor`  | `color` | `clrMediumSeaGreen` |
| Bearish Structure Color | `InpBearColor`  | `color` | `clrCrimson`        |

***

### AIMS Donchian Zig Zag[​](#aims-donchian-zig-zag "Direct link to AIMS Donchian Zig Zag")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Donchian Zig-Zag
* **Plot Labels:** `Donchian Zig-Zag`, `Donchian Upper`, `Donchian Lower`, `Bounce Flip`

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

| Parameter       | Variable         | Type     | Default |
| --------------- | ---------------- | -------- | ------- |
| Donchian Length | `InpLength`      | `int`    | `50`    |
| Bounce Speed    | `InpBounceSpeed` | `double` | `1.0`   |

***

### AIMS Pivot Trailing Max Min[​](#aims-pivot-trailing-max-min "Direct link to AIMS Pivot Trailing Max Min")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Pivot Trailing Maxima & Minima
* **Plot Labels:** `Trailing Maximum`, `Trailing Minimum`, `Trailing Average`, `Pivot Low Mark`, `Pivot High Mark`

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

| Parameter    | Variable    | Type  | Default |
| ------------ | ----------- | ----- | ------- |
| Pivot Length | `InpLength` | `int` | `24`    |

***

### AIMS Market Structure Osc[​](#aims-market-structure-osc "Direct link to AIMS Market Structure Osc")

* **Placement:** Subwindow Oscillator
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Multi-Tier Market Structure Oscillator
* **Plot Labels:** `MS Oscillator`, `Cycle Oscillator`

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

| Parameter                | Variable         | Type     | Default |
| ------------------------ | ---------------- | -------- | ------- |
| Short-Term Weight        | `InpWeightST`    | `double` | `1.0`   |
| Intermediate-Term Weight | `InpWeightIT`    | `double` | `3.0`   |
| Long-Term Weight         | `InpWeightLT`    | `double` | `2.0`   |
| Oscillator Smoothing     | `InpNormSmooth`  | `int`    | `4`     |
| Cycle EMA Length         | `InpCycleSmooth` | `int`    | `7`     |

***

### AIMS Market Structure Breakers[​](#aims-market-structure-breakers "Direct link to AIMS Market Structure Breakers")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Market Structure Breakers (MSB/MSS)
* **Plot Labels:** `Active Bull Breaker`, `Active Bear Breaker`, `Bull Breaker Breakout`, `Bear Breaker Breakout`

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

| Parameter                       | Variable         | Type  | Default |
| ------------------------------- | ---------------- | ----- | ------- |
| Swings Period                   | `InpSwingLength` | `int` | `20`    |
| Maximum Breaks per Breaker      | `InpMaxBreaks`   | `int` | `1`     |
| Breaker Maximum Duration (Bars) | `InpMaxDuration` | `int` | `1000`  |

***

### AIMS Protected Swings[​](#aims-protected-swings "Direct link to AIMS Protected Swings")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Protected Swings (CISD)
* **Plot Labels:** `Protected Swing Low`, `Protected Swing High`

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

| Parameter                | Variable         | Type   | Default |
| ------------------------ | ---------------- | ------ | ------- |
| Sweep Pivot Sensitivity  | `InpSweepSens`   | `int`  | `5`     |
| Include FVG Mitigations  | `InpIncludeFvg`  | `bool` | `true`  |
| FVG Lookback Limit       | `InpFvgLookback` | `int`  | `50`    |
| Draw Confirmation Levels | `InpShowLines`   | `bool` | `true`  |
| Max Confirmation Lines   | `InpMaxObjects`  | `int`  | `40`    |

***

### AIMS Master Pattern[​](#aims-master-pattern "Direct link to AIMS Master Pattern")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Master Pattern & Liquidity Levels
* **Plot Labels:** `Bullish Master Pattern`, `Bearish Master Pattern`, `Friction Midline`, `Upper Liquidity`, `Lower Liquidity`

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

| Parameter                  | Variable       | Type   | Default |
| -------------------------- | -------------- | ------ | ------- |
| Contraction Pivot Lookback | `InpLength`    | `int`  | `3`     |
| Liquidity Pivot Lookback   | `InpLiqLength` | `int`  | `20`    |
| Draw Master Pattern Boxes  | `InpShowBoxes` | `bool` | `true`  |
| Max Pattern Boxes          | `InpMaxBoxes`  | `int`  | `30`    |

***

### AIMS Price Simplification[​](#aims-price-simplification "Direct link to AIMS Price Simplification")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** RDP Price Simplification
* **Plot Labels:** `RDP Simplified Structure`

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

| Parameter                     | Variable        | Type     | Default |
| ----------------------------- | --------------- | -------- | ------- |
| RDP Window Size               | `InpWindowSize` | `int`    | `300`   |
| ATR Simplification Multiplier | `InpAtrMult`    | `double` | `2.0`   |
| ATR Length                    | `InpAtrLength`  | `int`    | `14`    |

***

### AIMS Pivot HL Forecast[​](#aims-pivot-hl-forecast "Direct link to AIMS Pivot HL Forecast")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Pivot High/Low Analysis & Forecast
* **Plot Labels:** `Last Pivot High Level`, `Last Pivot Low Level`, `Confirmed Pivot High`, `Confirmed Pivot Low`

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

| Parameter                             | Variable       | Type   | Default |
| ------------------------------------- | -------------- | ------ | ------- |
| Pivot Left/Right Lookback             | `InpLength`    | `int`  | `20`    |
| Draw Forecasted Next Pivot Time Lines | `InpShowFcast` | `bool` | `true`  |

***
