W.D. Gann · AlgoFuego · Swing Chart Indicator

The Market Is a Tide. Put a Stick
in the Sand.

Original Gann Swing Chart Rules [AlgoFuego]

The person watching the tide coming, wanting to pinpoint the exact spot that signals the high tide, places a stick in the sand at the points where the incoming waves reach until the stick reaches a position where the waves no longer rise, and eventually recedes enough to show that the tide has shifted.
This method is effective for monitoring and identifying tides and floods in the stock market.

Read the rules
Tide & Wave Theory
Trend Bar
Hidden Bar
The Golden Rule
Peaks & Valleys
8 Outside Bar Rules
Main & Primary Trend
7-Day Guarantee
I
The Foundation

He Didn't Describe It.
He Proved It.

In Wall Street Stock Selector, Gann pointed to an actual monthly chart of the Dow Jones Industrial Average, walked through it month by month, and showed exactly how a single bar in March 1926 set up a reversal that wouldn't confirm until June of the following year.

"

This was only one month's reaction the same as March 1925. The market held in a dull narrow range for about 2 months while accumulation was taking place and in June the main trend turned up again.

W.D. Gann · Wall Street Stock Selector, Page 15
1930
That "stick in the sand" is the entire idea behind the indicator. Every bar that pushes water further up the beach — a new high or a new low — gets a mark. Every bar that doesn't reach the last mark is ignored completely.
II
The Method

8 Pure Rules. One Tide.
No Guesswork.

Gann never left his swing chart method to interpretation. He defined exactly which bars matter, exactly how slope is determined, and exactly where a peak or a valley is confirmed. We translated every one of those rules into a strict algorithmic framework — including the trickiest case of all: the outside bar.

From Trend Bar
to the Golden Rule.

Rule 1
Trend Bar Is Everything
A bar that creates a new high, a new low, or both — the only bar that matters.
Rule 2 & 3
Hidden Bar Is Nothing
Bars that fail to make a new high or low are structurally invisible — completely ignored.
Rule 4 & 5
Slope = Direction
The market has a wavy nature; slope is the immediate direction of the current swing.
Rule 6
Peaks & Valleys
The start and end of every swing — the exact turning points of the tide.
The seventh rule is the one Gann called the Golden Rule: ignore every non-trend bar and compare each new bar only with the last confirmed trend bar. The eighth governs how a bar's open-high-low-close sequence resolves direction when the picture isn't obvious. Together, these eight rules — plus a complete set of 8 outside bar scenarios — leave nothing to subjective chart reading.
Dow Jones Industrial Average · Monthly · TVC — as referenced on Page 15
Mar 1925 Jun 1926 Hidden bars Monthly March 1926 June 1926
"

Read that quote again. It’s not an opinion or a narrative, it’s a mechanical classification of what the market was doing. For months, price action simply “held in a dull, narrow range.” Then, the moment that range was broken, Gann’s assessment changed immediately and without ambiguity: “in June, the main trend turned up again.”

W.D. Gann · Wall Street Stock Selector, Page 15
1926
IV
The Mechanism

A New High. A New Low.
A Confirmed Swing.

The engine is elegant precisely because it refuses complexity. Every bar is tested against a single question — did it extend the tide? If yes, the stick moves. If no, the bar is discarded. Out of that repeated test, peaks, valleys, and full trend structure emerge.

1
Test Every New Bar

Each bar is compared against the last confirmed trend bar. Did it print a new high above it, or a new low below it? Gann: "The trend bar is everything — this is the only bar that matters."

2
Discard the Hidden Bars

Any bar that fails the test is a hidden bar — filtered out entirely. It plays no role in slope, swing points, or trend direction. This single filter is what removes market noise.

3
Apply the 8 Outside Bar Rules

When a single bar exceeds both the prior high and low at once, slope direction is resolved using the bar's open-to-close sequence — bearish bars run Open→High→Low→Close, bullish bars run Open→Low→High→Close.

4
Confirm the Swing Point

The instant the slope reverses, the prior extreme is locked in as a Peak or a Valley — the stick that marks exactly where the tide turned. Main and Primary trend layers confirm independently.

Gann Golden RuleIgnore Non-Trend Bars
Trend Bars OnlyNew Highs & Lows
Peaks & ValleysPrecise Swing Points
8 Outside Bar RulesAll Reversal Scenarios
Main & Primary TrendFractal Structure
6 Reversal Models3 Bullish · 3 Bearish
ATR ActivatorVolatility-Based Filter
Bar CounterCycle Duration Tracking
Pine v6Latest Version
7 DaysMoney-Back Guarantee
V
The Signal

Tide Turns.
Signal Fires.

The logic flows in one direction: structure drives everything. The moment a new trend bar breaks the previous Peak or Valley, a reversal or continuation is confirmed — not after price "feels" different, but precisely when the stick in the sand says the tide has shifted.

New Bar
Tests Last Trend Bar
Golden Rule comparison
Breaks Valley
Prior High Exceeded
Slope confirms upward
Reversal Model
Rising Valley
Bullish structure confirmed
LONG
Breakout alert · New Valley marked
Stop bellow last confirmed Valley

Two Trend Layers. One Tide.

The Main Trend reacts to the immediate swing. The Primary Trend filters for the larger structural wave. Both run from the exact same 8 rules — only the sensitivity to noise differs.

Tactical · Immediate
Main Trend

Tracks the most recent swing structure bar by bar. Confirms Peaks and Valleys quickly, giving the earliest possible read on a potential reversal — ideal for tactical entries and tight risk control.

Strategic · Structural
Primary Trend

Filters the Main Trend's swings further, confirming only the larger directional wave. Acts as the strategic filter — Main Trend signals aligned with the Primary Trend carry far higher reliability.

VI
The Patterns

Six Shapes.
One Tide Turning.

A swing point alone doesn't confirm a reversal — Gann required a specific structural relationship between the new swing and the one before it. There are exactly three ways a Valley can give birth to a bullish reversal, and three ways a Peak can give birth to a bearish one.

Three Ways a Valley Confirms an Uptrend

V1 V2
Dropping Valley

The new Valley (V2) prints lower than the previous Valley (V1) — yet the very next trend bar breaks back above the prior Peak. The deeper low is absorbed and reversed.

V1 V2
Equal Valley

The new Valley (V2) lands at essentially the same level as the previous Valley (V1) — a double-bottom structure. Confirmation comes once price clears the intervening Peak.

V1 V2
Rising Valley

The new Valley (V2) prints higher than the previous Valley (V1) — the clearest signature of building demand. Once the prior Peak breaks, the uptrend reversal confirms with the highest structural conviction.

Three Ways a Peak Confirms a Downtrend

P1 P2
Rising Peak

The new Peak (P2) prints higher than the previous Peak (P1) — yet the next trend bar breaks back below the prior Valley. The higher high is rejected and reversed.

P1 P2
Equal Peak

The new Peak (P2) lands at essentially the same level as the previous Peak (P1) — a double-top structure. Confirmation comes once price breaks the intervening Valley.

P1 P2
Dropping Peak

The new Peak (P2) prints lower than the previous Peak (P1) — the clearest signature of fading demand. Once the prior Valley breaks, the downtrend reversal confirms with the highest structural conviction.

Notice what all six models share: the new swing point alone never confirms anything. A Dropping Valley or a Rising Peak only becomes a reversal once the very next trend bar breaks the Peak or Valley standing between the two readings. Until that break happens, the indicator marks the pattern as "forming" — never "confirmed."
VII
The Engine

Not Just a Swing Chart.
A Complete Trend System.

The Golden Rule confirms the swing. Everything after — the Moving Average Activator, the ATR Activator, the Bar Counter, and the Current Bar Mark summary — runs automatically on top of it. You read the tide. The system manages the trade.

Original Gann Swing Chart Rules · Current Bar Mark
Live Statistics
Main TrendRising Wave
Primary TrendRising Wave
MA ActivatorPrice Above
ATR ActivatorBullish
Bars Since Last Reversal17
Last Confirmed Peak
Last Confirmed ValleyActive Stop Level
Outside Bar DetectedNo

Trend Bar Ratio (Illustrative)

Trend Bars Identified38%
Hidden Bars Filtered62%
Primary / Main Alignment81%

Statistics are illustrative. The Current Bar Mark updates live as new trend bars and outside bar scenarios are confirmed.

Golden Rule Application

Every new bar is compared exclusively with the last confirmed trend bar — all hidden bars ignored entirely. Produces noise-free swing analysis that reflects only genuine market direction, especially effective in ranging conditions.

8 Outside Bar Rules

A complete rule set for bars that exceed both the prior high and low simultaneously. Each rule precisely resolves the resulting slope direction and whether a new swing point forms — no ambiguous cases left unhandled.

6 Reversal Models

Three bullish models — Dropping Valley, Equal Valley, Rising Valley — and three bearish models — Rising Peak, Equal Peak, Dropping Peak — each pinpointing the exact structural formation that precedes a confirmed trend change.

Moving Average Activator

Calculated exclusively from the closing prices of trend bars — the only bars Gann considered meaningful. Updates only on new highs or lows, making it materially more informative than a standard MA in choppy markets.

ATR Activator

A volatility-based trend filter built on Moving Average Activator data, so it inherits the same noise reduction. Functions like a SuperTrend but with filtered inputs — fewer false flips in ranging conditions.

Bar Counter & Current Bar Mark

Tracks bars since the last trend change on both Main and Primary layers, and summarizes all active rules for the current bar in one glance — direction, activator state, and trend alignment, instantly.

VIII
Two Layers · One Tide

See the Difference
in Real Time.

Both layers read the same price action and apply the same 8 rules. What changes is how much noise they tolerate before confirming a swing. Toggle between them and watch how the same tide produces two distinct structural reads.

Main Trend
Main Trend

Every Swing.
Confirmed Immediately.

The Main Trend applies the Golden Rule directly to raw price bars. The instant a trend bar breaks the prior swing point, a new Peak or Valley confirms — fast, responsive, and tactical.

New Trend Bar Forms

A bar prints a new high or new low against the last confirmed trend bar — the Golden Rule comparison.

Slope Updates

The swing continues in the same direction — slope holds, no new marker required yet.

Swing Point Confirmed

Slope reverses — the prior extreme locks in as a Peak or Valley on the Main Trend layer immediately.

Sensitivity
High
Confirmation
Fast
Use
Tactical
Input Source
Raw price bars
vs
Main Trend swing points
Noise Tolerance
Minimal — reacts fast
vs
High — filters minor swings
Swing Frequency
Frequent
vs
Infrequent
Best For
Entries & timing
vs
Directional bias filter
The Full Library

One Subscription.
Every Indicator.
Including This One.

Original Gann Swing Chart Rules is part of the complete AlgoFuego library. One subscription unlocks all 6+ indicators — Astrology, Time Cycles, Radio Wave, MA-DNA, and every future addition. No individual purchases. No upsells.

Instant TradingView access after payment
All 6+ indicators · All timeframes · All assets
Lifetime updates during active subscription
Priority 24/7 support
7-day money-back guarantee · No questions
Monthly
Annual −37.5%
$50 / month
$40
per month · billed monthly
Save 20% vs list price
All 6+ AlgoFuego indicators included. One plan, the entire library.
Subscribe — $40/month Browse the full library
7-day money-back guarantee. Not satisfied for any reason — full refund.
$40 / month
Get Access