Featured Gann Methodology Swing Chart Analysis PRO Available Now

Original Gann
Swing Chart Rules

Developed by Amit — Lead Developer & Market Strategist at AlgoFuego

An advanced indicator built on W.D. Gann's original swing chart rules — enhanced with innovative mechanical trend-following methods to deliver structured, noise-free market analysis and precise swing point detection on any timeframe.

"The person watching the tide coming 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."

— W.D. Gann · Wall Street Stock Selector, Page 15
4.8 1,971 ratings 12,835 active users
TradingView
All Timeframes
Updated: Apr 2025
English
Monthly
Annual −37%
$99 $59 / month Save 40%
This indicator is included in the Full Library subscription — one price unlocks access to all 6+ indicators.
Instant TradingView access after payment
All 6+ indicators included
Lifetime updates during subscription
Priority 24/7 support
Subscribe — $59/month
7-day money-back guarantee — not satisfied? Full refund, no questions asked.
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
ATR ActivatorVolatility-Based Filter
Bar CounterCycle Duration Tracking
7 DaysMoney-Back Guarantee
Overview
Features
How to Use
Specifications
FAQ

The 8 Core Rules of Gann Swing Analysis

Built on Gann's foundational belief that market movement follows a wavy, fractal nature — mirroring the tides. All signals arise from strict application of 8 rules that separate meaningful price movement (trend bars) from market noise (hidden bars).

Rule 1: Trend Bar is Everything
Rule 2: Track New Highs & Lows
Rule 3: Hidden Bar is Nothing
Rule 4: Market Has Wavy Nature
Rule 5: Slope = Immediate Direction
Rule 6: Swing Points Defined
Rule 7: The Golden Rule
Rule 8: Closing Price Logic
Golden Rule: Compare new bar only with the last trend bar — ignore all hidden bars
Indicator Highlights
Trend LevelsMain Trend + Primary Trend
Reversal Models3 Bullish + 3 Bearish
Outside Bar Rules8 Rules — All Scenarios Covered
Supported TimeframesAll Timeframes

What is the Original Gann Swing Chart Rules Indicator?

Inspired by W.D. Gann's personal words in Wall Street Stock Selector, this indicator transforms his swing chart methodology into a precise algorithmic framework for TradingView. Unlike standard indicators that react to every price bar, this tool focuses exclusively on trend bars — bars forming new highs or lows — while completely filtering out all non-trend (hidden) bars.

What does it identify?

  • Peaks and Valleys (swing highs and lows) on both main and primary trend levels
  • Trend reversals with 3 bullish and 3 bearish reversal models
  • Breakouts above previous peaks and breakdowns below previous valleys
  • 8 outside bar patterns for complete reversal and continuation detection
  • Fractal market structure — rising waves and dropping waves across all timeframes

The Golden Rule

The entire indicator is engineered around one fundamental principle: "Ignore all non-trend bars and compare the new bar only with the previous trend bar." This keeps analysis clean and noise-free, reflecting only the true directional intent of the market.

Core Method
Gann Swing Chart
Signal Basis
Trend Bars Only
Swing Points
Peaks & Valleys
Outside Bar Rules
8 Complete Rules

Full Swing Analysis Toolkit Included

Subscribers unlock the complete indicator suite — main trend, primary trend, ATR Activator, Moving Average Activator, Bar Counter, Current Bar Mark, and multi-timeframe tables — all with full alert and customization support.

Monthly Plan
All indicators · Cancel anytime
$59/mo
Annual Plan BEST VALUE
Save 37% vs monthly
$449/yr
Get Access Now
Trend Levels
2
Main · Primary
Outside Bar Rules
8
All Scenarios Covered
Markets
All
Forex · Crypto · Stocks
Pine Script
v6
Latest version

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
Golden Rule Application

Implements Gann's core principle with strict algorithmic precision: every new bar is compared exclusively with the last trend bar, completely ignoring hidden bars. Produces noise-free swing analysis that reflects only true market direction — especially effective in ranging conditions.

Main & Primary Trend Layers

Simultaneously tracks two structural levels — the main trend for tactical entries and the primary trend for strategic direction. Each level has independent trendlines, alerts, peak/valley markers, breakout points, and full visual customization with no interference between layers.

8 Outside Bar Rules

Applies a complete set of 8 rules for outside bars — bars that exceed both the high and the low of the previous bar. Each rule precisely determines the resulting slope direction and swing point formation, covering every possible outside bar scenario without ambiguity.

6 Reversal Models

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

Fractal Market Structure

Visualizes rising waves (bull markets between turning points) and dropping waves (bear markets between turning points) at both the main and primary trend levels — making the full fractal nature of market structure visible and tradable on any timeframe.

Moving Average Activator

Calculates moving averages exclusively from closing prices of trend bars — the only bars Gann considered meaningful. Values update only when new highs or lows occur, making this MA significantly more informative than standard MAs in low-volatility or ranging markets.

ATR Activator

A volatility-based trend filter built on Moving Average Activator data — calculated only from trend bars. Functions like a Super Trend but with filtered inputs, reducing false signals in choppy conditions. Multi-timeframe ATR table available with full display customization.

Bar Counter

Tracks the number of bars since the last trend change for main and primary trends independently. Enables statistical research on cycle duration per asset — discovering, for example, that a primary trend lasting more than 20 bars has a high continuation probability.

Current Bar Mark Summary

Summarizes all active rules for the current bar in real time: trend condition, primary and main direction, position relative to the MA Activator and ATR Activator. Enables instant situational awareness — "this bar is above both activators in an upward primary and main wave."

Custom Alert System

Individual configurable alerts for peak completion, valley completion, main and primary trend reversals, trend continuations, and breakout/breakdown events. Set only the notifications relevant to your active strategy — no alert noise from unused signal types.

Multi-Timeframe Tables

Built-in multi-timeframe analysis tables for both ATR Activator and Moving Average Activator. See the trend state across multiple timeframes simultaneously with full control over table position, size, and frame colors for clean integration into any chart layout.

Dynamic Customization

Every element is adjustable: trendline styles, colors and slopes, peak/valley marker sizes and colors, candle coloring by trend state, tooltip language selection, and individual label visibility — adapting precisely to every trading style and chart preference.

1
Configure Settings & Choose Your Trading Approach

Adjust indicator settings to match your trading style and market conditions. Choose between trading with the primary trend (best for longer-term stability), trading reversals at turning points (requires confirmation), or trading breakouts above peaks and below valleys. Each approach requires different alert and visualization configurations.

2
Analyze the Chart Structure

Apply the indicator to your TradingView chart and observe both the main and primary trend layers simultaneously. Study the swing points — peaks and valleys — and how they connect to form rising waves (bullish) and dropping waves (bearish). Check whether similar signals produced consistent results in past market conditions before committing to a strategy.

3
Trade with the Primary Trend

The primary trend is your highest-level directional filter. Always align trades with its direction and avoid counter-trend entries against strong primary momentum. Use primary trend breakout points — above the previous peak for bullish, below the previous valley for bearish — as your strategic trigger levels.

4
Identify Entry Signals with Confirmation

Wait for clear signals — a confirmed breakout above the previous peak in an uptrend, or a confirmed breakdown below the previous valley in a downtrend. Combine main trend signals with the ATR Activator and Moving Average Activator state shown in the Current Bar Mark for multi-layer confirmation before entry.

5
Apply Risk Management

Place stop-loss orders at the most recent valley (for longs) or the most recent peak (for shorts) — these swing points define the structural invalidation level of your trade. Risk only a small percentage of capital per trade, and use the Bar Counter to assess trend maturity before sizing positions aggressively.

6
Confirm with Multi-Timeframe Analysis

Use the built-in ATR Activator and MA Activator tables to view trend direction across multiple timeframes simultaneously. Entries where the higher timeframe confirms the signal direction carry significantly higher probability of success and should be prioritized over single-timeframe setups.

7
Execute and Monitor the Trade

Once all criteria are met, enter the trade and activate the relevant alerts — peak/valley completion alerts for reversal traders, breakout alerts for momentum traders. Monitor market conditions throughout and use trailing stops based on emerging swing points to protect profits while allowing for continued trend gains.

8
Implement Exit Strategy

Plan your exit in advance and adhere to it. For trend trades, exit when a new peak breaks down (for longs) or a new valley breaks out (for shorts) — these events signal structural reversals. Consider partial exits at intermediate swing points to secure profits while remaining positioned for the full primary trend move.

9
Review and Refine Performance

Document every trade with the indicator signals, swing points, entry/exit context, and Bar Counter values at the time of entry. Over time, analyze which reversal models perform best on your specific markets, which signal combinations produce the most reliable outcomes, and how primary trend duration relates to trade quality. Build a data-driven, repeatable edge from this research.

Platform
TradingView
Language
Pine Script v6
Timeframes
All Timeframes
Assets
Forex, Crypto, Stocks, Commodities
Trend Levels
Main & Primary
Reversal Models
3 Bullish · 3 Bearish
Outside Bar Rules
8 Rules
Alert Types
Peak · Valley · Breakout · Reversal
MA Activator
✓ Trend Bars Only
ATR Activator
✓ Built-In
Updates
Lifetime (active subscription)
Latest Version
Apr 2025
Settings Modules

What You Can Configure

Main Trend Settings

Toggle trendline visibility and set alerts for peaks, valleys, turning points, and breakouts. Adjust line styles, colors, and slopes for upward/downward directions independently. Customize peak/valley marker size and color, and configure breakout/breakdown point appearance.

Primary Trend Settings

Identical configuration options to the main trend but tracking the higher-level primary structure. Independent alerts for primary trend peaks, valleys, turning points, and breakouts allow the primary trend to function as a separate strategic signal layer.

Activators & Bar Tools

Configure the Moving Average Activator period and alert conditions. Enable the ATR Activator with customizable multiplier. Set up the Bar Counter for main or primary trend tracking. Choose whether to display the Current Bar Mark summary with full size and style options.

Visualization & Display

Control tooltip visibility and language selection for labels. Customize candle and bar coloring by algorithm-determined trend direction. Manage multi-timeframe table positions, sizes, and frame colors for both ATR and MA Activator tables independently.

Important Disclosure

Original Gann Swing Chart Rules [AlgoFuego] is a technical analysis and research tool — not a guaranteed profit system. While the indicator provides meaningful insight into market structure and trend direction, past performance is not indicative of future results. Market conditions are also shaped by fundamental developments and external events that purely technical systems do not account for. Always apply sound risk management practices.

What makes this different from other Gann indicators on TradingView?
Most Gann-labeled indicators on TradingView apply price-based tools — fan lines, squares, or grids. This indicator focuses exclusively on Gann's swing chart methodology from Wall Street Stock Selector: classifying bars into trend bars and hidden bars, applying the Golden Rule to compare only trend bars, detecting peaks and valleys with structural precision, and handling all 8 outside bar edge cases. It includes two independent trend levels, the ATR Activator, Moving Average Activator, Bar Counter, Current Bar Mark, and multi-timeframe tables — a complete mechanical implementation of Gann's swing analysis, not just a visual overlay.
What is the Golden Rule and why is it the foundation of the indicator?
The Golden Rule is Gann's core principle: ignore all non-trend bars (bars that do not create a new high or new low) and compare each new bar only with the last trend bar. This eliminates market noise and ensures every signal — every slope change, every peak, every valley — is based on meaningful price action. In practical terms, it makes swing point detection far more reliable, particularly in ranging or low-volatility conditions where standard indicators produce excessive false signals.
What is the difference between the main trend and the primary trend?
The main trend tracks the immediate swing structure — the most recent peaks and valleys forming the current directional move. The primary trend tracks the higher-level market structure — the broader rising or dropping wave between major turning points. In practice, use the primary trend as a strategic filter: only take main trend signals that align with the primary trend direction. A breakout above a main trend peak while the primary trend is upward is a high-probability setup; the same breakout against a downward primary trend is counter-trend and should be avoided or traded with tighter risk.
What are outside bars and why do they need 8 specific rules?
An outside bar simultaneously exceeds the high and the low of the previous bar — creating an ambiguous situation where both bulls and bears have achieved new extremes in the same bar. Standard swing chart logic cannot handle outside bars without additional rules. This indicator applies 8 specific outside bar rules that determine, based on current slope direction, the closing price sequence (bearish: open → high → low → close; bullish: open → low → high → close), and the relationship to the previous trend bar, exactly which direction the slope takes and whether a new swing point is formed — covering every possible scenario.
How does the ATR Activator differ from a standard SuperTrend?
A standard SuperTrend is calculated from all bars — including hidden bars that carry no directional significance according to Gann. The ATR Activator is built on the Moving Average Activator, which itself only uses trend bars. This means the volatility measurement and band calculation reflect only meaningful price movement, filtering out the noise that causes standard SuperTrend to generate excessive false signals in ranging markets. In a strongly trending market the difference is minor; in a choppy or ranging market it becomes significant.
Can I use this on any timeframe and any market?
Yes — this indicator works on all timeframes and all markets available on TradingView, including Forex pairs, cryptocurrency, equities, indices, and commodities. The swing chart methodology is fractal by nature, meaning the same 8 rules apply equally on any timeframe. Many traders apply it on multiple timeframes simultaneously — using the daily chart for primary trend direction and the 1-hour chart for main trend entry signals.
Is this a subscription or a one-time purchase?
Subscription-based: $59/month or $449/year (saving 37%). Both plans include access to the full AlgoFuego indicator library — not just the Gann Swing Chart Rules indicator. All updates during your active subscription are included at no additional cost, along with priority 24/7 support.
What is the money-back guarantee?
A 7-day money-back guarantee applies from the date of purchase. If you are not satisfied with the indicator for any reason within that window, contact our support team and a full refund will be issued — no conditions and no questions asked.
Related Indicators

Also in the Library

All indicators below are included in your subscription at no additional cost.

$59 / month
Subscribe Now
!
Important Notice
Risk Disclosure & Responsibility
Trading financial markets involves substantial risk and may not be suitable for all investors. AI-generated signals do not guarantee results. Past performance is not indicative of future results. You are fully responsible for your trading decisions. Only trade with capital you can afford to lose.