# AIMS Momentum EA — Settings & Parameter Reference

**AIMS Momentum EA** is built with a streamlined **3-Bucket Parameter Architecture** to eliminate curve-fitting and parameter bloat.

***

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

### Bucket 0: License & Authentication[​](#bucket-0-license--authentication "Direct link to Bucket 0: License & Authentication")

| Parameter      | Type   | Default | Description                                              |
| -------------- | ------ | ------- | -------------------------------------------------------- |
| `InpSerialKey` | string | `""`    | Your DLMS license key from the iTradeAIMS member portal. |

### Bucket 3: Strategy Operational Toggles[​](#bucket-3-strategy-operational-toggles "Direct link to Bucket 3: Strategy Operational Toggles")

| Parameter              | Type   | Default          | Description                                                                                                    |
| ---------------------- | ------ | ---------------- | -------------------------------------------------------------------------------------------------------------- |
| `InpAutoDetectProfile` | bool   | `true`           | **Recommended ON**. Automatically calibrates Stop Loss method and unique Magic Numbers based on chart symbol.  |
| `InpSLMethod`          | enum   | `CANDLE_EXTREME` | Stop loss model if Auto-Profile is disabled (`0=Candle Extreme`, `1=Jaws`, `2=Fractal`).                       |
| `InpMaxOpenRunners`    | int    | `2`              | Maximum concurrent trades allowed (additional runners permitted only when existing trades are in Free status). |
| `InpUseSessionFilter`  | bool   | `true`           | Restrict order entry to specific session window.                                                               |
| `InpSessionStart`      | string | `"08:00"`        | Session start time (broker server time, HH:MM).                                                |
| `InpSessionEnd`        | string | `"17:30"`        | Session end time (broker server time, HH:MM).                                                  |

### Bucket 1: Execution & Broker Safeguards[​](#bucket-1-execution--broker-safeguards "Direct link to Bucket 1: Execution & Broker Safeguards")

| Parameter           | Type   | Default  | Description                                                                                                               |
| ------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------- |
| `InpUseRiskPercent` | bool   | `true`   | When true, lot size is calculated dynamically from the 1R Stop Loss distance.                                             |
| `InpRiskPercent`    | double | `1.0`    | Risk percentage per trade (e.g. 1.0% = 0.01 of equity).                                                                   |
| `InpFixedLot`       | double | `0.10`   | Fixed lot size used when `InpUseRiskPercent` is false.                                                                    |
| `InpMaxSpreadPips`  | double | `25.0`   | Spread guard ceiling in pips. Prevents execution during high-spread rollovers while permitting normal Index/Gold trading. |
| `InpSlippagePoints` | int    | `30`     | Maximum slippage tolerance in broker points.                                                                              |
| `InpMagicNumber`    | int    | `108170` | Base magic number for order identification.                                                                               |

***

## 2. Invariant Strategy Constants (Locked Internal)[​](#2-invariant-strategy-constants-locked-internal "Direct link to 2. Invariant Strategy Constants (Locked Internal)")

These parameters are mathematically locked inside the engine to prevent curve-fitting:

* **`InpUseFreeTrade = true`**: Always bank 50% cash profit at $+1.0R$.
* **`InpMoveToBEAt1R = false`**: Never move SL to Break-Even at 1R (preserves runners during structural retests).
* **`InpTakeProfitR = 0.0`**: No artificial Take Profit cap (unlimited upside).
* **`InpTrailingMethod = TEETH`**: Trails along the Alligator Red Line (Teeth).
* **`InpExitOnLipsClose = true`**: Exits early if price closes across the Green Line (Lips) while in profit.
* **`InpPendingExpiryBars = 3`**: Automatically cancels stale pending stop orders after 3 bars.

***

## 3. Auto-Symbol Profile Mapping Table (v1.10)[​](#3-auto-symbol-profile-mapping-table-v110 "Direct link to 3. Auto-Symbol Profile Mapping Table (v1.10)")

When `InpAutoDetectProfile` is set to `true` (default), the EA automatically detects the chart symbol upon attach, allocates a unique non-colliding Magic Number, and activates the calibrated Stop Loss model:

| Chart Symbol Pattern              | Detected Instrument       | Allocated Magic     | Stop Loss Model                     | On-Chart Banner Text                             |
| --------------------------------- | ------------------------- | ------------------- | ----------------------------------- | ------------------------------------------------ |
| `NAS100`, `USTEC`, `US100`, `NDX` | Nasdaq-100 Index          | `Base + 1` (108171) | Candle Extreme (`Low[1] / High[1]`) | `Profile: [NAS100 Champion (Candle Extreme SL)]` |
| `US30`, `DJ30`, `WS30`            | Dow Jones 30 Index        | `Base + 2` (108172) | Candle Extreme (`Low[1] / High[1]`) | `Profile: [US30 Champion (Candle Extreme SL)]`   |
| `GER40`, `DE40`, `DAX`            | DAX 40 Index              | `Base + 3` (108173) | Candle Extreme (`Low[1] / High[1]`) | `Profile: [GER40 Champion (Candle Extreme SL)]`  |
| `USDJPY`                          | US Dollar / Japanese Yen  | `Base + 4` (108174) | Swing Fractal (`iFractals`)         | `Profile: [USDJPY Champion (Fractal SL)]`        |
| `XAU`, `GOLD`                     | Spot Gold                 | `Base + 5` (108175) | Candle Extreme (`Low[1] / High[1]`) | `Profile: [XAUUSD Champion (Candle Extreme SL)]` |
| `GBPUSD`                          | British Pound / US Dollar | `Base + 6` (108176) | User / Preset SL                    | `Profile: [GBPUSD Profile (Auto-Detected)]`      |
| `EURUSD`                          | Euro / US Dollar          | `Base + 7` (108177) | User / Preset SL                    | `Profile: [EURUSD Profile (Auto-Detected)]`      |
| *Other / Unmapped*                | Custom Symbol             | `Base` (108170)     | User Selected (`InpSLMethod`)       | `Profile: [Universal Default (Auto-Detected)]`   |

Manual Override

To use custom manual settings or `.set` presets, simply set `InpAutoDetectProfile = false`. The on-chart banner will confirm: `Profile: [Manual Settings (Auto-Profile Off)]`.
