This indicator automatically constructs a Gann Box from the most recent swing high and swing low, then projects it forward from the last pivot point. Inside the box, a complete Gann grid divides price and time into eighths and thirds. From all four corners, Gann angle lines radiate inward — creating the classic star pattern that maps price-time harmony at every significant ratio.
Part of the MTC Gann Analysis Suite.
The indicator finds the highest high and lowest low within the lookback window (default: 100 bars). It determines which pivot occurred last — the high or the low — and projects the box FORWARD from that pivot.
The box width equals the time distance between the two pivots. The box height equals the price range. This creates a proportional square where price and time are balanced — the core principle of Gann's geometry.
Inside the box, horizontal and vertical lines divide both price and time into Gann's key proportions:
HORIZONTAL (Price Division):
VERTICAL (Time Division):
Same ratios applied to time — marking when key time proportions are reached within the box cycle.
The intersection points of horizontal and vertical grid lines form a matrix of price-time nodes. Gann believed that when price arrives at a node where both price and time align at a key ratio, a significant reaction is likely.
From all four corners of the box, diagonal angle lines radiate inward. Two sets are available:
PRIMARY (default — 12 lines total, 3 per corner):
FULL (36 lines total, 9 per corner):
The 1×1 angle is the most important — Gann called it the "45-degree angle" and considered it the equilibrium line between price and time. When price is above the 1×1 from the bottom-left corner, the market is in a bullish state. Below it = bearish.
The four-corner pattern creates a star of intersecting angles inside the box. Where multiple angle lines converge at the same point, that area becomes a strong support/resistance cluster.
The box border and background tint change based on market context:
This gives you instant visual context about the current market phase without reading any numbers.
A live readout shows where the current price sits within the box:
Example: "42.3% | LOWER MID | ~37.5%"
This tells you:
The color adapts: green in the middle, orange near the top, blue near the bottom, red when outside the box. This is especially useful for gauging whether price is overextended or near a key reaction level.
When enabled, the 7 key grid levels (0%, 25%, 33.3%, 50%, 66.7%, 75%, 100%) are projected as dotted lines beyond the right edge of the box — extending one full box width into the future. The 50% and boundary lines (0%, 100%) are drawn stronger.
These serve as forward-looking support and resistance targets for when price exits the box. Gann believed that these proportional levels continue to influence price even beyond the original structure.
The indicator outputs 5 invisible plot lines that can be used as alert sources in TakeProfit's native alert system:
To set an alert: Click "Alerts" → "New Alert" → Source: "MTC AUTO GANN ANGEL BOX" → select any of the 5 levels → Condition: "Crosses" → Done. You will be notified when price crosses a key Gann level.
The lines are invisible on the chart (no visual clutter) but fully functional as alert triggers.
Box as Context Frame:
The 1×1 Diagonal:
Price above the 1×1 angle from bottom-left = bullish momentum
Price below the 1×1 from top-left = bearish momentum
When price touches the 1×1 and bounces = trend continuation
When price breaks through the 1×1 = momentum shift
Grid Node Reactions:
Breakout Targets:
Position Sizing:
Uses Highest/Lowest with SinceHighest/SinceLowest over the lookback window. This finds the absolute high and low and their bar positions — more robust than PivotHighLow for this application.
Last Pivot Time = time of whichever swing occurred most recently Box Left = Last Pivot Time Box Right = Last Pivot Time + |High Time - Low Time| Box Top/Bottom = projected from the last pivot using the full price range
For ratio ≤ 1.0: the line spans the full time width, price change = box_range × ratio For ratio > 1.0: the line spans a fraction of time width (1/ratio), price change = full box_range Each corner generates angles in its natural direction (bottom-left → up-right, top-right → down-left, etc.)
Extended S/R: Extends key grid levels one full box width beyond the right edge: Extension Right = Box Right + (Box Right - Box Left) Level Price = Box Bottom + Box Range × ratio
Comments