What AIMS Entry Alert does
AIMS Entry Alert (The Setup) is the foundational signal generation engine of the AIMS Trading Methodology. It automates the real-time detection of Setup 1 (Box Breakout) and Setup 2 (Pullback Retest) directly on your charts, calculating moving average crosses across the Alligator Lips line and filtering each trigger through structural fractal boundaries.
Setup 1 (S1) Inside-the-Box Entries
Detects moving average crosses that form inside the fractal consolidation box, providing earliest possible entry with tightest risk stop.
Setup 2 (S2) Confirmed Breakouts
Identifies aggressive momentum expansion when the moving average cross penetrates outside the structural fractal box.
Informative Warning Markers
Suppresses bad fills in dead zones using Grey Dots (AO/Box Pips filter) and Black Dots (Purple Trend Line/S0 filter).
How to trade AIMS Entry Alert
Setup 1 Anticipatory Breakout (S1 Thin Arrow)
Price crosses the Alligator Lips while still inside the fractal box. Place pending Buy Stop 1 pip above candle high with stop behind opposing fractal.
Setup 2 Confirmed Breakout (S2 Bold Arrow)
Price crosses the Lips line while decisively penetrating outside the fractal box. Enter on candle close or via pending stop past wick.
Filter Warning Dot Discipline
When a moving average cross occurs but prints a warning dot (Black or Grey Dot), stand aside—the setup is trapped in unfavorable structure.
Free Trade Ratcheting (+1.0R)
Once price moves +1.0R into profit, bank 50% profits, move stop loss to breakeven, and trail the remainder behind Alligator Teeth.
Prompts, not trade instructions. A SETUP READY prompt tells you to review the structure on a closed candle. It is never a command to enter blindly.
Setups and chart grammar
AIMS Entry Alert evaluates price behavior by comparing candle closes against the Alligator Lips and fractal bounds.
| Setup | Context | What the indicator sees | Goal |
|---|---|---|---|
| Setup 1 (S1) Inside-the-Box Early Entry | Consolidation coil before breakout | Fast MA crosses Lips line while price remains inside active fractal box | Enter early with tight stop anchored at opposing fractal edge, targeting +1.0R |
| Setup 2 (S2) Outside-the-Box Breakout | High-momentum trend continuation | Fast MA crosses Lips line while price penetrates outside structural fractal box | Enter aggressive momentum expansion with trailing stop behind Alligator Teeth |
| Warning Dot Marker Suppression | Macro trend opposition or volatility spike | Cross occurs into Purple Trend Line (Black Dot) or exceeds Box Pips ceiling (Grey Dot) | Suppress directional arrow to protect capital from adverse market structure |
Fast MA crosses Lips line inside active fractal box — earliest tight-risk entry.
Fast MA crosses Lips line outside fractal box — confirmed momentum breakout.
Cross occurred but invalidated by AO threshold or oversized Box Pips ceiling.
Cross occurred directly into macro Purple Trend Line or counter to S0 alignment.
The Fractal Box & Alligator Lips Invariant
Mathematical criteria separating early anticipatory and confirmed momentum breakouts.
S1: FastMA cross Lips[0] AND Candle.High <= UpperFractal (Buy) S2: FastMA cross Lips[0] AND Candle.High > UpperFractal (Buy)

Settings
| Input | Type | Default | What it does |
|---|---|---|---|
| Fast MA Period | Integer | 1 | Fast moving average lookback (close price). |
| Slower Lips MA Period | Integer | 5 | Alligator Lips moving average lookback. |
| Slower Lips Shift | Integer | 3 | Forward displacement offset in bars. |
| Filter: Purple Trend Line | Boolean | true | Enforce directional alignment with Purple Magic Line (SMMA 34). |
| Filter: S0 Alignment | Boolean | true | Validate S0 structural positioning. |
| Show Warning Dots | Boolean | true | Display Grey and Black warning markers on chart. |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpSerialKey | string | "" | DLMS serial key license activation. |
| InpFasterSMA | int | 1 | Fast moving average period. |
| InpSlowerSMA | int | 5 | Alligator Lips slower moving average period. |
| InpSlowerShift | int | 3 | Alligator Lips forward displacement shift. |
| InpFilterPurple | bool | true | Filter trades by macro Purple Trend Line (SMMA 34). |
| InpFilterS0 | bool | true | Filter trades by S0 baseline positioning. |
| InpFilterBoxPips | int | 0 | Ceiling filter for consolidation box width in pips (0 = disabled). |
| InpShowBlackDot | bool | true | Display Black Dot warning for Purple/S0 filter violations. |
| InpShowGreyDot | bool | true | Display Grey Dot warning for AO/Box Pips filter violations. |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpSerialKey | string | "" | DLMS serial key license validation. |
| InpFasterSMA | int | 1 | Fast SMA period. |
| InpSlowerSMA | int | 5 | Slower Lips SMA period. |
| InpSlowerShift | int | 3 | Lips SMA shift. |
| InpFilterPurple | bool | true | Purple MA filter. |
| InpFilterS0 | bool | true | S0 structural filter. |
| InpFilterBoxPips | int | 0 | Max box pips filter. |
| InpShowBlackDot | bool | true | Show Black Dot. |
| InpShowGreyDot | bool | true | Show Grey Dot. |
Use it in your EA
On MetaTrader you can read the levels and setup state from an Expert Advisor with iCustom().
// MQL5 — Read AIMS Entry Alert Setup 1 and Setup 2 triggers on confirmed bar close
int h = iCustom(_Symbol, _Period, "AIMSEntryAlert");
double s1Buy[], s1Sell[], s2Buy[], s2Sell[];
CopyBuffer(h, 0, 1, 1, s1Buy); // Buffer 0: Setup 1 Buy price
CopyBuffer(h, 1, 1, s1Sell); // Buffer 1: Setup 1 Sell price
CopyBuffer(h, 2, 1, 1, s2Buy); // Buffer 2: Setup 2 Buy price
CopyBuffer(h, 3, 1, 1, s2Sell); // Buffer 3: Setup 2 Sell price| Buffer | Name | Value |
|---|---|---|
| 0 | Setup 1 Buy Price | S1 inside-the-box bullish trigger price (EMPTY_VALUE if none) |
| 1 | Setup 1 Sell Price | S1 inside-the-box bearish trigger price (EMPTY_VALUE if none) |
| 2 | Setup 2 Buy Price | S2 outside-the-box bullish breakout price (EMPTY_VALUE if none) |
| 3 | Setup 2 Sell Price | S2 outside-the-box bearish breakout price (EMPTY_VALUE if none) |
Frequently asked questions
Setup 1 (S1, thin arrow) occurs when price crosses the Alligator Lips line while remaining inside the current structural fractal box. It offers the earliest possible entry with the tightest stop loss. Setup 2 (S2, bold arrow) triggers when the cross occurs simultaneously with price breaking outside the fractal box ceiling or floor, providing confirmed high-velocity momentum confirmation.




