Skip to main content
Foundational Setup Enginev1.0.0

AIMS Entry Alert Indicator

Foundational trend-breakout indicator automating Setup 1 (Inside-the-Box) and Setup 2 (Outside-the-Box) detection with Alligator trend gates on MetaTrader and TradingView.

Setup 1 early anticipatory entries and Setup 2 confirmed momentum breakouts — TradingView
AIMS Entry Alert on TradingView showing Setup 1 dot alerts, fractal boxes, and breakout levels
Type
Indicator
Category
Trend Following
Platforms
TradingView, MT5, MT4
Language
Pine v6, MQL5, MQL4
Repaints
No — closed bar
Setup 1 Box BreakoutSetup 2 Outside BreakoutAlligator Lips CrossWarning Dot FiltersFractal Gate

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

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

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

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

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

SetupContextWhat the indicator seesGoal
Setup 1 (S1) Inside-the-Box Early EntryConsolidation coil before breakoutFast MA crosses Lips line while price remains inside active fractal boxEnter early with tight stop anchored at opposing fractal edge, targeting +1.0R
Setup 2 (S2) Outside-the-Box BreakoutHigh-momentum trend continuationFast MA crosses Lips line while price penetrates outside structural fractal boxEnter aggressive momentum expansion with trailing stop behind Alligator Teeth
Warning Dot Marker SuppressionMacro trend opposition or volatility spikeCross occurs into Purple Trend Line (Black Dot) or exceeds Box Pips ceiling (Grey Dot)Suppress directional arrow to protect capital from adverse market structure
SETUP 1

Fast MA crosses Lips line inside active fractal box — earliest tight-risk entry.

SETUP 2

Fast MA crosses Lips line outside fractal box — confirmed momentum breakout.

GREY DOT

Cross occurred but invalidated by AO threshold or oversized Box Pips ceiling.

BLACK DOT

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)
MetaTrader & TradingView — Dual-setup arrows and structural fractal boundaries.
MetaTrader & TradingView — Dual-setup arrows and structural fractal boundaries.

Settings

InputTypeDefaultWhat it does
Fast MA PeriodInteger1Fast moving average lookback (close price).
Slower Lips MA PeriodInteger5Alligator Lips moving average lookback.
Slower Lips ShiftInteger3Forward displacement offset in bars.
Filter: Purple Trend LineBooleantrueEnforce directional alignment with Purple Magic Line (SMMA 34).
Filter: S0 AlignmentBooleantrueValidate S0 structural positioning.
Show Warning DotsBooleantrueDisplay Grey and Black warning markers on chart.

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
BufferNameValue
0Setup 1 Buy PriceS1 inside-the-box bullish trigger price (EMPTY_VALUE if none)
1Setup 1 Sell PriceS1 inside-the-box bearish trigger price (EMPTY_VALUE if none)
2Setup 2 Buy PriceS2 outside-the-box bullish breakout price (EMPTY_VALUE if none)
3Setup 2 Sell PriceS2 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.

All indicators →

Master Setup 1 and Setup 2 with automated precision.

AIMS Entry Alert Indicator is available across TradingView, MT5, and MT4 for iTradeAIMS members.