# Risk & Trailing Exit Indicators

Volatility, Fibonacci, structure, and statistical trailing stop engines. 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 Fibonacci Trailing Stop](#aims-fibonacci-trailing-stop)     | Main-Chart Overlay | `1.00`  | AIMS Fibonacci Trailing Stop MT5          |
| [AIMS Elder SafeZone Stop](#aims-elder-safezone-stop)             | Main-Chart Overlay | `1.00`  | AIMS Elder SafeZone Trailing Stop MT5     |
| [AIMS MS Trailing Stop](#aims-ms-trailing-stop)                   | Main-Chart Overlay | `1.00`  | AIMS Market Structure Trailing Stop MT5   |
| [AIMS Statistical Trailing Stop](#aims-statistical-trailing-stop) | Main-Chart Overlay | `1.00`  | Log-Normal Statistical Trailing Stop      |
| [AIMS Sigmoid Trailing Stop](#aims-sigmoid-trailing-stop)         | Main-Chart Overlay | `1.00`  | Sigmoid Transition Trailing Stop          |
| [AIMS Neighboring Trailing Stop](#aims-neighboring-trailing-stop) | Main-Chart Overlay | `1.00`  | Neighboring Percentile Trailing Stop      |
| [AIMS Vol Delta Trailing Stop](#aims-vol-delta-trailing-stop)     | Main-Chart Overlay | `1.00`  | Volume Delta Trailing Stop                |
| [AIMS NRTR](#aims-nrtr)                                           | Main-Chart Overlay | `1.00`  | NRTR (Nick Rypock Trailing Reverse)       |
| [AIMS Trend Magic Stop](#aims-trend-magic-stop)                   | Main-Chart Overlay | `1.00`  | Trend Magic (CCI-Gated ATR Trailing Stop) |
| [AIMS Supertrend](#aims-supertrend)                               | Main-Chart Overlay | `1.00`  | Classic ATR Supertrend Trailing Stop      |

***

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

### AIMS Fibonacci Trailing Stop[​](#aims-fibonacci-trailing-stop "Direct link to AIMS Fibonacci Trailing Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Fibonacci Trailing Stop MT5
* **Plot Labels:** `Fibonacci Trailing Stop`, `Bullish Flip`, `Bearish Flip`

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

| Parameter                           | Variable        | Type               | Default     |
| ----------------------------------- | --------------- | ------------------ | ----------- |
| Swing Left Bars                     | `InpSwingLeft`  | `int`              | `20`        |
| Swing Right Bars                    | `InpSwingRight` | `int`              | `1`         |
| Fib Extension Level (-0.382..0.618) | `InpFibFactor`  | `double`           | `-0.382`    |
| Flip Trigger                        | `InpTrigger`    | `ENUM_FTS_TRIGGER` | `FTS_CLOSE` |

***

### AIMS Elder SafeZone Stop[​](#aims-elder-safezone-stop "Direct link to AIMS Elder SafeZone Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Elder SafeZone Trailing Stop MT5
* **Plot Labels:** `SafeZone Stop`, `Long Stop Hit`, `Short Stop Hit`

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

| Parameter             | Variable      | Type               | Default       |
| --------------------- | ------------- | ------------------ | ------------- |
| Penetration Lookback  | `InpLookback` | `int`              | `20`          |
| Noise Coefficient (k) | `InpCoef`     | `double`           | `2.5`         |
| Averaging Basis       | `InpAvgMode`  | `ENUM_SZ_AVG_MODE` | `SZ_PEN_ONLY` |
| Position Mode         | `InpPosMode`  | `ENUM_SZ_POS_MODE` | `SZ_AUTO`     |
| Stop Trigger          | `InpTrigger`  | `ENUM_SZ_TRIGGER`  | `SZ_CLOSE`    |
| Show Stop-Hit Markers | `InpShowHits` | `bool`             | `false`       |

***

### AIMS MS Trailing Stop[​](#aims-ms-trailing-stop "Direct link to AIMS MS Trailing Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** AIMS Market Structure Trailing Stop MT5
* **Plot Labels:** `MS Trailing Stop`, `Bullish MS Reset`, `Bearish MS Reset`

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

| Parameter          | Variable      | Type              | Default      |
| ------------------ | ------------- | ----------------- | ------------ |
| Pivot Lookback     | `InpPivotLen` | `int`             | `14`         |
| Increment Factor % | `InpIncrPct`  | `double`          | `100.0`      |
| Reset Stop On      | `InpResetOn`  | `ENUM_MSTS_RESET` | `MSTS_CHOCH` |

***

### AIMS Statistical Trailing Stop[​](#aims-statistical-trailing-stop "Direct link to AIMS Statistical Trailing Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Log-Normal Statistical Trailing Stop
* **Plot Labels:** `Statistical Trail`, `Bull Flip`, `Bear Flip`

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

| Parameter                 | Variable     | Type  | Default |
| ------------------------- | ------------ | ----- | ------- |
| True Range Window         | `InpDataLen` | `int` | `10`    |
| Distribution Length       | `InpDistLen` | `int` | `100`   |
| Base StdDev Level \[0..3] | `InpSdLevel` | `int` | `2`     |

***

### AIMS Sigmoid Trailing Stop[​](#aims-sigmoid-trailing-stop "Direct link to AIMS Sigmoid Trailing Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Sigmoid Transition Trailing Stop
* **Plot Labels:** `Sigmoid Trailing Stop`, `Bullish Flip`, `Bearish Flip`

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

| Parameter                     | Variable         | Type     | Default |
| ----------------------------- | ---------------- | -------- | ------- |
| ATR Length                    | `InpAtrLength`   | `int`    | `200`   |
| Initial ATR Multiplier        | `InpAtrMult`     | `double` | `3.0`   |
| Sigmoid Transition Bars       | `InpSigLength`   | `int`    | `20`    |
| Sigmoid Amplitude (ATR Units) | `InpSigAmpMult`  | `double` | `3.0`   |
| Min Distance Halt (ATR Units) | `InpMinDistMult` | `double` | `0.5`   |

***

### AIMS Neighboring Trailing Stop[​](#aims-neighboring-trailing-stop "Direct link to AIMS Neighboring Trailing Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Neighboring Percentile Trailing Stop
* **Plot Labels:** `Neighboring Trailing Stop`, `Discovery Buy Reversal`, `Discovery Sell Reversal`

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

| Parameter                | Variable        | Type     | Default |
| ------------------------ | --------------- | -------- | ------- |
| Historical Buffer (Bars) | `InpBufferSize` | `int`    | `200`   |
| Neighboring Range (K)    | `InpNeighborsK` | `int`    | `50`    |
| Percentile (1-99)        | `InpPercentile` | `double` | `90.0`  |
| Band SMA Smoothing       | `InpSmooth`     | `int`    | `5`     |

***

### AIMS Vol Delta Trailing Stop[​](#aims-vol-delta-trailing-stop "Direct link to AIMS Vol Delta Trailing Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Volume Delta Trailing Stop
* **Plot Labels:** `Volume Delta Trailing Stop`, `Trigger Level`, `Long Entry`, `Short Entry`

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

| Parameter                            | Variable        | Type             | Default        |
| ------------------------------------ | --------------- | ---------------- | -------------- |
| Trigger Source                       | `InpTrigger`    | `ENUM_VDTS_TRIG` | `VDTS_TRIG_HL` |
| Stop Adjustment Mode                 | `InpAdjMode`    | `ENUM_VDTS_ADJ`  | `VDTS_ADJ_PCT` |
| Adjustment (%)                       | `InpAdjPercent` | `double`         | `0.0`          |
| True Range Multiplier                | `InpTrMult`     | `double`         | `2.0`          |
| Reference Previous Close (else Open) | `InpUsePrevCls` | `bool`           | `false`        |

***

### AIMS NRTR[​](#aims-nrtr "Direct link to AIMS NRTR")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** NRTR (Nick Rypock Trailing Reverse)
* **Plot Labels:** `NRTR Trailing Line`, `Bullish Reversal`, `Bearish Reversal`

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

| Parameter                | Variable        | Type             | Default             |
| ------------------------ | --------------- | ---------------- | ------------------- |
| Offset Mode              | `InpOffsetMode` | `ENUM_NRTR_MODE` | `NRTR_MODE_PERCENT` |
| Percentage Deviation (%) | `InpPercent`    | `double`         | `2.0`               |
| ATR Length               | `InpAtrLength`  | `int`            | `14`                |
| ATR Multiplier           | `InpAtrMult`    | `double`         | `3.0`               |

***

### AIMS Trend Magic Stop[​](#aims-trend-magic-stop "Direct link to AIMS Trend Magic Stop")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Trend Magic (CCI-Gated ATR Trailing Stop)
* **Plot Labels:** `Trend Magic Line`, `Bullish Regime Flip`, `Bearish Regime Flip`

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

| Parameter      | Variable       | Type     | Default |
| -------------- | -------------- | -------- | ------- |
| CCI Length     | `InpCciLength` | `int`    | `20`    |
| ATR Length     | `InpAtrLength` | `int`    | `5`     |
| ATR Multiplier | `InpAtrMult`   | `double` | `1.0`   |

***

### AIMS Supertrend[​](#aims-supertrend "Direct link to AIMS Supertrend")

* **Placement:** Main-Chart Overlay
* **Version:** `1.00`
* **Platform:** MetaTrader 5 (MQL5)
* **Summary:** Classic ATR Supertrend Trailing Stop
* **Plot Labels:** `Supertrend Stop`, `Trend Flip Up`, `Trend Flip Down`

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

| Parameter             | Variable       | Type     | Default |
| --------------------- | -------------- | -------- | ------- |
| Wilder ATR Length     | `InpAtrLength` | `int`    | `10`    |
| ATR Multiplier Factor | `InpFactor`    | `double` | `3.0`   |

***
