Skip to main content
Core suite indicatorv1.0

AIMS Gator Indicator

Multi-dimensional trend compass combining Bill Williams Alligator smoothed moving averages with the proprietary Purple Magic higher-timeframe filter, trend clouds, and HUD dashboard telemetry.

Feeding Up trend expansion and ribbon corridor — TradingView
AIMS Gator on TradingView showing Feeding Up mouth expansion and Purple Magic alignment
Type
Indicator
Category
Trend & Regime
Platforms
TradingView, MT5, MT4
Language
Pine v6, MQL5, MQL4
Repaints
No — closed bar
Alligator Trend CompassPurple Magic (34/21)Sleeping vs FeedingTrend Ribbon & CloudsClosed-Bar Invariant

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

  1. 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.

  2. 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).

  3. 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.

  4. 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.

SetupContextWhat the indicator seesGoal
Feeding Up (Bullish Trend)Active expansionLips > Teeth > Jaws and Price > Purple MagicRide bullish momentum impulse waves
Feeding Down (Bearish Trend)Active expansionLips < Teeth < Jaws and Price < Purple MagicRide bearish downward momentum waves
Sleeping (Consolidation Chop)Range-bound marketLines interwoven or compressed within tight ATR rangeProtect capital; stay flat until breakout expansion
FEEDING UP

Bullish trend expansion (Lips > Teeth > Jaws) — long setups favored.

FEEDING DOWN

Bearish trend expansion (Lips < Teeth < Jaws) — short setups favored.

SLEEPING

Entwined lines and tight compression — suspend trend trades.

PURPLE ALIGNED

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
TradingView — Alligator mouth ribbon with Purple Magic macro bias line.
TradingView — Alligator mouth ribbon with Purple Magic macro bias line.

Settings

InputTypeDefaultWhat it does
Jaw Length / OffsetInteger13 / 8Displaced SMMA period and forward bar shift for the Gator Jaws (Blue).
Teeth Length / OffsetInteger8 / 5Displaced SMMA period and forward bar shift for the Gator Teeth (Red).
Lips Length / OffsetInteger5 / 3Displaced SMMA period and forward bar shift for the Gator Lips (Green).
Purple Length / OffsetInteger34 / 21Displaced SMMA period and forward shift for the Purple Magic line.
Gator mouth ribbonBooleantrueRender colored fill between lines during feeding and sleeping phases.
Show dashboardBooleantrueRender on-chart HUD dashboard showing current Gator phase and bias.

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
BufferNameValue
0Gator JawsBlue SMMA 13 line price value
1Gator TeethRed SMMA 8 line price value
2Gator LipsGreen SMMA 5 line price value
3Purple MagicPurple 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.

All indicators →

Never trade against the open mouth.

AIMS Gator Indicator is available now on TradingView, MT5 and MT4 for iTradeAIMS members.