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
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.
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.
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.
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.
| Setup | Context | What the indicator sees | Goal |
|---|---|---|---|
| Setup 1 — Wave 4 pause | Established trend | Price pulls back into the box while the Alligator rests inside | Catch the Wave 5 resumption |
| Setup 2 — Range breakout | Equilibrium break | Price breaks a long-standing consolidation | Catch the first Wave 1 or Wave 3 move |
Clean fractal containment inside the trend.
Box too tall — stay out.
Breakout above the box ceiling.
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)

Settings
| Input | Type | Default | What it does |
|---|---|---|---|
| Fractal Strength | Integer | 2 | Swing radius: 2 bars left, 2 bars right (a 5-bar fractal). |
| ATR Box Ceiling | Float | 2.0 | ATR multiplier for the Box Too Tall gate. |
| Show Setup Prompts | Boolean | true | Shows SETUP READY badges above or below active boxes. |
| Desk Blotter Telemetry | Boolean | true | On-chart panel with box status, height and ATR ratio. |
| Input | Type | Default | What it does |
|---|---|---|---|
| FractalLookback | int | 5 | Bars needed to confirm a swing fractal high or low. |
| ATRPeriod | int | 14 | ATR lookback used as the volatility baseline. |
| MaxBoxATRMultiplier | double | 2.0 | Tallest allowed box in ATR units. Taller boxes are flagged Box Too Tall. |
| EnableBoxTooTallFilter | bool | true | Suppresses breakout prompts on oversized boxes. |
| ShowGatorRibbon | bool | true | Shows the 3-line Alligator corridor behind the box. |
| BoxColorBullish | color | DodgerBlue | Colour of bullish boxes. |
| BoxColorBearish | color | Crimson | Colour of bearish boxes. |
| BoxFillOpacity | int | 20 | Box shading opacity, in percent. |
| DrawTradeLadder | bool | true | Draws SL, Entry, TP1 and TP2 lines once a breakout confirms. |
| Input | Type | Default | What it does |
|---|---|---|---|
| FractalLookback | int | 5 | Bars needed to confirm a swing fractal high or low. |
| ATRPeriod | int | 14 | ATR lookback used as the volatility baseline. |
| MaxBoxATRMultiplier | double | 2.0 | Tallest allowed box in ATR units. |
| EnableBoxTooTallFilter | bool | true | Suppresses breakout prompts on oversized boxes. |
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| Buffer | Name | Value |
|---|---|---|
| 0 | BoxHigh | Active box upper boundary price |
| 1 | BoxLow | Active box lower boundary price |
| 2 | SetupReady | 1.0 buy ready, -1.0 sell ready, 0.0 none |
| 3–7 | Telemetry | ATR 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.




