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 15Built 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).
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.
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.
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.
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 15Implements 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.
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.
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.
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.
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.
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.
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.
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.
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."
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
All indicators below are included in your subscription at no additional cost.