An advanced indicator inspired by W.D. Gann's original time cycle principles — transforming the ancient mathematics of cycle theory, harmonic analysis, and geometric sequences into a measurable, data-driven framework for modern traders.
"When time is up, the trend changes."
— W.D. Gann · The Tunnel Thru the Air, 1927This indicator is built upon Gann's core belief that time — not price — is the primary driver of market movement. All signals originate from time-cycle mathematics anchored to historical events, with no dependency on price levels or momentum indicators.
Inspired directly by Gann's legendary work The Tunnel Thru the Air; Or, Looking Back from 1940, this indicator transforms the ancient principles of cycle theory, vibration law, and harmonic analysis into a structured, data-driven framework for modern technical analysis. Unlike conventional indicators that react to price, this tool treats time as the cause and price as the effect — identifying precise future reversal zones before price confirms them.
The default settings encode Gann's own documented cycle from The Tunnel Thru the Air: starting May 9, 1927 (the book's foreword date) with a 1,940-day cycle ending August 30, 1932 — Gann's predicted period of global turmoil. The principle: Days = Years = Degrees. This equivalence allows the same mathematical framework to forecast turning points across any time horizon.
Subscribers gain full access to the built-in cycle performance panel — showing win rate, returns per cycle, compound equity growth, and the projected Next Turning Date — rendered directly inside the indicator on TradingView.
Mathematical science, which is the only real science that the entire civilized world has agreed upon, furnishes unmistakable proof of history repeating itself and shows that the cycle theory, or harmonic analysis, is the only thing that we can rely upon to ascertain the future.
— W.D. Gann · The Tunnel Thru the Air, Page 77Implements Gann's core principle that time governs all market movement. Reversal signals are triggered exclusively by cycle completion mathematics — anchored to a historical starting date — with no reliance on price levels or momentum.
Switch between Angle Positions Mode — trading between defined geometric degree ranges (e.g., 0° → 120°) — and Fractional Cycle Mode, which generates signals when rising or falling wave phases reverse direction within the cycle structure.
Select any historically significant event — a market top or bottom, a war, a financial crisis, or an astronomical occurrence — as the cycle's origin point. All future turning date projections flow mathematically from this single anchor, as Gann described: "get a correct base or starting point."
Plots both the complete cycle arc and its harmonic fractional subdivisions (½, ⅓, ¼, ⅕, and more), revealing major and minor turning point windows at every harmonic degree — mirroring Gann's "wheel within a wheel" cycle structure.
Projects the next probable reversal window based on current cycle settings and modular time arithmetic. This forward-dated forecast enables pre-planned entries and exits with time-based precision — directly implementing Gann's forecasting methodology.
Uses modular arithmetic to map time points into repeating intervals — like clock arithmetic wrapping past 12 — allowing the indicator to compute cycles anchored hundreds of years in the past or future, independent of visible chart bars. Enables analysis of 60-year, 100-year, or 1,000-year macro cycles.
Automatically calculates and displays per-cycle performance: total completed cycles, overall trend direction, return per cycle, min/max cycle returns, and expected end time of the current cycle — giving a complete statistical picture of historical cycle behavior.
Automatically generates visual entry, stop-loss, take-profit, and exit levels on-chart. Stop-loss and take-profit are percentage-based from the entry price, with full color and label-size customization from Tiny to Huge for clear trade structure visualization.
Model realistic trading costs with separate entry and exit commission percentages. All profit/loss calculations, win rates, and compound return figures in the performance table adjust automatically for accurate, non-inflated backtesting results.
Candles adapt automatically to cycle phase and trade state for instant visual clarity. The chart displays full cycle waves, fractional sub-waves, harmonic phase markers, and anchor reset points — making complex cycle structure immediately interpretable.
Enable or disable alerts independently for Entry signals, Exit signals, Stop-Loss hits, and Take-Profit hits. Configurable per event type so you receive only the notifications relevant to your current strategy and operating mode.
Every visual element — colors, line widths, label sizes, and visibility toggles — is fully customizable. Each setting includes an informative tooltip explaining its exact purpose, making the indicator accessible for beginners while offering the depth advanced Gann practitioners require.
This indicator is built exclusively for the 1-Day timeframe. Gann's cycle calculations are based on days as the fundamental unit — equivalent to degrees and years in his mathematical framework. Switch to the daily chart before applying the indicator to ensure accurate cycle computation via modular arithmetic.
Select a historically significant event as the cycle's origin — a major market top or bottom, a war, a financial crisis, or an astronomical event. Gann wrote: "In order to know and predict the future of anything you only have to look up what has happened in the past and get a correct base or starting point." The more significant the anchor, the more accurate your future projections. The default anchor is May 9, 1927 — the date from Gann's own documented cycle.
Set the number of days in one complete cycle (e.g., 360, 1940, or 2920 days). Gann used natural mathematical divisions where days, degrees, and years are interchangeable units. Try different lengths — starting with 360 (one degree per day) or 1940 (Gann's encoded cycle) — and observe which resonates most with your market's historical turning points.
Once active, the indicator draws the full cycle arc as a sinusoidal wave overlay on your chart. Rising phases represent the market's expansive vibration; falling phases represent contraction. Watch how historical price action tends to reverse as each wave completes — this visual alignment between cycle structure and price history is the foundation of Gann's Law of Vibration.
Cycle completion dates are your primary reversal zones. When the cycle reaches its end, the probability of trend change increases significantly — this is the operational meaning of "When time is up, the trend changes." Mark these dates in advance and treat them as high-probability windows for entries, exits, or position re-evaluation rather than as guaranteed reversal signals.
Divide the full cycle into halves (180°), thirds (120°), quarters (90°), fifths (72°), or custom fractions to reveal minor turning points and continuation phases within the broader rhythm. Gann described this as "wheel within a wheel" — cycles within cycles. Subdivisions at 90° intervals (the default) align with Gann's foundational harmonic degrees and typically yield the highest concentration of meaningful market reactions.
Choose Angle Positions Mode to trade between predefined geometric degree ranges (e.g., enter at 0° and exit at 120°) — ideal for Gann purists seeking precise harmonic motion. Or choose Fractional Cycle Mode, which generates Long and Short signals automatically when the wave phase shifts from rising to falling or vice versa — suited for traders who prefer wave-driven, rhythm-based signals without manual degree selection.
Use the built-in statistics panel to evaluate historical cycle performance: win rate, return per cycle, min/max returns, and compound equity growth across all completed cycles. Enable commission simulation to reflect real trading costs. Confirm that your chosen anchor date and cycle length produce statistically consistent results before committing capital to live signals.
The Next Turning Date feature projects the forward date when the current cycle is expected to complete — providing a specific future window to plan entries, exits, and stop placement in advance. This transforms Gann's forecasting philosophy into an actionable, calendar-based decision-making system: "I will buy or sell the market on a specific date in the future with a specific stop loss and target, and I will exit on a specific date."
Keep a detailed trading journal recording your anchor points, cycle lengths, subdivision settings, and outcomes for each market you analyze. Over time, patterns will emerge showing which harmonics resonate most strongly with specific assets and timeframes. When a cycle produced a strong market reaction historically, expect a similar response when that same vibration recurs — this is the practical application of Gann's Law of Vibration: "Like causes produce like effects."
Anchor Date (Starting Point), Cycle Length in days, number of fractional subdivisions, and harmonic degree configuration. These four parameters define the entire cycle structure from which all signals and projections are derived.
Operation mode (Angle Positions or Fractional Cycle), trade direction (Long/Short), entry and exit angle definitions for Angle mode, entry/exit wave signal direction, and bar-count exit for time-limited Fractional Cycle strategies.
Stop-loss and take-profit toggles with percentage inputs, entry/exit commission simulation, label size (Tiny to Huge), and full color customization for all on-chart trade level markers.
Performance table toggle, position, text size, and frame colors. Cycle wave display, sub-wave visibility, harmonic markers, dynamic candle coloring by trade state, and individual alert toggles for each event type.
Original Time Cycles – W.D. Gann [AlgoFuego] is a technical analysis and research tool — not a guaranteed profit system. While cycle-based models offer meaningful perspective on market timing, past cycle behavior does not guarantee future performance. Market conditions are also shaped by fundamental developments, macroeconomic events, and sentiment shifts that purely time-based systems do not account for. Always apply sound risk management practices and use cycle analysis as one component of a broader trading framework.
All indicators below are included in your subscription at no additional cost.