Appearance

Personalize your experience

Mode
Accent Color
Direction
Gann Box

Gann Box

Gann

A geometric price-time square with an anchored 45° (1×1) diagonal. Built on W.D. Gann's theory that price and time oscillate in harmonic proportion, the box helps project support and resistance along key angles.

Origins & theory

The Gann Box is one of the foundational tools from William Delbert Gann (1878–1955), a legendary trader who believed that markets move in predictable geometric and numerical cycles. Gann's central insight — the Law of Vibration — that price and time are interchangeable dimensions: a one-unit move in price over one unit of time is geometrically equivalent, at different scales, to a one-unit move in price over one unit of time.

The box embodies this philosophy by . A Gann Box anchors a 45° (1×1) angle at a significant pivot and draws a square whose (time) equals its height (price). The 1×1 diagonal represents perfect balance — when price follows this line, it is moving exactly one unit of price per unit of time. Gann considered this the "line of vibration"and taught that deviations from it signal changes in trend character. When price is above this line in an uptrend, the trend is strong; when below, it is weak.

Gann published his methods in several works, most notably "How to Make Profits in Commodities"(1942) and the allegorical novel "The Tunnel Thru the Air" (1927), which contained his market prediction principles in coded form. The Gann Box remains one of the most enduring and widely-used tools in geometric technical analysis. Gann's methods were famously applied to the 1929 stock market crash months in advance.

Tool Design & Behavior

The Gann Box is a two- drawing tool. The first click sets the origin at a significant pivot. The second click sets the target — defining both the price and time span of the box. The box automatically squares the range: the equals the height, creating a perfect square in price-time space. The box can be drawn in any direction — upward for bullish trends, downward for bearish trends.

Inside the box, a 45° diagonal (the 1×1 line) runs from the bottom-left corner to the top- corner (for an upward box) or from the top-left to the bottom-right (for a downward box). Additional lines may divide the box into quadrants (Price ½, Time ½) and fractions (⅓, ⅔). The 1×1 line can be beyond the box to the chart edge for ongoing trend analysis. The box boundary itself (the top, bottom, left, and right edges) also acts as support and resistance.

All elements of the box — the square boundary, the diagonals, the grid lines, and the origin marker — can be individually styled. Dragging any recalculates the entire box in real time. The box can also be resized by dragging the opposite corner after placement. The price and time of the anchors are stored with the study, so the box remains pinned to the same levels across zoom levels and timeframe changes.

Visual Configuration

Color / Width
Line styling for the box boundary, the 1×1 diagonal, and the grid lines. Each element can have a distinct color.
Show grid
Display internal division lines at ½, ⅓, and ¼ fractions for both price and time. More divisions provide finer granularity.
Box scale
Controls how price and time are mapped: auto (fit to screen), (user-defined units per ), or bar-based (price step = bar range).
Display angles
Number of Gann angles to display inside the box: 1×1 only, 1×1 + 2×1 + 1×2, or full set (up to 8×1/1×8).
Extend 1×1
Project the 1×1 diagonal line beyond the box to the chart edge for ongoing trend analysis after the box is completed.
Fill
Fill the box area with a configurable color and to visually distinguish the square region.

How to Draw (2 clicks)

Price ½Time ½Top1×1 (45°)Price = TimeStartTargetGann Box — time and price squared
The box squares price range with time. The 45° diagonal (1×1 line) is the primary angle; price above it is strong, below it is weak.
2×1 angle 1×1 (45°) 1×2 angle 3×1 / 1×3 1×2 horizontal Square boundary
  1. 1
    Set the origin
    Click a significant swing low (in an uptrend) or swing high (in a downtrend). This becomes the bottom-left corner of the box in an uptrend, or top-left in a downtrend.
  2. 2
    Set the target
    to define the price and time span. The box auto-squares to make equal height, with the 1×1 diagonal running through the origin to the opposite corner.
★
Pro tip:The most reliable Gann Boxes start from major pivots on weekly or monthly charts. A box on an insignificant bar has little predictive . The longer the timeframe, the more meaningful the square relationship. A monthly box can project support and resistance for years into the .

Key Levels & Math

The box is a perfect square: = . The 1×1 diagonal connects the origin to the opposite corner. Its slope is exactly 1 on an arithmetic chart (one unit of price per one unit of time). The box can be divided into fractions:

1×1 line (45°)
The primary diagonal from the origin to the opposite corner. Represents perfect price-time balance. The most line in the box.
Price ½ line
at 50% of the . Acts as support/resistance within the box. Price often pauses here before continuing to the opposite edge.
Time ½ line
at 50% of the . Price often reacts at this temporal midpoint — a "half-time" .
2×1 line
Line rising twice as fast as the 1×1. Connects the origin to the midpoint of the top edge. Indicates strong upward momentum.
1×2 line
Line rising half as fast as the 1×1. Connects the origin to the midpoint of the edge. Indicates slowing momentum.
Box corners
The four corners of the square. The top edge and edge act as projected target after the box completes. The opposite corner is the "square-out" .

How Price Behaves at Levels

Price ½Time ½Top1×1 (45°)Price = TimeStartTargetGann Box — time and price squared
Price respects the 1×1 diagonal and the box boundaries as dynamic support and resistance.
  • Price above the 1×1 line in an uptrend is in a strong position (bullish). Price below the 1×1 line is weak (bearish). The 1×1 line is the "line of balance."
  • The top and edges of the box act as projected support and resistance after the box is fully formed. A close beyond the top edge signals continuation of the trend.
  • A break through the 1×1 line signals a change in the trend's velocity — the market is no longer in balance. This is Gann's primary reversal signal and the most actionable signal in the box.
  • Time ½ and Price ½ lines divide the box into quadrants that often produce reactions. Price frequently pauses at these midpoints before continuing to the opposite corner.
  • When price reaches the opposite corner of the box at exactly the same time as the box completes (a perfect "square-out"), it is Gann's -probability reversal signal. This is called a "squaring of price and time."

Trading Strategies

1×1 (trend-following): In an uptrend, enter when price pulls back to the 1×1 line and shows a bullish rejection candle (, engulfing, pin bar). Place the stop just below the 1×1 line by 0.5–1.0%. The initial target is the top or edge of the opposite side of the box. This is Gann's simplest and most reliable trend-following .

Box breakout (momentum): When price breaks through the top edge of the box (uptrend) or the bottom edge (downtrend), the move often accelerates. Enter in the breakout direction with a stop at the box edge. The height of the box (the range) can project the first target beyond the box: add the box height to the breakout level.

Square-out reversal (high probability): When price reaches the opposite corner of the box at the same bar where the time completes (perfect square-out), prepare for a reversal. Place a pending order in the opposite direction with a stop beyond the corner. This is Gann's most famous trade setup and the signal he used for his most profitable .

!
Caution:Gann tools are esoteric and highly subjective. Different practitioners draw vastly different boxes from the same . Never risk capital solely on a Gann Box signal — always require confirmation from price action or conventional technical indicators. The box provides context, not certainty.

Real-World Example: Applying the Gann Box

Imagine a stock rallies from $100 ( A) to $150 (Point B) over 50 days. Draw the Gann Box from $100 at day 0 to $150 at day 50. The box height is $50 and the box is 50 days — a perfect square. The 1×1 line runs from ($100, day 0) to ($150, day 50). If price pulls back to the 1×1 line at day 25 at a price of $125, the 1×1 would a buy entry. The target is the top edge of the box at $150 (the original high) or beyond.

If price breaks above $150 on day 30 (before the box completes on day 50), this is a premature breakout — the box was not fully formed. The height of the box ($50) projected above the breakout gives a target of $200. If instead price reaches $150 exactly on day 50, this is a perfect square-out, and Gann would anticipate a sharp reversal.

Combining with Other Tools

The Gann Box can be combined with other Gann tools and conventional analysis:

  • : Overlay a on the same origin as the box. The fan angles should align with the box's internal diagonals. Divergence between the two indicates an unreliable box or incorrect scale.
  • Fibonacci retracements: When a Fibonacci level from the box's coincides with the Price ½ or Time ½ line, the confluence zone is strengthened significantly.
  • S/R: The top and bottom edges of the box often align with prior swing . If the box edge lands on a known S/R level, it is more significant as a target or stop level.
  • Volume analysis: Decreasing volume as price approaches the opposite corner suggests the move is exhausting. Increasing volume through a box edge confirms the breakout. Volume validates the box's signals.
  • Moving averages: When the 1×1 line crosses a key (e.g., 50-day SMA), the intersection is a significant . The moving average provides time-domain confirmation of the box's price-time balance line.

Algorithmic Implementation

The Gann Box requires computing a perfect square in price-time space and projecting the 1×1 diagonal. The implementation must handle the geometric relationship between price and time consistently across different chart scales.

Box geometry computation: Given origin (x₀, y₀) and target (x₁, y₁), compute the R_price = |y₁ − y₀| and R_time = x₁ − x₀. The square's side length S = max(R_price, R_time / scale_factor), where scale_factor normalizes time and price units (typically derived from the chart's pixels-per- and pixels-per-bar ratio). The box corners are: bottom-left = (x₀, y₀), bottom- = (x₀ + S, y₀), top-left = (x₀, y₀ + S), top-right = (x₀ + S, y₀ + S). The 1×1 line connects bottom-left to top-right for an uptrend box.

Square-out detection: On each new bar, compute the distance from the current price to the opposite corner of the box. A square-out occurs when the reaches x₀ + S (the edge of the box) and the current price is within 0.5× of y₀ + S (the top edge of the box). Generate a "square-out " when both conditions are met within a 2-bar . The square-out is Gann's primary reversal signal: it means price and time have completed a full cycle from the origin.

Box breakout : Track price relative to the box boundaries. A close above the top edge or below the bottom edge generates a breakout signal. The projected target beyond the box is: target = breakout_price + S × direction (where direction is +1 for upside, −1 for downside). The breakout is valid when accompanied by volume above the 20-bar average and the close is beyond the edge by more than 0.3× .

Risk Management & Position Sizing

The Gann Box provides , geometrically-defined stop and target levels. Position sizing can be directly derived from the box's dimensions.

Box-based stop placement: For a long entry at the 1×1 line , place the stop 0.5× below the 1×1 line or 0.3× the box height, whichever is smaller. For a breakout entry above the box top, place the stop 0.5× ATR below the top edge. The box's geometric structure provides stop locations — the 1×1 line (for trend ) and the box edges (for breakout trades). Do not place stops inside the box (between the edges), as price often retraces within the box during normal oscillations.

Box-height position sizing: Compute position size using the box height as the volatility . Risk per trade = account_equity × risk_percentage. = box_height × stop_factor. Position size = risk_per_trade / (stop_distance × tick_value). Set stop_factor to 0.3 for 1×1 line bounces (tighter stop) and 0.5 for breakout (wider stop to accommodate the breakout bar's range). This position sizing approach automatically adjusts for the box's volatility: a taller box means wider stops and smaller positions.

box expiry: A Gann Box has a expiration date: the bar where the box completes (the edge). If price has not reached the opposite corner by the time the box expires, the box's has failed. Close all box-based positions at or before the box's completion bar. Do not extend the box beyond its natural boundaries — if the trend is still active, draw a new box from the current price level. This prevents holding onto an expired geometric projection.

Psychology & Discipline

The Gann Box requires trust in geometric relationships that may seem arbitrary to traders who are accustomed to conventional technical analysis. The discipline to follow the box's signals despite skepticism is the key psychological challenge.

The "why 45°?" skepticism: New Gann Box users often question why the 1×1 line at 45° has significance. The answer lies in Gann's concept of price-time equivalence — the 1×1 represents perfect balance. The discipline required is to accept this premise and trade the 1×1 and 1×1 break signals without second-guessing the geometry. Do not rationalize away a 1×1 break because "the are still bullish." The 1×1 line is the market's vibrational equilibrium, and a break of it is a structural change regardless of the news.

The "perfect square obsession": Traders often spend excessive time adjusting the box to make it perfectly square — adjusting the origin by a few bars here or there until the 1×1 line perfectly catches every swing. This over- destroys the tool's predictive . Set the anchors on a swing pivot and accept the box as drawn. A box that is 95% correct is better than one that has been retrofitted to 100% perfection through . The box should project forward, not explain the past.

Advanced Variations & Customizations

The Gann Box can be customized and for specialized analytical applications. Several variations build on the core square geometry.

Multi-box sequences: After the first box completes (price reaches the opposite corner), draw a new box from that corner to the next extreme. This creates a chain of boxes, each connecting the previous box's completion to the next major swing. The chain of boxes maps the market's complete price-time history into a series of geometric squares. The relationship between consecutive box sizes — whether they are equal, growing, or shrinking — reveals the market's cycle expansion or contraction over time. A sequence of shrinking boxes suggests the trend is maturing.

Box diagonal extensions: Extend the 1×1 diagonal beyond the box to create a "1×1 price-time ray" that projects the equilibrium line indefinitely. This 1×1 line becomes a support/resistance line that continues to be relevant long after the box itself has expired. Many Gann practitioners consider the extended 1×1 line from a major pivot box to be the single most line on their charts — it defines the secular trend's equilibrium. The extended 1×1 should be updated with a new box every 2–3 boxes to keep the line calibrated.

Multi-Timeframe Application

Gann Boxes on higher timeframes (weekly, monthly) define the major price-time squares. Daily boxes are "sub-squares" within the larger structure. A daily square-out that occurs inside a weekly square is more significant than a daily square-out that occurs without a larger context.

Square nesting: Draw a Gann Box on the weekly chart from a major low. This defines the dominant price-time relationship. Within this weekly box, draw daily boxes from secondary swings. Where the daily box's 1×1 line intersects the weekly box's 1×1 line, you have a "time-price square" across two timeframes — a very rare and powerful confluence.

box ratios: A daily box that is exactly 1/4, 1/2, or 3/4 the size of the weekly box represents a sub- of the dominant cycle. These sub-harmonic boxes often produce the most reliable signals because they align with the larger cycle's subdivisions. A square-out in a 1/2-size sub-box is particularly significant.

Common Pitfalls

!
Caution:The biggest mistake is a Gann Box that looks correct after the fact. Do not overfit — pick a swing origin and stick with it. Moving the origin to fit recent price action destroys predictive and introduces hindsight bias. The box should be placed and then evaluated forward, not adjusted to fit what has already happened.
!
Caution:The 1×1 angle works on linear (arithmetic) charts only. On log-scale charts, the 45° angle does not represent a unit-to-unit price/time relationship. Always switch to arithmetic scale when using Gann tools. This is a critical and frequently overlooked requirement that invalidates the entire analysis if ignored.
!
Caution:The box scale (how many price units per time unit) is adjustable. If the box looks too tall or too wide for the price action, adjust the scale setting rather than forcing the anchors into an unnatural position. A proper Gann Box should look like a balanced square on the chart. An excessively tall or wide box is a that the scale is incorrect.
ℹ
Note:Gann Boxes are best used on daily, weekly, and monthly charts. On intraday charts, the noise-to-signal ratio is too high and the squares become too to be meaningful. The box requires a , clean swing to define its origin and target.

Market Regime Analysis

The Gann Box assumes a balanced relationship between price and time. Different market regimes affect this balance and the box's .

Balanced trend (price = time relationship stable): The box works perfectly. Price respects the 1×1 line, and square-outs occur at predictable intervals. This is the ideal regime for the Gann Box. The box provides accurate support, resistance, and reversal timing. This regime occurs most frequently in -cap indices and liquid currency pairs on daily timeframes.

Volatile trend (price outrunning time): Price breaks through the top of the box before the time completes. The 1×1 line is broken to the upside, indicating strong momentum. In this regime, reduce the box's time expectations — price may reach the square-out condition faster than the original time . The box's height can project a new, larger box.

Slow / congested market (time outrunning price): Price stalls before reaching the opposite corner of the box. The 1×1 line is broken to the downside (in an uptrend). This indicates a decelerating trend or approaching reversal. The box may need to be resized with a new origin that better fits the slower . Congested markets produce unreliable box signals.

References & further reading

  • 1.How to Make Profits in Commodities — W.D. Gann (1942)
  • 2.The Tunnel Thru the Air — W.D. Gann (1927)
  • 3.Gann Square Box — StockCharts ChartSchool
  • 4.Gann Box drawing tool — TradingView Help
  • 5.Gann's Scientific Methods Unveiled — Betty Long
  • 6.Technical Analysis of Financial Markets — John J. Murphy (1999)

Related articles

  • Gann Grid

    Charts / Drawing Tools / Gann

    A repeating lattice of 1×1 lines from a pivot. Where the Gann Fan asks what slope a market is advancing at, the grid asks where the 1×1 from every pivot…

  • Gann Square

    Charts / Drawing Tools / Gann

    A dynamic Gann square that responds to price and time in real-time. As price unfolds, the square continuously adjusts its geometry to maintain a true…

  • Gann Fan

    Charts / Drawing Tools / Gann

    A family of nine rays radiating from a pivot point at fixed geometric angles. The 1×1 (45°) angle is the centrepiece — above it price is strong, below it…

  • Gann Square Fixed

    Charts / Drawing Tools / Gann

    A static Gann square with a predetermined grid size. The fixed square projects all major Gann angles from a pivot point and keeps them locked to the same…

  • Gann Square of 144

    Charts / Drawing Tools / Gann

    Gann's Master Calculator: 144 units of time by 144 units of price, divided in eighths and thirds, with the 1×1 angles drawn from the corners. The time side…

  • Gann Square of 9

    Charts / Drawing Tools / Gann

    Price projections taken around Gann's numeric wheel. Levels are spaced evenly in the square root of price, so they widen as price rises — the behaviour…

  • Gann Time Cycles

    Charts / Drawing Tools / Gann

    Vertical lines at Gann's natural time counts from one pivot. The counts are absolute — 30, 45, 90, 144, 180, 360 — not fractions of a prior swing, which is…

  • Gann Wheel (360°)

    Charts / Drawing Tools / Gann

    The Square of Nine drawn as what it physically is: a spiral wound round a centre, cut by the cardinal and ordinal crosses. Rings are turns; spokes are…

  • Fib Speed Resistance Arcs

    Charts / Drawing Tools / Fibonacci

    Half-circle arcs drawn from a price swing at Fibonacci ratios — blending time and price into curved dynamic support and resistance zones that adapt as each…

Browse all knowledge base articles →