Skip to main content
Core suite indicatorv6.0

AIMS Box Indicator

Draws consolidation boxes between confirmed swing-high and swing-low fractals, flags Setup 1 (Wave 4 pause) and Setup 2 (range breakout) continuation trades, and blocks boxes too tall to trade with a good risk-to-reward.

Setup 1 BuyStop brackets and HUD desk blotter — TradingView
AIMS Box Super on TradingView showing fractal breakout boxes, trade brackets, and HUD desk blotter
Type
Indicator
Category
Market structure
Platforms
TradingView, MT5, MT4
Language
Pine v6, MQL5, MQL4
Repaints
No — closed bar
FractalsBreakoutsElliott Wave 4ATR risk gateAlligator

What AIMS Box does

Instead of drawing support and resistance by hand, AIMS Box anchors each consolidation box to confirmed swing fractals. While price stays inside the box it is resting. When it leaves the box in the trend direction, you get a structured breakout to review.

Fractal boundaries

Boxes lock to 5-bar swing fractals, so the levels are objective.

Setup 1 and Setup 2

Wave 4 pauses and range breakouts, flagged on candle close.

Risk gates

Boxes taller than 2.0x ATR are blocked before you trade them.

How to trade AIMS Box

  1. Wait for the box to form

    The engine watches 5-bar swing fractals and locks the box ceiling and floor once they confirm. The shaded corridor extends while price stays inside.

  2. Check the risk gate and the Gator

    Box height must be 2.0x ATR or less. For Setup 1 the Gator ribbon (Teeth and Lips) sits inside the box; for Setup 2 it opens in the trend direction.

  3. Place the stop order on SETUP READY

    Place a Buy Stop (or Sell Stop) 1–2 ticks beyond the box edge in the trend direction.

  4. Manage the trade

    Put the initial stop just beyond the opposite box boundary. The trade ladder draws SL, Entry, TP1 and TP2 once the breakout confirms.

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 Box separates two kinds of structural breakout.

SetupContextWhat the indicator seesGoal
Setup 1 — Wave 4 pauseEstablished trendPrice pulls back into the box while the Alligator rests insideCatch the Wave 5 resumption
Setup 2 — Range breakoutEquilibrium breakPrice breaks a long-standing consolidationCatch the first Wave 1 or Wave 3 move
SETUP READY

Clean fractal containment inside the trend.

BLOCKED

Box too tall — stay out.

BUY

Breakout above the box ceiling.

SELL

Breakout below the box floor.

The Box Too Tall gate

A very wide box needs a very wide stop, which ruins the risk-to-reward. AIMS Box measures every box against ATR and blocks the oversized ones.

Box Height = Box High − Box Low
if Box Height > 2.0 × ATR(14)  →  BLOCKED (Box too tall)
MT5 — an oversized box flagged BLOCKED.
MT5 — an oversized box flagged BLOCKED.

Settings

InputTypeDefaultWhat it does
Fractal StrengthInteger2Swing radius: 2 bars left, 2 bars right (a 5-bar fractal).
ATR Box CeilingFloat2.0ATR multiplier for the Box Too Tall gate.
Show Setup PromptsBooleantrueShows SETUP READY badges above or below active boxes.
Desk Blotter TelemetryBooleantrueOn-chart panel with box status, height and ATR ratio.

Use it in your EA

On MetaTrader you can read the levels and setup state from an Expert Advisor with iCustom().

// MQL5 — read SetupReady on the last closed bar
int    h = iCustom(_Symbol, _Period, "AIMS_Box");
double v[];
CopyBuffer(h, 2, 1, 1, v);   // 1 = buy, -1 = sell, 0 = none
BufferNameValue
0BoxHighActive box upper boundary price
1BoxLowActive box lower boundary price
2SetupReady1.0 buy ready, -1.0 sell ready, 0.0 none
3–7TelemetryATR ratio, Gator state, and channel boundaries

Frequently asked questions

No. Fractal boundaries lock once the confirmation bars have closed, and Setup Ready and breakout alerts are checked on candle close only. A confirmed marker never moves or disappears.

All indicators →

Trade the box, not the noise.

AIMS Box is ready on TradingView, MT5 and MT4 for iTradeAIMS members.