What AIMS Gator does
AIMS Gator serves as the foundational Trend Lane in the AIMS 3-Lane Architecture (Structure, Trend, Momentum). By plotting smoothed, forward-displaced moving average corridors alongside the proprietary Purple Magic 34-period baseline, it separates chop from genuine directional impulse and enforces institutional higher-timeframe trend alignment.
Classic Alligator Corridor
Calculates smoothed moving averages for Jaws (13/8), Teeth (8/5), and Lips (5/3) to identify market sleep and feeding cycles.
The Purple Magic (34/21)
Displaced 34-period SMMA line serving as the higher-timeframe directional bias filter against false breakouts.
3-Lane Non-Overlapping Engine
Designed strictly for trend identification; pairs cleanly with AIMS Box (structure) and Banana (candle execution) without clutter.
How to trade AIMS Gator
Confirm Sleeping vs. Feeding Regime
When Alligator lines are entwined, the Gator is Sleeping — suspend trend breakout entries. When lines fan out in order, the Gator is Feeding.
Verify Purple Magic Alignment
Ensure price action is positioned on the correct side of the Purple Magic line (above for bullish trades, below for bearish trades).
Watch for Pullback Breathing into Teeth
Wait for price to pull back to retest the Teeth (Red SMMA 8) or Lips (Green SMMA 5) corridor without closing past the Jaws.
Execute on Confirmed Bar Close
Enter in the direction of the open mouth upon confirmed candle close. Anchor stop losses beyond the opposite side of the Jaws (Blue SMMA 13).
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 Gator classifies trend structure into three objective lifecycle phases.
| Setup | Context | What the indicator sees | Goal |
|---|---|---|---|
| Feeding Up (Bullish Trend) | Active expansion | Lips > Teeth > Jaws and Price > Purple Magic | Ride bullish momentum impulse waves |
| Feeding Down (Bearish Trend) | Active expansion | Lips < Teeth < Jaws and Price < Purple Magic | Ride bearish downward momentum waves |
| Sleeping (Consolidation Chop) | Range-bound market | Lines interwoven or compressed within tight ATR range | Protect capital; stay flat until breakout expansion |
Bullish trend expansion (Lips > Teeth > Jaws) — long setups favored.
Bearish trend expansion (Lips < Teeth < Jaws) — short setups favored.
Entwined lines and tight compression — suspend trend trades.
Price positioned with dominant higher-timeframe order flow.
The Alligator & Purple Magic Displacement Engine
Classic Bill Williams displaced smoothed moving averages (SMMA) with 4th line macro bias.
Jaws (Blue) = SMMA(hl2, 13) displaced 8 bars Teeth (Red) = SMMA(hl2, 8) displaced 5 bars Lips (Green) = SMMA(hl2, 5) displaced 3 bars Purple Magic = SMMA(hl2, 34) displaced 21 bars Feeding Up = Lips > Teeth > Jaws and Price > Purple Magic

Settings
| Input | Type | Default | What it does |
|---|---|---|---|
| Jaw Length / Offset | Integer | 13 / 8 | Displaced SMMA period and forward bar shift for the Gator Jaws (Blue). |
| Teeth Length / Offset | Integer | 8 / 5 | Displaced SMMA period and forward bar shift for the Gator Teeth (Red). |
| Lips Length / Offset | Integer | 5 / 3 | Displaced SMMA period and forward bar shift for the Gator Lips (Green). |
| Purple Length / Offset | Integer | 34 / 21 | Displaced SMMA period and forward shift for the Purple Magic line. |
| Gator mouth ribbon | Boolean | true | Render colored fill between lines during feeding and sleeping phases. |
| Show dashboard | Boolean | true | Render on-chart HUD dashboard showing current Gator phase and bias. |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpJawsPeriod / Shift | int | 13 / 8 | Jaws SMMA period and displacement shift. |
| InpTeethPeriod / Shift | int | 8 / 5 | Teeth SMMA period and displacement shift. |
| InpLipsPeriod / Shift | int | 5 / 3 | Lips SMMA period and displacement shift. |
| InpPurplePeriod / Shift | int | 34 / 21 | Purple Magic line period and displacement shift. |
| InpAppliedPrice | ENUM_APPLIED_PRICE | PRICE_MEDIAN | Price series used for smoothing (hl2). |
| Input | Type | Default | What it does |
|---|---|---|---|
| InpSerialKey | string | "" | Member Portal serial key for DLMS license verification. |
| InpJawsPeriod / Shift | int | 13 / 8 | Jaws period and forward displacement. |
| InpTeethPeriod / Shift | int | 8 / 5 | Teeth period and forward displacement. |
| InpLipsPeriod / Shift | int | 5 / 3 | Lips period and forward displacement. |
Use it in your EA
On MetaTrader you can read the levels and setup state from an Expert Advisor with iCustom().
// MQL5 — Read AIMS Gator lines on completed bar close
int h = iCustom(_Symbol, _Period, "AIMSGator");
double jaws[], teeth[], lips[], purple[];
CopyBuffer(h, 0, 1, 1, jaws); // Buffer 0: Jaws
CopyBuffer(h, 1, 1, 1, teeth); // Buffer 1: Teeth
CopyBuffer(h, 2, 1, 1, lips); // Buffer 2: Lips
CopyBuffer(h, 3, 1, 1, purple); // Buffer 3: Purple Magic| Buffer | Name | Value |
|---|---|---|
| 0 | Gator Jaws | Blue SMMA 13 line price value |
| 1 | Gator Teeth | Red SMMA 8 line price value |
| 2 | Gator Lips | Green SMMA 5 line price value |
| 3 | Purple Magic | Purple SMMA 34 line price value |
Frequently asked questions
AIMS Gator is the Trend Lane of the iTradeAIMS strategy. AIMS Box handles market Structure (boxes and fractals), AIMS Gator handles Trend regime and higher-timeframe bias (Alligator and Purple Magic), and The Banana Indicator executes on candle-close momentum. Together they form a non-overlapping system.




