Retrograde Volatility Zones [PyraTime]The Problem: The "Invisible" Trend Killer
Most traders rely exclusively on lagging price indicators (Moving Averages, RSI, MACD). These tools are excellent at telling you what just happened, but they are notoriously blind to cyclic exhaustion. Markets don't just move in a vacuum; they undergo rhythmic shifts in volatility and psychology.
The "Invisible" problem is the Stationary Period. When a major planetary cycle slows down to a "Station," liquidity often thins, trends become erratic, and "Black Swan" volatility spikes occur. Without a way to quantify these cycles, traders frequently "buy the top" or "short the bottom" exactly as the underlying cyclic regime is shifting from green to red.
The Solution: PyraTime · RVZ
The Retrograde Volatility Zones indicator solves the problem of cyclic blindness by providing a real-time, quantitative map of planetary velocity. Unlike amateur scripts that use hardcoded (and expiring) date arrays,
PT·RVZ calculates the Geocentric Longitude Speed of the planets in real-time.Key Technical Pillars:Speed-Based Detection: If a planet’s speed is negative ( AMEX:SPD < 0$), it is retrograde. This is the professional standard for astronomical accuracy.
The Traffic Light Regime: It converts raw velocity into a weighted "Composite Score." It tells you not just that a planet is moving, but how much "thrust" the current cyclic environment has.Shadow Zone
Identification: It highlights the "Storm before the Storm" the period where a planet is still moving forward but has decelerated to less than 20% of its normal speed.
Volatility Sync: It overlays ATR spikes during these windows, filtering out noise and highlighting the specific moments where cyclic pressure translates into actual price expansion.
Tutorial: How to Master the Cycle
1. Reading the "Traffic Light"
The background and dashboard provide an instant read on the market "weather":
🟢 Green (Bullish): The weighted composite of planets is moving at high forward velocity. This is your "Trend is Friend" regime. Focus on long entries and trend-following.
🟡 Yellow (Mixed/Shadow): Major planets are decelerating or "Stationing." Expect chop, mean-reversion, and "fake-out" breakouts. Tighten stops and reduce position sizes.
🔴 Red (Bearish/Retrograde): The cycle is in retreat. Historically, these are windows of high-volatility corrections. Look for short opportunities or stay in cash.
2. Trading the "Stations" (℞ & D)
The glowing neon vertical lines mark the Station Point—the exact bar where velocity hits zero.
℞ (Station Retrograde): Often marks the "Blow-off Top" or the start of a deep corrective phase.
D (Station Direct): Often marks the "Final Flush" or the moment where the market regains its forward momentum.
3. The Dashboard Strategy
Watch the Speed°/d column in the dashboard. If you see Mercury ($\☿$) speed drop rapidly while price is hitting new highs, a "Mercury Retrograde" volatility spike is likely loading. Use the Composite Score at the bottom of the table to gauge the total "cyclic weight" of the market.
4. Setting High-Signal Alerts
Don't stare at the screen. Set the "High Vol + Retro" alert. This fires only when price range (ATR) expands significantly during a retrograde window—this is the signature of a major cyclic pivot. Indicator

Planetary Aspect Lines [PyraTime]The Problem This Solves
Traders utilizing W.D. Gann methodologies and financial astrology often face three major hurdles: manually calculating geocentric planetary aspects across varying timezones, dealing with cluttered charts that obscure price action, and the persistent "Floating Indicator Issue" where graphical lines and labels detach from historical price bars or freeze in mid-air when panning and zooming.
The Solution
PyraTime is a self-contained visual ephemeris built specifically to automate planetary aspect tracking while maintaining strict chart stability. It calculates geocentric mean longitudes for up to three customizable planet pairs, alerts you to exact angular aspects, and anchors all visual data directly to absolute UNIX timestamps. This ensures your astrological analysis remains perfectly aligned with the historical price action, regardless of chart scale.
Key Features:
Predictive HUD Dashboard: A clean, minimal chart overlay that scans forward to project the next upcoming aspect. It provides a live countdown (in days) alongside the calculated directional bias.
Directional Bias System: Instantly gauge the astrological weight of an aspect directly on the chart labels and HUD. The script categorizes Trines and Sextiles as Bullish; Squares, Oppositions, Semi-Squares, and Sesquiquadrates as Bearish; and Conjunctions and Quincunxes as Neutral.
Floating Indicator Protection: We explicitly solved the native PulseWire floating object bug. By anchoring all line objects to absolute UNIX timestamps (xloc.bar_time) rather than relative bar indices, and using dynamic vertical positioning for labels, your aspect lines will never detach or float away when scrolling through data.
Layered Aesthetics: Aspects are plotted using a 3-layer overlapping line technique for a clean neon aesthetic without muddying the candles. When an aspect reaches exact status (within 0.1 degrees of the target orb), the visual labels dynamically scale to full opacity to highlight the exact pivot point.
Retrograde Filtering: An optional toggle allows users to automatically suppress aspect alerts and visuals if either planet in a monitored pair is currently moving in retrograde.
Timezone Agnostic: The internal ephemeris engine relies on absolute time data, meaning it synchronizes automatically with your local PulseWire clock. No manual UTC offset configurations are required.
How to Use:
Apply the indicator to your chart and open the settings menu.
Select your target planet pairs (e.g., Sun and Mars) and enable any additional pairs you wish to track.
Toggle the specific aspects you want to monitor and adjust your target orbs (degrees of tolerance) based on your trading strategy.
Set standard PulseWire alerts to trigger when a confirmed aspect prints on the chart.
Technical Note: This script uses an internal Mean Longitude mathematical engine to calculate planetary positions. This provides fast, self-contained visual performance without relying on external libraries. Traders looking for extreme precision on highly elliptical planets or specific retrograde stations should note there may be slight orb drift compared to a full Swiss Ephemeris array. Indicator

Planetary Fan Array [BlueprintResearch]█ Planetary Fan Array automatically detects ZigZag price pivots and draws Gann-style fan angles whose slope is driven by real-time planetary longitude — not fixed geometric ratios. Each time price reverses direction, the indicator anchors a new set of fan lines at the pivot and traces their path using accumulated planetary motion, creating a dynamic framework where the angles evolve with celestial mechanics.
Designed as the pivot-based companion to Price and Longitude Angles , which draws fan lines from a single user-selected anchor point. Use both together: Price and Longitude Angles for static analysis from a key high or low, and Planetary Fan Array for automatic swing-by-swing tracking as new pivots form.
Powered by the open-source Blueprint Ephemeris library (VSOP87D + ELP2000-82 + Meeus) — all planetary positions computed directly in Pine Script, no external data required. Validated against NASA's DE440 ephemeris: all bodies under 0.1° RMS (Sun 0.004°, planets 0.005°–0.017°, Moon 0.062°, Pluto 0.059°).
█ HOW IT WORKS
The indicator combines two independent systems:
1. Pivot Detection
A ZigZag algorithm (via DevLucem/ZigLib) identifies significant highs and lows on price. The "Pivot Sensitivity" control sets the minimum bars between pivots — higher values produce fewer, more significant swings.
2. Longitude-Driven Fan Angles
At each pivot, the indicator begins accumulating planetary longitude (degrees traveled since the pivot). This accumulation is converted to price movement using a configurable $/° (price per degree) ratio, producing diagonal fan lines whose slope reflects actual planetary speed — including natural curves during retrograde motion.
Three fan lines are drawn per swing:
• 1x1 — 1° of longitude = 1 unit of price (on by default, toggleable)
• Ratio 2 — User-selectable (1x8 through 8x1)
• Ratio 3 — User-selectable (1x8 through 8x1)
Fan direction follows the swing: upward swings project fan lines upward from the pivot low, downward swings project downward from the pivot high. Mirror Mode inverts this for resistance/support analysis.
█ FEATURES
Automatic Swing Detection
• ZigZag-based pivot identification with configurable sensitivity, deviation, and backstep
• New fan angles automatically generated at each confirmed pivot
• Up to 30 historical swings preserved with full polyline rendering (Max History: 5–30, default 15)
Three Calculation Modes
• Single — Track one planet's longitude accumulation
• Average — Midpoint of two planets' accumulated longitude
• Synodic — Angular separation between two planets (synodic cycle phase)
12 Celestial Bodies
• ☉ Sun · ☽ Moon · ☿ Mercury · ♀ Venus · 🜨 Earth · ♂ Mars · ♃ Jupiter · ♄ Saturn · ⛢ Uranus · ♆ Neptune · ♇ Pluto
• 🜨 ERA (Earth Rotation Angle) — sidereal time, requires ≤15-minute timeframe
Swing Extensions
• Extend the last 1–3 completed swings to the current bar so prior angles remain visible when a new pivot forms
• Default extends 1 prior swing — you never lose the trend you were tracking
Future Projections
• Project fan lines up to 250 bars into the future from the current bar
• Projections use bar-index positioning for clean rendering on non-continuous markets (stocks, futures, indexes)
• Projected lines maintain the same color and style as historical lines — no visual break at the transition
Curved Polylines
• Fan lines are rendered as polylines that follow the actual longitude path bar by bar
• Natural curvature during retrograde periods — no straight-line approximation
• Optional smooth curves for non-continuous markets
Visual System
• Planet-specific HSV color palette consistent with Price and Longitude Angles
• Optional color overrides for the 1x1 line and ratio lines independently
• Configurable line width (1–5 pixels) applied to all fan lines
• Per-ratio line styles (Solid, Dotted, Dashed) and transparency controls
• Green ▲ and red ▼ pivot markers at detected lows and highs — these are the swing points the indicator builds its fan angles from
• Optional ZigZag connecting line with configurable width
• Info panel showing $/°, mode, planet, degrees traveled, swing direction, and swing count (X/Y where Y is your Max History setting)
• Warning indicator when both user ratios are set to the same value
Alerts
• 1x1 Cross — fires when price crosses the 1x1 fan line
• Ratio 2 Cross — fires when price crosses the second ratio fan line
• Ratio 3 Cross — fires when price crosses the third ratio fan line
• New Pivot — fires when a new pivot is detected and swing direction changes
█ HOW TO USE
1. Add the indicator to your chart. You'll immediately see green ▲ and red ▼ triangle markers on the chart — these mark every detected swing low and swing high. When prompted, click a significant high or low to set your starting point. Fan angles will only be drawn from that point forward.
2. Select your planet(s) in the Planet Selection group. For single-planet analysis, choose your planet as the Primary. For Average or Synodic modes, select both planets.
3. Choose Geocentric (Earth-centered, standard astrology) or Heliocentric (Sun-centered) in the Planet Selection group. Sun and Moon are always geocentric regardless of this setting.
4. Adjust "Price per 1°" to scale the fan angles to your market. Start with 1.0 and increase or decrease until the 1x1 line aligns with meaningful price action. This is the most important calibration step.
5. Set "Pivot Sensitivity" to control how many swings appear. Higher values (30-50) show only major turns; lower values (10-15) catch smaller moves.
6. Choose your two additional fan ratios. The 1x1 is on by default; Ratio 2 and Ratio 3 let you add steeper or shallower angles (e.g., 2x1 for faster price/degree, 1x2 for slower). All three ratios can be toggled independently.
7. Enable Extend Swings (default: 1) to keep the prior swing's angles visible after a new pivot forms.
8. Use future projections to see where fan lines will extend. On non-continuous markets, projections automatically space correctly across market gaps.
9. Check the info panel in the top-right corner. The "Swings" row shows how many completed swings are being tracked out of your Max History limit (e.g., "12/15"). Increase Max History (up to 30) in the Appearance group to keep more swings on screen, or decrease it to reduce visual clutter.
█ WHAT MAKES THIS ORIGINAL
Most planetary angle indicators on PulseWire use a single fixed anchor point chosen by the user. This indicator takes a fundamentally different approach: it automatically detects price pivots and generates a new set of longitude-driven fan angles at every swing reversal. The result is a living framework that adapts as the market develops new structure.
Key technical contributions:
• Automatic pivot-to-pivot longitude accumulation — fan angles are driven by actual planetary motion between detected swings, not static geometric construction
• Net displacement through retrograde — longitude accumulates through retrograde motion (allowing negative deltas) rather than clipping to zero, producing smooth fan lines without plateaus
• Polyline-based curved fan rendering — each fan line is a bar-by-bar polyline following the planet's actual path, not a straight line between endpoints
• Global longitude history arrays — planetary positions are stored every bar and reused for extensions, eliminating recalculation discontinuities on non-continuous markets
• Bar-index projection positioning — future projections use bar_index instead of bar_time, preventing vertical line artifacts on non-continuous markets (stocks, futures, indexes during market close)
• Swing extension system — completed swings can be extended to the current bar, preserving visual continuity when new pivots form
• Full VSOP87D + ELP2000-82 + Meeus ephemeris computed in real time — 511 terms (1.6% of full theory) delivering sub-0.1° accuracy against JPL DE440
█ LIMITATIONS & TIPS
• PulseWire limits polylines to 100. Each swing uses 3 polylines (one per ratio). With Extend Swings active, keep Max History ≤ 20 to avoid hitting the cap.
• The $/° ratio is market-specific. What works for Bitcoin ($50/°) won't work for ES ($0.50/°). Experiment with the scale to find meaningful alignment.
• ERA (Earth Rotation Angle) rotates ~360°/day — only useful on intraday timeframes ≤15 minutes. A runtime error appears if you select ERA on higher timeframes.
• On non-continuous markets (stocks, futures), the fan line may show a slightly steeper segment across weekend/holiday gaps because the planet moved during market close. This is astronomically accurate — the visual compression is inherent to how non-continuous charts display time.
• For mission-critical timing, always cross-reference with professional tools such as JPL Horizons , Swiss Ephemeris, or Astro.com.
█ COMPANION INDICATOR
• Price and Longitude Angles — The static anchor version. Draw fan lines from any user-selected high or low with 9 Gann ratios (1x8 through 8x1), zodiac bar coloring, aspect table, and cycle counter. Use it for focused analysis of a single key level; use Planetary Fan Array for automatic swing-by-swing coverage.
█ OPEN SOURCE
This indicator is part of the fully open-source Planetary Ephemeris project. The core ephemeris library is publicly available for study, modification, and reuse:
• BlueprintResearch/blueprint_ephemeris_lib — Planetary calculation engine (VSOP87D, ELP2000-82, Meeus)
█ CREDITS & DEPENDENCIES
This indicator is built on top of three exceptional open-source libraries. Without the work of these authors, Planetary Fan Array would not exist.
• Blueprint Ephemeris by @BlueprintResearch — The astronomical engine powering every planetary calculation in this indicator. Computes real-time ecliptic longitude, declination, and speed for all 11 celestial bodies using VSOP87D (planets), ELP2000-82 (Moon), and Meeus algorithms (Pluto) — entirely within Pine Script. Open source (CC BY-SA 4.0).
• ZigLib by @DevLucem — The backbone of all pivot detection in this indicator. Provides the ZigZag algorithm that identifies swing highs and lows, returning precise pivot times and prices that anchor every fan angle. Without ZigLib, there are no swings.
• hsvColor by @kaigouthro — The color system behind the planet-specific HSV palette. Provides HSV color construction and gradient interpolation that gives each celestial body its distinct visual identity. Open source (MPL-2.0).
• Theoretical framework inspired by W.D. Gann's price-time geometry and Patrick Mikula's Gann's Scientific Methods Unveiled , Volume 2, which details the relationship between planetary longitude and price movement.
Indicator

[MAD] Gann o MaticusGannomat — Full Automated Gann Grids & Astro Cycles
Automatic Gann quadrant boxes with geometric arc projections. Cycle boundaries from standard timeframes or real planetary astronomy.
Thanks BarefootJoey, master of Astrolib
What Does This Indicator Do?
Gannomat draws a Gann quadrant box on your chart — a rectangle where the width represents a time period and the height represents a price range. Inside each box, it projects geometric arc curves from all four corners at multiple proportional levels (1x0 through 5x0, plus diagonal variants 1x1 through 5x1). These arcs create a web of curved support and resistance lines based on the time–price geometry of the quadrant.
Each time a new period begins — either a new timeframe candle or a new astronomical event — the box resets and a fresh set of arcs is drawn.
The indicator also plots pivot point markers (R3, R2, R1, PP, S1, S2, S3) as small circles whenever their values change, and draws diagonal cross lines connecting opposite corners of the box.
When using Astrocycles mode, an info table in the top-right corner shows the active planet, cycle type, current cycle duration in days, and the dates of the last and next astronomical event.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INPUT REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
General
Line Width (Default: 1) — Thickness of all drawn lines and arc curves. Increase for better visibility on higher-resolution screens.
Box Color (Default: Gray 50%) — Color of the quadrant box outline, its vertical/horizontal edges, and the diagonal cross lines.
Gann Circles Color (Default: Blue) — Color reserved for Gann circle overlays.
Cleanup Old Drawings (Default: On) — When enabled, previous box and arc drawings are removed when a new period starts. Turn off if you want to keep all historical boxes visible.
Time Settings
Timeframe / Cycle (Default: 1 Day) — This is the most important setting. It controls how wide each Gann box is.
Available options:
15 Min, 1 Hour, 4 Hours, 6 Hours, 8 Hours, 12 Hours — Intraday periods. Use these on lower timeframe charts (1m–15m–1H).
1 Day — One trading day. The most common starting point.
1 Week, 2 Weeks, 3 Weeks, 4 Weeks — Weekly periods. Good for swing trading on daily charts.
1 Month, 3 Months, 6 Months — Monthly/quarterly periods. Use on daily or weekly charts for longer-term analysis.
Astrocycles — The box width is no longer a fixed timeframe. Instead, each new box begins when a specific planetary event occurs (configured in Astro Settings). The box width varies from cycle to cycle based on the actual interval between consecutive events.
Astro Settings
These settings only take effect when Timeframe / Cycle is set to Astrocycles .
Astro Planet (Default: Moon) — Which celestial body drives the cycle timing. Each planet has a different orbital period, producing cycles of different lengths:
Moon — ~27 days per cycle. Fast cycles, good for daily charts.
Mercury — ~88 days. Short inner-planet cycles.
Venus — ~225 days. Medium cycles.
Mars — ~687 days (~1.9 years). Good for weekly charts.
Jupiter — ~12 years. Long-term cycles for monthly charts.
Saturn — ~29 years. Very long-term structural cycles.
Uranus, Neptune, Pluto — Multi-decade to multi-century cycles. For the longest-term analysis.
Astro Cycle (Default: High Latitude) — The type of astronomical event that marks the start of each new period:
High Latitude — The planet reaches its maximum ecliptic latitude (furthest above the ecliptic plane). Works for all planets including Moon.
Low Latitude — The planet reaches its minimum ecliptic latitude (furthest below the ecliptic plane). Works for all planets including Moon.
High Longitude — The planet reaches a stationary point where its geocentric longitude stops increasing and begins to decrease (start of retrograde motion). This is the retrograde station . Not applicable to Moon.
Low Longitude — The planet reaches a stationary point where its geocentric longitude stops decreasing and begins to increase again (end of retrograde / start of direct motion). This is the direct station . Not applicable to Moon.
Heliocentric Conjunction — Earth and the selected planet are aligned on the same side of the Sun (0° heliocentric separation). Not available for Moon.
Heliocentric Opposition — Earth and the selected planet are on opposite sides of the Sun (180° heliocentric separation). Not available for Moon.
Show Info Table (Default: On) — Displays a panel in the top-right corner showing: Cycle Type, Planet, Duration (days), Last Event date, and Next Event date (UTC).
Quadrant Scaling
These settings control the height (Y-axis / price range) of each Gann box.
Scale Mode (Default: Classic Pivots) — How the top and bottom price levels of the box are calculated:
Classic Pivots — The box height is defined by two pivot levels you choose (see Upper/Lower Pivot below). In standard timeframe mode, pivots are calculated from the previous period's High, Low, Close via request.security. In Astrocycles mode, pivots are calculated from the previous astronomical cycle's High, Low, Close.
Prev Cycle Range — The box height equals the High-to-Low range of the previous completed cycle. This adapts the box to actual market movement. If no previous cycle data is available yet, falls back to Classic Pivots.
Donchian Channel — The box top is the highest high and the box bottom is the lowest low over the last N bars (set by Donchian Len).
ATR Bands — The box is centered on a base price (Close, HL2, or EMA) and extends upward/downward by ATR × Multiplier. This creates volatility-adaptive boxes.
StdDev Bands — Same concept as ATR Bands but uses standard deviation instead. Similar to Bollinger Band width. The box is centered on a simple moving average.
Percentile Channel — The box top is the upper percentile of highs and the box bottom is the lower percentile of lows over the lookback period. This provides a statistical price range.
Upper Pivot (Default: R3) — Which pivot level defines the top of the box. Only used when Scale Mode is Classic Pivots. Options: R3, R2, R1, PP, S1, S2, S3.
Lower Pivot (Default: S1) — Which pivot level defines the bottom of the box. Only used when Scale Mode is Classic Pivots. Options: R3, R2, R1, PP, S1, S2, S3.
Base Source (Default: Close) — Center line for ATR Bands and StdDev Bands modes. Close uses the closing price, HL2 uses the midpoint of high and low, EMA uses an exponential moving average.
Donchian Len (Default: 20) — Lookback period in bars for the Donchian Channel highest-high / lowest-low calculation.
ATR Len (Default: 14) — Lookback period for the Average True Range calculation.
ATR Mult (Default: 2.0) — How many ATRs above and below the base price to extend the box.
StdDev Len (Default: 20) — Lookback period for the standard deviation calculation.
StdDev Mult (Default: 2.0) — How many standard deviations above and below the SMA to extend the box.
Pct Len (Default: 50) — Lookback period for the percentile calculation.
Low % (Default: 10) — Lower percentile threshold (0–49). A value of 10 means the box bottom is at the 10th percentile of lows.
High % (Default: 90) — Upper percentile threshold (51–100). A value of 90 means the box top is at the 90th percentile of highs.
Min Height (ATR Mult) (Default: 0.5) — Minimum allowed box height, expressed as a multiple of the current ATR. If the calculated box height is smaller than this, the box is expanded symmetrically around its midpoint. Set to 0 to disable. Useful to prevent collapsed or invisible boxes during low-volatility consolidation.
Pivot Colors
R3 Color (Default: Dark Green #004900)
R2 Color (Default: Medium Green #006F00)
R1 Color (Default: Bright Green #009600)
PP Color (Default: Gray #555555)
S1 Color (Default: Red #FF0000)
S2 Color (Default: Red-Pink #FF002A)
S3 Color (Default: Deep Pink #FF014A)
Each pivot level is plotted as a small circle marker on the chart whenever its value changes. The color scheme gives a visual gradient from green (resistance) to red (support).
Arc Colors
Arc Level 1 Color (Default: Orange) — Color for the smallest arcs: 1x0, 1.5x0, and 1x1.
Arc Level 2 Color (Default: Lime) — Color for 2x0 and 2x1 arcs.
Arc Level 3 Color (Default: Green) — Color for 3x0 and 3x1 arcs.
Arc Level 4 Color (Default: Teal #40826D) — Color for 4x0 and 4x1 arcs.
Arc Level 5 Color (Default: Blue) — Color for the largest arcs: 5x0 and 5x1.
Arc Inv 4x0 Color (Default: Aqua) — Dedicated color for the inverted 4x0 arc, so it can be visually distinguished from the normal (bottom-up) version.
Each arc level represents a different proportion of the quadrant. Smaller arcs (Level 1) curve tightly near the origin corner, while larger arcs (Level 5) sweep across the full box width. The "x1" variants (1x1, 2x1, etc.) are diagonal-offset versions that sit between the round-number levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Getting Started (Standard Mode)
Add the indicator to your chart.
Set Timeframe / Cycle to match the period you want to analyze. For example, on a 1-hour chart analyzing daily structure, choose "1 Day".
Leave Scale Mode on Classic Pivots with Upper = R3, Lower = S1 as a starting point. This gives you a box spanning from the first support to the third resistance.
Observe how price interacts with the arc curves. The arcs act as curved support/resistance levels — price often reverses or accelerates near these lines.
Adjust Upper/Lower Pivot to widen (R3/S3) or narrow (R1/S1) the box depending on volatility.
Using Astrocycles Mode
Set Timeframe / Cycle to Astrocycles .
Choose a Planet . Start with Moon for fast cycles on daily charts, or Jupiter/Saturn for long-term cycles on weekly/monthly charts.
Choose a Cycle type. High Latitude is a good general-purpose starting point since it works for all planets.
Enable Show Info Table to see the current cycle duration and event dates.
For scaling, try Prev Cycle Range — it pairs naturally with Astrocycles because it sizes each new box based on the price action of the previous planetary cycle.
Choosing a Scale Mode
Use Classic Pivots for traditional Gann analysis with well-defined pivot-based boundaries.
Use Prev Cycle Range when you want boxes that reflect actual market range — especially good with Astrocycles.
Use ATR Bands or StdDev Bands when you want the box to automatically adapt to changing volatility conditions.
Use Donchian Channel for a simple recent-range approach.
Use Percentile Channel for a statistical approach that filters out extreme spikes.
Reading the Arcs
Bottom-up arcs (normal) rise from the lower-left corner of the box. They represent potential support curves during an uptrend.
Top-down arcs (inverted) fall from the upper-left corner. They represent potential resistance curves during a downtrend.
The right-side arcs (mirrored from the right corners) appear in the current box via polyline drawing, creating the full four-corner Gann circle pattern.
When multiple arcs from different levels converge at the same point, that creates a confluence zone — a stronger potential reaction area.
The diagonal cross lines show the direct price-time relationship (1:1 ratio) across the box.
Tips
If boxes appear too flat or collapsed, increase Min Height (ATR Mult) from 0.5 to 1.0 or higher.
The chart timeframe should be lower than the selected period. For example, use a 1H chart with a 1 Day period, or a Daily chart with a 1 Week period. This ensures enough bars exist within each box for the arcs to render smoothly.
For Heliocentric Conjunction/Opposition cycles, remember these are only available for planets other than the Moon. These cycles correspond to synodic periods (the time between successive alignments as seen from the Sun).
High/Low Longitude cycles detect retrograde and direct stations — moments when a planet appears to change direction in the sky. These are astronomically significant turning points often studied in financial astrology.
Indicator

Grid System + Gann DiamondThis Pine Script v6 indicator, titled "Grid System + Gann Diamond", is a customizable geometric overlay tool heavily inspired by W.D. Gann's principles — particularly price-time squaring, diagonal angle projections (Gann-style angles), and grid-based subdivisions within a defined range.It identifies a historical lookback range (from a user-defined anchor time to the present) and calculates:
High (HH), Low (LL), and Midpoint of that range
A central vertical line at the time midpoint (t/2)
Main horizontal levels (top/mid/bottom)
Diagonal lines (upper/lower) radiating from the midpoint, creating a diamond-like geometric structure
Forward projections (rays) of key diagonals beyond the current bar
Optional interior grid (equal spacing or Fibonacci ratios)
Propagated/additional diagonals from midpoints, endpoints, or quarter points (¼ & ¾) along the horizontals
Current-bar vertical connections (high → mid, low → mid)
The result visually resembles a "Gann Diamond" (or extended Gann square/angle fan concept) — a geometric framework where price and time relationships are highlighted to reveal potential support/resistance, trend strength, or reversal zones when price interacts with the lines.
Key features include:
Anchor point selection (drag the time input)
Option to only draw on the last bar (cleaner chart)
Toggle for forward rays, full projected box, interior grid, quarter diagonals, etc.
Custom colors, widths, and line styles
Main Use Cases in Trading:
Geometric Support / Resistance Identification
The horizontal levels + grid lines act as static S/R zones.
Propagated diagonals and forward projections serve as dynamic future S/R lines (price often reacts when touching or crossing them).
Gann-style Angle / Trend Analysis
The main diagonals (and their forward extensions) represent Gann-like angles.
Traders watch whether price stays above/below certain diagonals to gauge trend strength (similar to classic 1×1, 2×1 angle behavior).
Range / Cycle Projection & Exhaustion Zones
The diamond/box structure helps visualize when price and time may be "squaring out" (a core Gann concept).
Useful near the right edge or projected forward area to anticipate potential reversals or acceleration.
Confluence Tool
Combine with price action, volume, other indicators (e.g. Fibonacci, pivot points, supply/demand zones).
Reactions at grid lines + diagonal crossings + quarter points often give higher-probability setups.
Swing / Range Trading Context
Very helpful on higher timeframes (4H–Daily–Weekly) to frame the larger structure after a clear swing high/low.
The anchor time can be set to major pivots, news events, cycle starts, etc. Indicator

Planetary Ingress Dashboard [BlueprintResearch]Visualizes when planetary ingresses, the moments when celestial bodies cross from one zodiac sign into the next, clustering them together in time. A centered rolling window counts how many bodies have recently changed or will soon change signs, revealing periods of concentrated sign-change activity as a color-coded histogram.
Powered by the open-source BlueprintResearch Planetary Ephemeris library — 511 of the 31,577 original VSOP87D terms (just 1.6%) — yet achieving sub-0.1° accuracy against NASA JPL's DE440 reference ephemeris. All celestial longitude calculations (VSOP87D planets, ELP2000-82 Moon, Meeus Pluto) run entirely in Pine Script.
█ CONCEPTS
An ingress occurs when a planet's ecliptic longitude crosses a 30° sign boundary (0° Aries, 0° Taurus, etc.). Individual ingresses are meaningful on their own, but when multiple planets change signs within a narrow time window, that convergence may carry additional significance for cycle-based analysis.
This concept draws on the extensive research of Patrick Mikula, whose published works on W.D. Gann's methods detail how clustered planetary sign changes can serve as a timing framework. The visual design pays homage to the cover art of Gann's Tunnel Thru the Air — the cityscape silhouette along the bottom of the cover inspired the histogram outline, the sand-dune terrain, and the blueprint-blue palette. This indicator provides tools to study and visualize that idea on any instrument and timeframe.
This indicator applies a centered ±N window (configurable in days or bars) around each chart bar. For each enabled body, it checks:
• Whether the body ingressed within the past N units (using a binary-search refinement to pinpoint exact crossing times)
• Whether the body will ingress within the next N units (by evaluating its longitude at a future timestamp)
The sum of these counts determines the histogram's height at each bar. Higher bars indicate more sign changes clustering around that moment in time.
█ FEATURES
Celestial Bodies
• 11 toggleable bodies — Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, and Lunar Nodes
• Each body has a unique color, shown in both histogram labels and future projection markers
• Sun, Moon, and Nodes are always geocentric; planets respect the Geocentric/Heliocentric toggle
Histogram Display
• Fill-based histogram with no drawing-object limits — works across the full chart history
• 5-tier discrete color gradient (1 ingress through 5+) — fully customizable
• Rolling sand-dune ground band with adjustable waviness for visual depth
• Dark blueprint-blue gradient background (toggle on/off, colors customizable)
• Histogram outline for building-silhouette definition
Future Projections
• Scans up to 500 bars ahead for upcoming ingresses
• Per-bar colored boxes indicate projected cluster intensity
• Individual planet symbol labels at each projected ingress, with hover tooltips showing the sign, date, and time
• Timezone selector for future date/time display (10 major zones)
• Sand dune and blueprint background extend seamlessly into the projection area
Performance
• Configurable bar calculation limit (default: 500 bars) for faster loading on instruments with deep history
• Set to 0 for unlimited calculation across all available bars
Ingress Timing
• A 15-iteration binary search between adjacent bars pinpoints the exact ingress moment
• Planet symbols are placed on the bar where the crossing actually occurred, not on the detection bar
█ HOW TO USE
1 — Enable the celestial bodies you want to track in the Celestial Bodies group
2 — Choose Geocentric (traditional, Earth-centered) or uncheck for Heliocentric (Sun-centered)
3 — Adjust the Rolling Window (±) to control cluster sensitivity — smaller values (1–2) highlight tight clusters, while larger values (5–10) reveal broader convergence zones
4 — Select Days or Bars for the window unit — Days uses calendar days (consistent across timeframes), while Bars uses chart bar duration (scales with your timeframe)
5 — Histogram bars appear in the lower pane — taller bars with warmer colors indicate more sign changes clustering near that date
6 — Planet symbols above histogram bars identify which bodies ingressed
7 — The future projection extends to the right of the current bar, showing where upcoming clusters are forming
8 — Hover over any future label to see the projected sign entry and date/time in your selected timezone
9 — If performance is slow on long-history instruments, reduce Limit Calculation (Bars) or keep the default of 500
█ LIMITATIONS & ACCURACY
The underlying ephemeris uses only 511 of the 31,577 original VSOP87D terms — just 1.6% — yet achieves sub-0.1° accuracy for every planet. It has been cross-validated against NASA JPL's DE440 reference ephemeris (via Skyfield).
Positional Accuracy (RMS vs JPL DE440):
• Sun: 0.004°
• Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune: 0.005°–0.017°
• Moon: 0.062°
• Pluto: 0.059° (Meeus method, valid 1900–2100)
All planets achieve sub-0.1° RMS accuracy. In practice, ingress timing has been manually verified against professional ephemerides:
• Sun, Moon, Mercury, Venus, Mars: Within minutes to ~1 hour
• Jupiter, Saturn: Within a few hours
• Uranus, Neptune, Pluto: Same-day accuracy — typically within ~18 hours, even for the slowest-moving bodies
Accuracy validation plots (Pine Script vs JPL DE440) are available in the library release notes .
Moon on Daily+ Charts:
The Moon changes signs approximately every 2.5 days. On daily or higher timeframes, some Moon ingresses may fall between bars and be missed. For best Moon coverage, use a 12-hour or lower timeframe. A warning label appears when the Moon is enabled on daily or higher timeframes.
Recommendation: For mission-critical timing, always cross-reference with professional tools such as JPL Horizons , Swiss Ephemeris, or Astro.com.
█ WHAT MAKES THIS ORIGINAL
Most planetary indicators on PulseWire show individual planet positions or single-planet events. This dashboard takes a fundamentally different approach: it aggregates sign-change events across all enabled bodies into a unified time-density visualization, answering the question "When are multiple planets changing signs at the same time?"
Key technical contributions:
• Multi-body ingress clustering algorithm with a centered rolling window
• Binary-search ingress refinement (15 iterations) for sub-bar timing precision
• Fill-based historical histogram (unlimited data) combined with polyline/box-based future projection
• Full VSOP87D + ELP2000-82 + Meeus ephemeris computed in real time within Pine Script — 511 terms (1.6% of the full theory) delivering sub-0.1° accuracy against JPL DE440
█ COMPANION INDICATOR
• Planetary Ingress — A single-planet ingress indicator with on-chart labels, retrograde markers, and per-sign alerts. Use it with this dashboard to view individual planet details while monitoring cluster activity here.
█ OPEN SOURCE
This indicator is part of the fully open-source Planetary Ephemeris project. The core ephemeris library is publicly available for study, modification, and reuse in your own scripts:
• BlueprintResearch/blueprint_ephemeris_lib — Planetary calculation engine (VSOP87D, ELP2000-82, Meeus)
█ FURTHER READING
For the research on ingress clustering as a timing method, see Patrick Mikula, Gann's Scientific Methods Unveiled , Volume 1, Chapter 7: Planetary Ingress.
Indicator

Gann Square of 9 Vibration Levels [LuxAlgo]The Gann Square of 9 Vibration Levels indicator provides a technical framework for identifying potential support and resistance levels based on Gann's "Square of 9" mathematical relationships.
🔶 USAGE
This tool calculates price "vibrations" or displacements from a specific anchor point using angular degrees. In Gann theory, specific angles (90°, 180°, etc.) are believed to represent points of high resonance where price action is likely to stall or reverse.
The indicator offers two primary methods for anchoring:
Auto Pivot: Automatically detects recent high or low pivots based on a user-defined lookback period. If a new low is found, it calculates upward vibrations; if a new high is found, it calculates downward vibrations.
Manual: Allows the user to input a specific price point to act as the "Square of 9" center, from which all angular levels are projected.
Traders can use these levels to anticipate market turns or set price targets. When price approaches a Cardinal or Ordinal level, it may indicate a zone of exhaustion or a breakout point.
🔶 DETAILS
The script utilizes the core Gann Square of 9 formula to translate angular degrees into price levels:
Price = (sqrt(Anchor) + (Degree / 180) * Direction)^2
The indicator distinguishes between two types of vibration levels:
🔹 Cardinal Levels (90°, 180°, 270°, 360°): These represent the "cross" in the Square of 9 and are traditionally considered the strongest points of vibration. They are displayed with solid lines.
🔹 Ordinal Levels (45°, 135°, 225°, 315°): These represent the "corners" of the Square of 9 and provide secondary points of interest. They are displayed with dashed lines.
The inclusion of a real-time dashboard provides a quick reference for the current anchor price, the specific degree of each active level, and its corresponding price value, ensuring traders can see exact targets without cluttering the main chart area.
🔶 SETTINGS
🔹 Calculation Settings
Anchor Type: Choose between "Auto pivot" (dynamic) or "Manual" (static) price anchoring.
Manual Anchor Price: The price used for calculations when Anchor Type is set to Manual.
Pivot Lookback: The number of bars used to detect high/low pivots for the Auto mode.
Vibration Direction: Determines if the indicator projects levels "Up", "Down", or in "Both" directions from the anchor.
🔹 Visual Settings
Show Cardinal Levels (90°): Toggles the visibility of the primary cross levels.
Show Ordinal Levels (45°): Toggles the visibility of the secondary corner levels.
Show Level Labels: Displays the degree and price value next to each line on the chart.
Cardinal/Ordinal Color: Customizes the colors for the different level types.
🔹 Dashboard
Dashboard: Enables or disables the on-screen data table.
Position: Moves the dashboard to different corners of the chart.
Size: Adjusts the scale of the dashboard text and cells.
Indicator

Indicator

Planetary Aspects [BlueprintResearch]█ Planetary Aspects is a focused-pair aspect detector for financial astrology. Select any two celestial bodies — planets, luminaries, or lunar nodes — and the indicator identifies every aspect passage directly on your chart, with exact-moment markers, background orb bands, and forward-looking projections.
Designed as the on-chart companion to Natal & Transit Planetary Aspect Table , which displays the full cross-aspect matrix in table form. Use both together for complete aspect coverage: the table for the big picture and this indicator for deep analysis of a single pair.
Supports both geocentric and heliocentric coordinates with high-accuracy ephemeris calculations. Powered by the open-source Blueprint Ephemeris library (VSOP87D + ELP2000-82 + Meeus) — all planetary positions computed directly in Pine Script, no external data required. Validated against NASA's DE440 ephemeris: all bodies under 0.1° RMS (Sun 0.004°, planets 0.005°–0.017°, Moon 0.062°, Pluto 0.059°).
What is an aspect?
An aspect is a specific angular separation between two celestial bodies as viewed from Earth (geocentric) or the Sun (heliocentric). When two planets reach an exact aspect angle — such as 0° (conjunction), 90° (square), or 180° (opposition) — astrologers consider it a moment of significance. Financial astrologers use these geometric alignments as potential timing markers for trend changes, volatility shifts, or turning points in price action.
█ FEATURES
Dual Mode Operation
• Transit Aspects — Compare two currently transiting planets in real time
• Natal Aspects — Compare a transiting planet against a natal (first-trade) position, with 20+ built-in presets for crypto, commodities, currencies, bonds, and indexes
13 Configurable Aspect Types
• Major: ☌ Conjunction · ☍ Opposition · △ Trine · □ Square · ⚹ Sextile
• Minor: ⚺ Semi-Sextile · ⚻ Quincunx · ∠ Semi-Square · ⚼ Sesquiquadrate · Q Quintile · bQ Biquintile · S Septile · N Novile
• Each aspect has its own toggle, orb (1°–15°), and color
12 Celestial Bodies
• ☉ Sun · ☽ Moon · ☿ Mercury · ♀ Venus · ♂ Mars · ♃ Jupiter · ♄ Saturn · ♅ Uranus · ♆ Neptune · ♇ Pluto
• ☊ North Node · ☋ South Node (mean lunar nodes)
Visual System
• Exact-moment markers — Aspect symbol labels placed at the precise bar where the orb begins widening (inflection point), with retrograde ℞ notation
• Background orb bands — Gradient-transparency bgcolor that intensifies as the aspect tightens toward exact
• Future projections — Dashed lines, date labels, and gradient orb boxes extending up to 500 bars into the future
• Zodiac positions — Tooltips show each planet's sign, degree, and arc-minute (e.g., 15°30' ♈)
• Info table — Compact top-right summary showing mode, pair, coordinate system, and active aspects at a glance
Smart Detection
• Exact-moment dedup prevents duplicate labels within the same aspect passage
• Retrograde re-approach detection — if a planet retrogrades back into orb, a new label fires
• Confirmed-bar alerts — alerts only fire on confirmed bars to prevent repainting
• Geocentric/heliocentric toggle with a single checkbox
█ HOW TO USE
1. Choose Transit Aspects or Natal Aspects mode.
2. Select Planet A and Planet B from the dropdowns.
In Natal mode, Planet A is the transiting body and Planet B is the natal position.
3. If using Natal mode, select a preset first-trade date or enter a custom one.
Presets include BTC, ETH, DOGE, NYSE, DJIA, S&P 500, Gold, Crude Oil, Wheat, and more.
4. Enable or disable individual aspects and adjust orbs to your preference.
Aspects (conjunction through sextile) are enabled by default; minor aspects are disabled by default.
5. Optionally enable future projections to view upcoming aspect passages before they occur.
6. Set up alerts via PulseWire's alert dialog — the indicator provides a non-repainting "Exact Aspect Detected" condition.
█ NOTES
Geocentric elongation Constraints
In geocentric mode, inferior planets (those orbiting closer to the Sun than Earth) have a maximum angular separation from the Sun:
• ☉ Sun ↔ ☿ Mercury — max ~28° (only conjunction is reliably possible)
• ☉ Sun ↔ ♀ Venus — max ~47° (conjunction through semi-square)
• ☿ Mercury ↔ ♀ Venus — max ~75° (conjunction through quintile)
Aspects beyond these limits (e.g., Sun–Mercury opposition) will never occur. This is an astronomical reality, not a bug. All other planet pairs can form any aspect. In heliocentric mode, these constraints do not apply.
Lunar Nodes
This indicator uses mean lunar nodes. By definition, the North Node (☊) and South Node (☋) are always 180° apart, so the ☊ ↔ ☋ pair is automatically skipped — their opposition is permanent, not a transient event.
Companion Indicator
For a complete cross-aspect matrix of all planets at once, use Natal & Transit Planetary Aspect Table with this indicator. The table shows every active aspect across all planet pairs; this indicator provides detailed on-chart analysis for the specific pair you want to study.
█ KNOWN LIMITATIONS & TIPS
• PulseWire limits drawing objects to 500 per category (lines, labels, boxes). On long histories — such as the full DJIA dataset — you may hit this cap. If labels run out, the background color should persist.
• On weekly and monthly timeframes, fast-moving planets (Sun, Mercury, Venus) can pass through an entire orb window within a single bar. Consider widening the orb or dropping to daily for these pairs.
• Future projections are computed on the last bar only and increase processing time at higher look-ahead values.
█ CREDITS
Built on the open-source Blueprint Ephemeris library by BlueprintResearch. Indicator

Strategy

Indicator

Gann Octogram - Sacred Geometry Confluence Ver 1.0📐 Gann Octogram - Sacred Geometry Confluence Ver 1.0
Overview
Advanced Gann analysis tool combining W.D. Gann's Square of Nine principles with sacred geometry and multi-factor confluence signals. This indicator automatically detects swing highs/lows and projects octogram grids forward in time and price, identifying high-probability trading opportunities where multiple factors align.
Understanding Gann Octograms
W.D. Gann believed markets move in geometric patterns through time and price. The octogram (8-sided figure) represents the square of nine principle where:
Price divisions (1/8ths) create natural support/resistance
Time cycles mark potential reversal points
Diagonal angles show dynamic price-time relationships
Confluence zones where geometry aligns offer highest probability trades
This indicator makes these complex calculations automatic and visual.
Key Features
🎯 Intelligent Auto-Detection
Auto Gann Number Selection: Automatically chooses optimal Gann period (11, 22, 44, 88, 176) based on timeframe and data availability
Adaptive Half-Period Mode: Uses Gann/2 for faster swing detection while validating with full period
Smart Grid Projection: Projects octagrams near current price action for relevance
📊 Sacred Geometry Visualization
Octogram Grids: Complete octagonal geometry with inner square, angled square, and connecting lines
Gann Angles: 1×1 and 2×1 diagonal support/resistance angles
Time Cycles: Quarter, half, and three-quarter cycle markers
Price Levels: Automatic 1/8th division levels (0%, 12.5%, 25%, 37.5%, 50%, 62.5%, 75%, 87.5%, 100%)
⚡ Advanced Confluence System
Adjustable 4-Factor Confluence (Levels 0-4):
Price Level Touch: Precise detection of key support/resistance levels
Time Cycle Alignment: Major (25%, 50%, 75%) and minor (1/8th divisions) cycles
Octogram Geometry: Proximity to vertices and diagonal angles
Price Action: Bullish/bearish candle confirmation
Confluence Levels:
Level 0: Signals on price touch only (most signals)
Level 1: Minimum 1 factor required
Level 2: Minimum 2 factors (⭐ recommended - balanced)
Level 3: Minimum 3 factors (strict quality)
Level 4: All 4 factors required (highest quality, fewer signals)
🛡️ Signal Quality Controls
Max Signals Per Cell: Limit signals to 1-10 per grid cell
Cooldown Period: Minimum bars between consecutive signals
Cell Signal Tracking: Automatic reset when entering new time cells
Adjustable Tolerances: Fine-tune price and geometry sensitivity
How It Works
Swing Detection: Identifies significant market swings using pivot highs/lows
Grid Construction: Builds octogram grid from swing high to swing low
Multi-Grid Projection: Projects multiple cells forward (time) and vertically (price)
Confluence Analysis: Monitors all 4 factors continuously
Signal Generation: Fires BUY/SELL when confluence threshold is met
BUY Signals trigger when:
Price touches LOW zones (0%-50%)
At key time cycle points
Near octogram geometry
Bullish candle forms
SELL Signals trigger when:
Price touches HIGH zones (50%-100%)
At key time cycle points
Near octogram geometry
Bearish candle forms
Settings Guide
Structure Settings
Auto Gann Number: Enable for automatic period selection (recommended)
Manual Gann Number: 11, 22, 44, 88, or 176 bars
Use Half Period: Faster detection using Gann/2 lookback
Grid Stability: Adaptive (1/8th) / Strict (1/4th) / Relaxed (1/16th)
Signal Settings ⚙️
Confluence Level: 0-4 (start with 2)
Price Tolerance: 1-8% (default 3%)
Geometry Tolerance: 0.5-5% (default 2.5%)
Min Bars Between Signals: 1-20 (default 3)
Max Signals Per Cell: 1-10 (default 4-6)
Display Options
Toggle grid squares, octagrams, triangles, Gann angles
Customizable colors for all elements
Time cycle visualization
Swing high/low markers
Info panel with swing statistics
Best Practices
For Day Trading (5min-15min charts):
Confluence Level: 2
Auto Gann: ON
Grid Stability: Adaptive
Max Signals Per Cell: 4-6
For Swing Trading (1H-4H charts):
Confluence Level: 3
Auto Gann: ON
Grid Stability: Strict
Max Signals Per Cell: 2-4
For Position Trading (Daily charts):
Confluence Level: 3-4
Manual Gann: 88 or 176
Grid Stability: Strict
Max Signals Per Cell: 2-3
Alert Setup
Built-in alert conditions:
Gann Octogram Buy - Fires on BUY signal
Gann Octogram Sell - Fires on SELL signal
Configure alerts using PulseWire's alert system to get notified when confluence zones trigger.
Backtesting Tips
Start with Confluence Level 2 (balanced approach)
Increase level to 3-4 if too many signals
Decrease to 1 if missing opportunities
Adjust tolerances based on asset volatility
Test different Gann numbers for your specific market
Credits & Theory
Based on W.D. Gann's principles:
Square of Nine
Time-Price Geometry
Sacred Geometry (Octograms)
Natural Market Cycles
Developed with modern Pine Script for reliability, efficiency, and user control.
Version History
Ver 1.0 - Initial Release
4-factor confluence system
Auto Gann number selection
Adjustable confluence levels (0-4)
Sacred geometry visualization
Signal quality controls
Support
For questions, suggestions, or issues:
Comment on this indicator
Check the code (open source)
Experiment with settings for your trading style
Happy Trading! 📈
Disclaimer
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose. Backtest thoroughly before live trading. Indicator

Gann Sacred Geometry Hexagram Ver 1.2━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔯 GANN SACRED GEOMETRY HEXAGRAM v1.2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A comprehensive technical analysis tool combining W.D. Gann's sacred geometry principles,
hexagram patterns, and advanced confluence scoring for high-probability trade signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 GANN THEORY BACKGROUND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W.D. Gann (1878-1955) believed markets move in geometric patterns and that price
and time must be in balance. His methods incorporated:
- The Square of Nine
- Geometric angles (1x1, 2x1, etc.)
- Sacred geometry and natural law
- Cycle theory and time divisions
- The principle "When time and price square, a change in trend is imminent"
This indicator applies these timeless principles with modern confluence analysis.
SACRED GEOMETRY FOUNDATION:
The hexagram (six-pointed star) is formed by two overlapping equilateral triangles:
- ▲ Upward triangle = Yang energy, bullish forces, expansion
- ▼ Downward triangle = Yin energy, bearish forces, contraction
When overlapped, they create the "Star of David" - representing perfect balance
between opposing market forces. Gann believed this geometry revealed natural
support and resistance zones where price would react.
HEXAGRAM IN MARKETS:
- 6 outer points = Major reversal zones
- Center point = Balance/equilibrium price
- Inner intersections = Secondary support/resistance
- The shape itself creates "harmonic" price levels
GANN'S SQUARE PHILOSOPHY:
"When time and price square, a change in trend is imminent."
- W.D. Gann
This indicator applies the "squaring" concept:
1. SPATIAL SQUARE: Grid cells are perfect squares in price-time space
2. TEMPORAL SQUARE: Time divisions (1/4, 1/2, 3/4) create cycle points
3. PRICE SQUARE: Price divisions (25%, 50%, 75%) mirror time divisions
4. GEOMETRIC SQUARE: All geometry radiates from perfect square centers
When price reaches a corner or edge of a square at a time cycle point,
the "squaring" of price and time creates a reversal probability zone.
PHI IN GANN GEOMETRY:
The Golden Ratio appears throughout natural phenomena and market structure.
This script uses φ in two primary ways:
1. INNER TRIANGLE SCALING:
- Outer triangles span the full cell (100%)
- Inner triangles scaled by φ⁻¹ (0.618 or 61.8%)
- This creates Fibonacci retracement levels geometrically
2. HARMONIC RESONANCE:
- φ ratio divides price space into natural harmony
- Markets tend to pause/reverse at these φ-scaled levels
- Combines Fibonacci analysis with Gann geometry
MATHEMATICAL RELATIONSHIP:
Inner Triangle Height = Outer Height × 0.618
Inner Triangle Width = Outer Width × 0.618
These create the 61.8% retracement levels automatically
within each grid cell's geometry.
GANN'S COMPLETE ANGLE SYSTEM:
Gann identified 9 primary angles that price follows. Each represents a different
relationship between price movement and time passage:
╔════════════════════════════════════════════════════════════════╗
║ ANGLE │ RATIO │ DEGREES │ MEANING ║
╠════════════════════════════════════════════════════════════════╣
║ 1x8 │ 1:8 │ 7.125° │ Very slow trend (gentle) ║
║ 1x4 │ 1:4 │ 14.036° │ Slow trend ║
║ 1x3 │ 1:3 │ 18.435° │ Moderate-slow trend ║
║ 1x2 │ 1:2 │ 26.565° │ Moderate trend ║
║ 1x1 │ 1:1 │ 45.000° │ MASTER ANGLE (most important) ║
║ 2x1 │ 2:1 │ 63.435° │ Strong trend ║
║ 3x1 │ 3:1 │ 71.565° │ Very strong trend ║
║ 4x1 │ 4:1 │ 75.964° │ Extreme trend ║
║ 8x1 │ 8:1 │ 82.875° │ Parabolic trend (unsustainable)║
╚════════════════════════════════════════════════════════════════╝
THE 1x1 ANGLE - THE MASTER:
- Most important angle in Gann theory
- Represents perfect balance: 1 unit price = 1 unit time
- When price is ABOVE 1x1 = Bullish control
- When price is BELOW 1x1 = Bearish control
- Crossing 1x1 = Major trend change signal
ANGLE FANS:
- From any pivot point, all 9 angles radiate outward
- Creates a "fan" of dynamic support/resistance
- Steeper angles (4x1, 8x1) = strong momentum resistance
- Gentler angles (1x4, 1x8) = weak support in downtrends
THE SACRED DIVISIONS OF TIME:
Gann divided all cycles into 8 equal parts, based on ancient geometry
and astrological principles:
CYCLE DIVISIONS (8ths):
┌─────────────────────────────────────────────────────┐
│ 1/8 = 12.5% │ First minor turn point │
│ 2/8 = 25.0% │ First major turn (Cardinal) │
│ 3/8 = 37.5% │ Second minor turn │
│ 4/8 = 50.0% │ MID-CYCLE (most powerful) │
│ 5/8 = 62.5% │ Third minor turn │
│ 6/8 = 75.0% │ Second major turn (Cardinal) │
│ 7/8 = 87.5% │ Fourth minor turn │
│ 8/8 = 100.0% │ CYCLE COMPLETION (reversal zone) │
└─────────────────────────────────────────────────────┘
WHY EIGHTHS?
- 8 is the number of balance in sacred geometry
- Octave divisions create harmonic resonance
- 360° circle ÷ 8 = 45° (the 1x1 master angle)
- Natural cycles show 8-fold symmetry
IN THIS SCRIPT:
When current time position is within 8% of any eighth division,
the "Gann 8ths Timing" factor activates, adding confluence points.
THE CARDINAL CROSS SYSTEM:
The Cardinal Cross divides any square into four equal quadrants,
creating a cross pattern:
100% ●━━━━━━━━━━━━━●
┃ ↑ ┃
75% ┃ SELL ZONE ┃ ← Resistance quadrant
┃ ↑ ┃
50% ●━━━━━●━━━━━━● ← EQUILIBRIUM (most important)
┃ ↓ ┃
25% ┃ BUY ZONE ┃ ← Support quadrant
┃ ↓ ┃
0% ●━━━━━━━━━━━━━●
PRICE LEVELS:
- 0% = Bottom support (grid cell low)
- 25% = Lower mid-level support
- 50% = PERFECT BALANCE - most powerful level
- 75% = Upper mid-level resistance
- 100% = Top resistance (grid cell high)
TIME DIVISIONS:
- 0% = Cycle start (grid cell left edge)
- 25% = First quarter turn
- 50% = Mid-cycle (most powerful timing)
- 75% = Third quarter turn
- 100% = Cycle completion (grid cell right edge)
CONFLUENCE MAGIC:
When BOTH price AND time align at cardinal points simultaneously:
Example: Price at 50% level + Time at 50% of cycle = Maximum power
This is the "squaring" Gann referred to.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Dynamic Grid System (1x1 to 7x7) - Automatically constructed from swing high to swing low
✅ Sacred Geometry Hexagrams - Overlapping triangles creating Star of David pattern
✅ Golden Ratio (φ = 1.618) Inner Triangles - Fibonacci harmony in geometry
✅ 9 Complete Gann Angles - 1x1, 2x1, 1x2, 3x1, 1x3, 4x1, 1x4, 8x1, 1x8
✅ Cardinal Cross Levels - 0%, 25%, 50%, 75%, 100% price divisions
✅ Gann 8ths Timing Cycles - 1/8, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8 time divisions
✅ Price-Time Square Balance - Gann's principle of harmonious price-time relationship
✅ Advanced Confluence Scoring - Multi-factor signal validation (8-30 score range)
✅ Optimized Geometry Display - Shows full detail only near current price (reduces clutter)
✅ Customizable Visual Themes - Full color and thickness control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 GRID CONSTRUCTION:
The indicator identifies the most recent significant swing high-to-low movement using
configurable pivot periods (default: 88 bars). This creates the base "square" which is
then replicated in a grid pattern both vertically (price) and horizontally (time).
📐 SACRED GEOMETRY:
Each grid cell contains:
- Outer hexagram (Star of David) formed by two overlapping triangles
- Inner φ-ratio triangles scaled by the Golden Ratio
- Gann angles radiating from the center point
- Cardinal cross levels dividing price into quarters
🔍 CONFLUENCE SCORING SYSTEM:
Signals are generated when multiple Gann principles align:
1. Cardinal Cross Levels (0-6 points) - Price at key quarter divisions
2. Gann Angle Touches (0-5 points) - Price touching dynamic support/resistance angles
3. Angle Clustering (0-6 points) - Multiple angles converging = strong zone
4. Gann 8ths Timing (0-3 points) - At critical time cycle points
5. Price-Time Square (0-4 points) - Balanced price/time movement
6. Trend Alignment (0-3 points) - Signal direction matches trend
7. Grid Boundary Timing (0-3 points) - Near cell edges = reversal zones
8. φ Triangle Touches (0-2 points) - Golden ratio support/resistance
9. Reversal Patterns (0-2 points) - Wick rejections confirming reversal
Minimum confluence score of 15 required for signal (adjustable 8-30).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 For Daily Charts (Swing Trading):
- Gann Number: 88
- Grid Size: 4x4
- Confluence Score: 15
- Geometry Range: 5
- Trend Filter: ON
📊 For 4H Charts (Intraday):
- Gann Number: 44
- Grid Size: 3x3
- Confluence Score: 12-13
- Geometry Range: 3-4
- Trend Filter: ON
📊 For 15M Charts (Scalping):
- Gann Number: 22
- Grid Size: 2x2
- Confluence Score: 10-12
- Geometry Range: 2-3
- Allow Counter-Trend: Consider enabling
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Use higher confluence scores (15+) for higher probability trades
✓ Combine with volume analysis for confirmation
✓ Respect trend filter - signals with trend are stronger
✓ Watch for signals at grid boundaries (time cycle completions)
✓ Higher scores (20+) indicate exceptional setups
✓ Use alerts to catch signals in real-time
✓ Works best on liquid markets with clear swings
EXAMPLE 1: Strong Buy Signal (Score: 18)
✓ Price touched 50% level (6 pts)
✓ 1x1 Gann angle support (5 pts)
✓ At Gann 8th cycle point (3 pts)
✓ Price-Time squared (4 pts)
= High probability long entry
EXAMPLE 2: Medium Sell Signal (Score: 15)
✓ Price at 75% level (4 pts)
✓ 2x1 angle resistance (3 pts)
✓ Trend aligned downward (3 pts)
✓ Near grid boundary (3 pts)
✓ Bearish wick rejection (2 pts)
= Valid short entry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 CUSTOMIZATION OPTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Structure: Gann Number (11, 22, 44, 88, 176, 352)
- Grid: Size from 1x1 to 7x7
- Geometry: Toggle squares, triangles, angles, levels
- Optimization: Show geometry only near price (performance boost)
- Thickness: All line widths adjustable (1-5)
- Colors: Full color customization for all elements
- Scoring: Adjust all tolerance and threshold parameters
- Timing: Enable/disable Gann 8ths, Price-Time Square
- Filters: Trend filter, boundary requirement, counter-trend signals
- Display: 4 signal styles (Labels, Diamonds, Circles, Stars)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- This indicator is for educational purposes
- Not financial advice - always do your own research
- Past performance does not guarantee future results
- Use proper risk management and position sizing
- Combine with other analysis methods for best results
- Grid redraws when new swing high/low forms
- Signals appear in real-time based on confluence scoring
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📞 SUPPORT & UPDATES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Follow for updates and improvements. Feedback welcome!
Version 1.2 - January 2025
- Optimized geometry rendering
- Enhanced confluence scoring
- Improved visual clarity
- Performance optimizations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Indicator

Gann Square of Nine: Planetary Degrees█ Gann Square of Nine: Planetary Degrees maps planetary positions onto Gann's Square of Nine grid, tracking where pivot highs and lows accumulate by planetary degree. Use this indicator to identify recurring degree patterns on the So9, determine whether pivots cluster around cardinal, diagonal, or other significant angles, and project when the planet will return to those degrees.
Powered by the open-source BlueprintResearch Planetary Ephemeris library , which implements truncated VSOP87 (planets) and ELP2000 (Moon) series for high-accuracy celestial calculations entirely within Pine Script.
█ FEATURES
• Anchor Point System — Select any significant price pivot (high or low) as your reference point; all subsequent pivot tracking begins from this timestamp
• All 10 celestial bodies — Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto
• Geocentric or Heliocentric views — Toggle between Earth-centered (traditional) and Sun-centered perspectives
• Interactive Square of Nine table — Visual grid displaying the Gann spiral pattern with highlighted pivot degrees
• Automatic pivot detection — Configurable bar sensitivity to identify price pivots (symmetric left/right)
• Pivot degree labeling — Each detected pivot displays the planet's ecliptic longitude (0-360°) at that moment
• Target degree alerts — Define specific So9 degrees to watch; triggers alerts when the planet crosses them
• Preset So9 angles — Quick selection of degrees along major So9 lines (0°, 45°, 90°, 135°, 180°, 225°, 270°, 315°)
• Custom degree input — Enter any degrees as comma-separated or newline-separated values
• Future degree projections — Scans up to 500 bars ahead and shows when the planet will reach each target degree
• Retrograde indicator — Shows ℞ symbol with red text when planets are in apparent retrograde motion
• So9 overlay tools — Plot 90° and 45° angle relationships from any entered degree
█ HOW IT WORKS
The Square of Nine Concept:
Gann's Square of Nine is a spiral grid where numbers flow outward from the center (1) in a square spiral pattern. Key angle relationships (0°, 45°, 90°, etc.) align along specific diagonals and cardinal lines. When planetary degrees land on the same So9 position as significant price pivots, it suggests potential support/resistance levels.
This Indicator:
1. User selects an "anchor" timestamp at a significant price pivot
2. The indicator calculates the selected planet's ecliptic longitude (0-360°) at each bar
3. Price pivots detected after the anchor are labeled with their planetary degrees
4. These degrees accumulate on the So9 grid, revealing patterns
5. Target degrees can be set to receive alerts when crossed
6. Future projections show when the planet will reach those target degrees
█ HOW TO USE
1. Click on the anchor timestamp input and select a significant high or low pivot on your chart
2. Choose "High" or "Low" pivot type based on your anchor point
3. Select your planet from the dropdown
4. Choose Geocentric (traditional) or Heliocentric view
5. The So9 table appears showing accumulated pivot degrees highlighted
6. Set target degrees using presets or custom input to receive crossing alerts
7. Future projections appear as vertical lines with date/time labels
8. Use the So9 overlay tools to visualize angle relationships from specific degrees
█ VISUAL GUIDE
So9 Table Colors:
• Anchor degree: White (⚓ symbol)
• Current planet position: Planet's assigned color with symbol
• Pivot Highs: Green background
• Pivot Lows: Red background
• Equal (both high and low): Orange background
• Diagonal crosses: Blue background
• Cardinal crosses: Red background
• Target degrees: Yellow highlight
Chart Labels:
• Pivot High labels appear above the price with the degree
• Pivot Low labels appear below the price with the degree
• Future projection lines: Yellow (upcoming) or Gray (already crossed since anchor)
█ SETTINGS OVERVIEW
1. Anchor Point — Set the starting pivot timestamp and type (High/Low)
2. Planet Selection — Choose celestial body and coordinate system
3. Target Degree Alerts — Configure which degrees to watch and receive alerts
4. Pivot Detection — Set bar sensitivity for pivot high/low detection and degree rounding precision
5. Visual Style — Customize colors and label sizes
6. So9 Grid Overlay — Enter a degree to visualize its angular relationships
7. So9 Table — Position, sizing, and color options for the grid
8. So9 Diagonals — Toggle and color the diagonal/cardinal cross highlights
█ LIMITATIONS & ACCURACY
This indicator uses optimized VSOP87 and ELP2000 series tailored for Pine Script performance. It delivers excellent accuracy for trading and analytical purposes.
Expected Accuracy:
• Sun, Moon, Mercury, Venus, Mars: Within 1-10 arcseconds
• Jupiter, Saturn: Within 10-30 arcseconds
• Uranus, Neptune: Within 1-2 arcminutes
• Pluto: Simplified Meeus method (valid 1900-2100)
Degree Resolution:
The So9 grid uses integer degrees (1-361). Planetary positions are rounded to the nearest whole degree for grid placement. Precise decimal degrees are retained for crossing calculations and alerts.
Crossing Detection:
Future projection lines and background highlights both point to the confirmation bar—the first bar where the crossing can be verified. Alerts also trigger on this bar. This ensures all visual elements align consistently: when the chart reaches a future projection line, that bar closes with the crossing confirmed and highlighted.
█ CREDITS
• Square of Nine grid visualization adapted from ThiagoSchmitz's "Gann Square of 9" (Feb 2023)
• Ephemeris calculations via BlueprintResearch/lib_ephemeris open-source library
Indicator

Planetary Retrograde Periods█ PLANETARY RETROGRADE PERIODS
Visualize when planets appear to move backward through the zodiac. This indicator detects and displays retrograde motion for all 8 planets that exhibit apparent retrograde motion from Earth's perspective: Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Powered by the BlueprintResearch lib_ephemeris library.
█ FEATURES
• 8 Planets Supported — Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto
• Two-Phase Visualization — Distinguishes first half (speed increasing in retrograde direction) from second half (speed decreasing toward direct motion) with different transparency levels
• Future Projections — Projects upcoming retrograde periods up to 500 bars ahead on any timeframe
• Station Markers — Clear labels for Station Retrograde (℞), Midpoint (½), and Station Direct (D)
• Timezone-Aware Labels — Future date/time labels display in your selected timezone
• Alert Conditions — Set alerts for station retrograde, station direct, or any station point
• Per-Planet Colors — Customize colors for each planet individually
• Speed-Based Detection — More accurate than longitude-based methods
█ HOW TO USE
1. Select a Planet — Choose which planet to track from the dropdown (Mercury through Pluto)
2. Enable Two-Phase Display — Toggle "Show Retrograde Halves" to see first half vs. second half shading
3. Configure Future Projections — Set how many bars ahead to scan (1-500) and enable/disable date labels
4. Set Your Timezone — Choose your timezone for accurate future date/time display
5. Customize Colors — Adjust planet colors, transparency levels, and label text color to match your chart theme
6. Create Alerts — Use PulseWire's alert system with the built-in conditions for station points
█ UNDERSTANDING THE DISPLAY
Background Colors:
• First Half of the Planet’s retrograde (lighter shade)
• Second Half of the Planet’s retrograde period (darker shade)
Future Projection Lines:
• ℞ (Station Retrograde) — Yellow dotted line marking when the planet will station retrograde
• ½ (Midpoint) — Shorter line in planet color marking the halfway point of the retrograde period
• D (Station Direct) — Green dotted line marking when the planet will station direct
Labels:
• Top label shows planet symbol and station type
• Bottom label shows projected date and time (optional)
█ ACCURACY
This indicator uses speed-based detection
Timing Accuracy:
• All planets (Mercury through Pluto): Within hours to ±1 day
• Future projections maintain accuracy up to 500 bars on any timeframe
• Spot tested on Daily and Weekly charts with excellent results
For Critical Applications:
Cross-reference with professional ephemeris tools such as JPL Horizons or Swiss Ephemeris for mission-critical timing.
█ TECHNICAL DETAILS
Theory: VSOP87 (Mercury through Neptune), Meeus algorithms (Pluto)
█ REFERENCES
• Meeus, Jean. "Astronomical Algorithms" (2nd Edition, 1998)
• Bretagnon & Francou. "VSOP87 Solutions" — Astronomy and Astrophysics 202 (1988)
Indicator

Planetary IngressDisplays planetary ingresses, the moments when a planet crosses from one zodiac sign into another. This indicator marks historical ingresses directly on your chart and projects upcoming ones with precise date, time, and retrograde status.
Powered by the open-source BlueprintResearch Planetary Ephemeris library , which implements truncated VSOP87 (planets) and ELP2000 (Moon) series for high-accuracy celestial calculations entirely within Pine Script.
█ FEATURES
• All 10 celestial bodies — Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto
• Geocentric or Heliocentric views — toggle between Earth-centered (standard astrology) and Sun-centered perspectives
• Retrograde indicator — shows ℞ symbol when a planet is in apparent retrograde motion (geocentric only)
• Future ingress projection — displays the following sign change as a dotted vertical line with customizable date/time and timezone
• Color-coded by zodiac sign — 12 fully customizable colors for each sign
• Per-sign visibility controls — easily show/hide specific signs
• Per-sign alerts — get notified when a planet enters selected signs
• Fully customizable labels — adjust size, colors, transparency, and placement
█ HOW TO USE
1. Select your planet from the dropdown
2. Choose Geocentric (traditional) or Heliocentric view
3. Historical ingresses appear as labels above price bars with a planet symbol and a zodiac sign
4. The next future ingress is shown as a dotted vertical line with projected date/time
5. Hover over labels for exact degree position (e.g., "0°Ari00'")
6. Set up alerts via "Alert on Ingress" settings for specific sign entries
█ LIMITATIONS & ACCURACY
This indicator uses optimized, truncated VSOP87 and ELP2000 series tailored for Pine Script performance. It delivers excellent accuracy for trading and analytical purposes, but is not intended for professional astronomical use.
Expected Ingress Timing Accuracy (Geocentric view):
• Sun, Moon, Mercury, Venus, Mars: Within hours to ±1 day
• Jupiter, Saturn: Within ±1–2 days
• Uranus, Neptune: Within ±3–7 days
• Pluto: Within ±1–2 weeks (simplified Meeus method, valid 1900–2100)
Heliocentric view: Inner and faster-moving planets match geocentric accuracy. Outer planets (especially Uranus/Neptune) may occasionally show larger variances (up to ±1 month in rare cases) due to their extremely slow motion amplifying minor truncation effects in the series.
Why outer planets vary more:
Slower planets take weeks or months to cross a single degree. Even minor positional discrepancies from truncated terms can shift ingress timing by days or weeks—most noticeable with the outermost bodies.
Recommendation: For mission-critical timing, always cross-reference with professional tools such as JPL Horizons , Swiss Ephemeris, or Astro.com.
█ ROADMAP
Accuracy improvements are an ongoing priority. The modular library design allows targeted upgrades to individual planets without breaking existing functionality.
Planned Enhancements:
• Higher-precision outer planet calculations (Uranus, Neptune)
• Improved heliocentric outer planet accuracy
• Enhanced Pluto method
• Additional series terms where beneficial
Updates will be released through the BlueprintResearch/lib_ephemeris library—follow for notifications.
█ OPEN SOURCE
This indicator is part of the fully open-source Planetary Ephemeris project. The core ephemeris library is public for study, modification, and reuse in your own scripts:
• BlueprintResearch/lib_ephemeris — Main planetary calculation engine
Licensed under MPL 2.0 — free to use and modify, with changes to the library shared back to the community. Indicator

Gann VooDoo LinesGann VooDoo Lines Indicator
Description
- Gann VooDoo Lines is a precise overlay indicator that applies W.D. Gann's Square of 9 mathematics to generate static horizontal support and resistance levels from a single manual anchor price. It calculates 8 key vibrational degrees (45°, 90°, 135°, 180°, 225°, 270°, 315°, 360°) both upward (resistance) and downward (support), delivering clean, timeframe-independent price zones.
Key Features
- Manual anchor price input for complete control
- Individual toggles for each of the 8 degrees
- "Both (Support + Resistance)" mode to display levels in both directions simultaneously
- Extend lines left/right or both
- Dynamic right-side labels that follow the latest bar
- Price values automatically displayed on the right price scale for all visible lines (including anchor)
- Customizable resistance, support, and anchor colors
What Makes It Unique (Compared to Other Gann Scripts)
- Unlike most Gann indicators on PulseWire (which typically focus on sloping angles/fans, auto-detected swings, or limited degrees), Gann VooDoo Lines uses pure static Square of 9 horizontal levels with full individual toggles for all 8 degrees and a dedicated "Both" mode — allowing you to view support and resistance simultaneously without overlap or clutter. The combination of per-degree toggles, dynamic right-side labels, and clean price scale integration (no duplicates or repainting) sets it apart from generic Gann tools that often lack this granular control and visual clarity.
How to Use and Trade With It
- Set the anchor properly — this is the most critical step:
- Choose a major significant price extreme (all-time high/low, major swing high/low, or key psychological level).
- For higher timeframes (daily/weekly): use long-term extremes (e.g., all-time low/high) for "master" levels that influence price over months/years.
- For lower timeframes/intraday: use recent session extremes (today's open, previous close, or recent swing high/low) and update the anchor as needed for fresh levels.
- Experiment: test different anchors and observe which produces the most reactions.
Trading approach:
- Watch for price reactions (reversals, bounces, accelerations) at the lines — especially confluence with multiple degrees or right-side labels.
- Use in "Both" mode for full support/resistance picture.
- Combine with price action (candlestick patterns, volume) for entries/exits.
- Toggle off unused degrees to declutter the chart. Indicator

Gann Octave Pro - Angles & Time Cycles 🎯 Gann Octave Pro - Angles & Time Cycles
## Complete Gann Trading System - Price, Angles & Time in One Indicator
A professional-grade Gann analysis tool combining **Octave Price Levels**, **Gann Angles (1x1, 2x1, 1x2)**, and **Advanced Time Cycle Projections**. Perfect for traders seeking precision market timing through geometric confluence.
---
## 🌟 Key Features
### 📐 Octave Price Levels
- **5 Key Levels**: 0%, 25%, 50%, 75%, 100%
- **Color-Coded**: Green (support) → Blue (50% pivot) → Red (resistance) → Black (boundaries)
- **Dynamic Updates**: Auto-adjusts to swing structure
- **Trading Edge**: 50% level is the most powerful reversal zone
### 📏 Gann Angles
- **1x1 Angle** (Black) - Natural 45° trend line
- **2x1 Angle** (Red) - Steep acceleration zone
- **1x2 Angle** (Red) - Gradual support/resistance
- **Customizable Extension**: Fixed bars or % of swing length
### ⏰ Advanced Time Cycles
**Three Calculation Methods:**
1. **Angle-Level Confluence** ⭐ (Recommended)
- Calculates intersections of Gann angles with octave levels
- Most sophisticated timing system
- Based on price-time geometry
2. **Swing Duration** - Uses actual swing bar length
3. **Harmonic (Swing/8)** - Classic Gann harmonic division
**Cycle Visualization:**
- **Full Cycles** (Purple, solid) - Major turning points, labeled "◆ FC1 (176 bars) "
- **Sub-Cycles** (Blue, dotted) - Minor pivots, labeled "S1 "
- **Mid-Cycles** (Orange, dashed) - Half-cycle inflection points
- **Past Display**: Shows 4 complete past cycles for validation
- **Future Projection**: Projects 8 future cycles for anticipation
---
## 🎯 How to Use
### Quick Start
1. Apply to chart (works all timeframes/instruments)
2. Select period: Default 44 bars (adjust based on timeframe)
3. Choose cycle method: "Angle-Level Confluence" for best results
4. Observe past cycles to validate timing accuracy
### Trading Strategies
**Triple Confluence Setup** (Highest Probability)
- Price at octave level (especially 50%)
- Price touches Gann angle (1x1 most reliable)
- Time cycle arrives (full cycle preferred)
- **Entry**: On confluence | **Stop**: Below/above octave level | **Target**: Next level
**Cycle Anticipation**
- Enter 1-2 bars before cycle line if price at octave level
- Exit at next cycle or target octave level
- **Edge**: Anticipate cycles instead of reacting
**Angle Breakout + Cycle**
- Price breaks 1x1 angle + next cycle within 20 bars
- Hold through cycle, exit at 2x1 angle or next major level
---
## ⚙️ Customization
### Period Selection (88-Based)
11 harmonic options: 3, 6, 11, 22, **44**, 88, 176, 352, 704, 1408, 2816 bars
- **Intraday** (15m-1h): Period 3-4
- **Swing Trading** (4h-Daily): Period 4-5
- **Position Trading** (Daily-Weekly): Period 5-6
### Visual Controls
- **Colors**: Independent for all elements
- **Line Widths**: Separate controls (1-5) for levels, angles, cycles
- **Label Size**: Tiny/Small/Normal/Large (unified)
- **Label Position**: Top/Middle/Bottom
- **Show/Hide**: Toggle any component
### Alerts
- 50% octave level breakouts
- Customizable messages
---
## 💡 Pro Tips
1. **Validate First**: Observe 2-3 past cycles before trading
2. **Adjust to Volatility**: High volatility = lower period (22-44), Low = higher (88-176)
3. **Multiple Timeframes**: Apply on different timeframes for confirmation
4. **Respect 50% Level**: Most powerful reversal zone in Gann theory
5. **Focus on Full Cycles**: Highest probability setups (◆ FC markers)
6. **Combine with Price Action**: Indicator shows WHERE/WHEN, price action shows HOW
---
## 🚀 What Makes It Unique
✅ **Intelligent Confluence Cycles** - Unique angle-level intersection calculation
✅ **Historical Validation** - See past cycles to trust future projections
✅ **Professional Design** - Color-coded hierarchy, clean labels, no clutter
✅ **Complete Automation** - Everything updates in real-time
✅ **Three-Dimensional Analysis** - Price + Angles + Time = complete picture
---
## 📊 Best Markets
- Stock indices (S&P 500, NASDAQ, Dow)
- Forex majors (EUR/USD, GBP/USD, USD/JPY)
- Commodities (Gold, Silver, Oil)
- Crypto (BTC, ETH)
- Liquid stocks
✅ Complete Gann system (price + angles + time)
✅ 3 time cycle methods
✅ Auto swing detection
✅ 4 past + 8 future cycle projections
✅ Professional visualization
✅ Extensive customization
✅ Real-time alerts
✅ Works all markets/timeframes
---
## ⚠️ Disclaimer
This indicator is for educational purposes and applies W.D. Gann methodology principles. Not financial advice. Always use proper risk management, position sizing, and stop losses. Practice on paper before live trading. Past performance doesn't guarantee future results.
---
**The market moves in patterns of price and time. This indicator helps you see them.**
Trade with geometry. Trade with time. Trade with confidence.
Indicator

Gann Octave 8 Ver.2.0Gann Octave 8 Ver.2.0 - Complete Trading Guide
Overview
This indicator combines W.D. Gann's time-tested principles of market geometry with modern technical analysis. It identifies key market structures and projects precise support/resistance levels along with angular momentum lines to help traders identify high-probability trading opportunities.
________________________________________
Core Concepts
1. Gann's Octave Division (The Rule of 8)
W.D. Gann discovered that markets move in harmonic divisions based on the number 8. This indicator divides any swing movement into 8 equal parts (octaves):
• 0% - Swing extreme (High for bearish, Low for bullish)
• 12.5% - First octave
• 25% - Quarter level
• 37.5% - Three-eighths level
• 50% - Midpoint (most critical level)
• 62.5% - Five-eighths level
• 75% - Three-quarter level
• 87.5% - Seventh octave
• 100% - Swing extreme (opposite end)
Why 8? Gann believed natural market cycles follow mathematical harmonics. The octave division provides precise entry and exit points that frequently act as support/resistance zones.
2. Gann Angles (Price-Time Relationship)
Gann angles represent the relationship between price movement and time. Each angle shows different momentum levels:
• 1x1 (Black) - 45° angle, perfect balance between price and time. Most important Gann angle. Represents the natural trend line.
• 2x1 (Red) - Steeper angle, 2 units of price per 1 unit of time. Shows strong momentum.
• 1x2 (Red) - Flatter angle, 1 unit of price per 2 units of time. Shows weak momentum.
• 4x1 & 1x4 (Blue) - Even more extreme angles indicating very strong or very weak trends.
• 8x1 & 1x8 (Orange) - Most extreme angles, parabolic moves or complete consolidation.
Key Principle: When price is above the 1x1 angle = bullish. Below 1x1 = bearish. When price crosses from one angle to another, it signals a change in momentum.
________________________________________
How the Indicator Works
Structure Detection
The indicator automatically identifies market swings using pivot points:
1. Bullish Structure (Green): Detected when price makes a higher high
o Octave levels calculated from swing low (0%) to swing high (100%)
o Gann angles project upward from the swing low
2. Bearish Structure (Red): Detected when price makes a lower low
o Octave levels calculated from swing high (0%) to swing low (100%)
o Gann angles project downward from the swing high
Dynamic Updates
• Swing Tracker ON: Levels update continuously as the swing evolves
• Swing Tracker OFF: Levels lock at the initial swing detection (cleaner charts)
Historical Structures
The indicator maintains previous swing structures based on "Number of Swings to Show":
• Set to 1: Only current structure (cleanest)
• Set to 2-3: Current + recent history (recommended for context)
• Set to 4+: Multiple historical structures (may overlap but shows pattern)
________________________________________
Trading Strategy
Entry Signals
BUY SIGNALS (Green Triangle Up ▲)
Signal 1: Bounce from Support Levels
• Price drops to 0%, 50%, or 100% level and reverses
• Best when combined with bullish candlestick pattern (hammer, engulfing)
• Entry: On signal confirmation
• Stop Loss: Below the support level (0.5-1% below)
• Target: Next octave level up (12.5%, 25%, 50%)
Signal 2: Breakout Above Resistance
• Price breaks above 50% or 100% level with momentum
• Confirms trend continuation or reversal
• Entry: On close above the level
• Stop Loss: Below the breakout level
• Target: Previous swing high or next major level
Signal 3: Gann Angle Support
• Price bounces off 1x1 angle (black line)
• Indicates trend is intact
• Entry: When price respects the angle
• Stop Loss: Below the 1x1 angle
• Target: Next resistance level
SELL SIGNALS (Red Triangle Down ▼)
Signal 1: Rejection from Resistance Levels
• Price rallies to 0%, 50%, or 100% level and reverses
• Best when combined with bearish candlestick pattern (shooting star, bearish engulfing)
• Entry: On signal confirmation
• Stop Loss: Above the resistance level (0.5-1% above)
• Target: Next octave level down (87.5%, 75%, 50%)
Signal 2: Breakdown Below Support
• Price breaks below 50% or 0% level with momentum
• Confirms trend continuation or reversal
• Entry: On close below the level
• Stop Loss: Above the breakdown level
• Target: Previous swing low or next major level
Signal 3: Gann Angle Resistance
• Price fails at 1x1 angle (black line)
• Indicates trend weakness
• Entry: When price rejects the angle
• Stop Loss: Above the 1x1 angle
• Target: Next support level
________________________________________
Advanced Trading Techniques
1. The 50% Rule (Most Powerful)
The 50% octave level is the most critical in Gann theory:
• In Uptrend: Price should not break below 50% retracement. If it holds = trend intact, go long.
• In Downtrend: Price should not break above 50% retracement. If it holds = trend intact, go short.
• Reversal: Breaking and closing beyond 50% often signals trend reversal.
2. Gann Angle Confluence
When multiple Gann angles converge with octave levels = HIGH probability zone:
• Look for price to bounce or reverse at these zones
• Example: 1x2 angle meets 50% level = strong support/resistance
• These zones often become pivot points
3. Multiple Timeframe Analysis
• Use higher timeframe (daily) for major structure
• Use lower timeframe (5min, 15min) for precise entries
• Take trades when both timeframes align
4. Swing Failure Pattern
• Price breaks a key level (e.g., 50%) but quickly reverses back
• This "false breakout" often leads to strong move in opposite direction
• Wait for signal in the reversal direction
________________________________________
Settings Optimization
For Day Trading (Scalping)
• Structure Period: 0-2 (22 bars or less)
• Number of Swings: 1 (only current structure)
• Signal Sensitivity: High
• Swing Tracker: OFF (cleaner)
For Swing Trading
• Structure Period: 4-5 (44-88 bars)
• Number of Swings: 2-3
• Signal Sensitivity: Medium
• Swing Tracker: ON or OFF (preference)
For Position Trading
• Structure Period: 6-8 (176+ bars)
• Number of Swings: 3-5
• Signal Sensitivity: Low
• Swing Tracker: ON
________________________________________
Common Patterns to Watch
Bullish Reversal Setup
1. Price in bearish structure (red levels)
2. Price drops to 100% level (swing low)
3. Buy signal appears (green triangle)
4. Price breaks back above 50% level
5. Action: Go long with stop below 100%
Bearish Reversal Setup
1. Price in bullish structure (green levels)
2. Price rises to 100% level (swing high)
3. Sell signal appears (red triangle)
4. Price breaks back below 50% level
5. Action: Go short with stop above 100%
Trend Continuation
1. Price respects 1x1 Gann angle
2. Small pullback to 25% or 37.5% level
3. Buy/sell signal appears
4. Action: Enter in trend direction
________________________________________
________________________________________
Signal Sensitivity Guide
• Low: Conservative, only major breakouts (3-5 signals per day)
• Medium: Balanced, includes approaches (5-10 signals per day)
• High: Aggressive, includes bounces (10-20 signals per day)
Choose based on your trading style and risk tolerance
________________________________________
Final Words
This indicator is a powerful tool, but remember:
"The market is never wrong. Opinions are." - W.D. Gann
• No indicator is 100% accurate
• Always combine with price action and volume
• Backtest on your instrument and timeframe
• Keep learning and adapting your strategy
• Discipline and risk management are more important than the perfect setup
Happy Trading! 📈
Indicator

Gann ArchitectThe Gann Architect is a quantitative geometric engine designed to solve the primary limitation of standard Gann tools: Scaling.
Standard Gann Fans use fixed angles (e.g., 45 degrees for 1:1), which often fail when applied to volatile assets or different timeframes because they do not account for the specific price-to-time ratio of the asset. This indicator solves this by calculating a Dynamic Slope. It identifies the initial "Impulse Phase" (Anchor Low → First Major High) and mathematically "squares" the chart to fit that specific market structure.
Key Features
Dynamic Squaring: Automatically calculates the true 1:1 Master Line based on the asset's actual volatility, not an arbitrary angle.
Quantitative Alerts: Includes a built-in alert system. You can set alerts for "Crossed 1:1" (Trend Break), "Structural Fail 1:2" (Support Break), or "Impulse Breakout 2:1".
Real-Time Data Panel: A dashboard displays the exact price targets for the geometric levels, removing the need to eyeball the lines.
Efficiency: Uses a circular buffer memory system to ensure high performance ("100% potential") without slowing down your chart.
How to Use
This tool is designed as a Trend Following & Structure Map, not a reversal signal.
The 1:1 Line (Solid): This represents the "True Trend." In a strong bullish phase, price should respect this line as dynamic support. A confirmed close below this line often signals momentum loss.
The 1:2 Line (Bottom Support): This acts as the "Structural Floor." If price loses the 1:1 but holds the 1:2, it is considered a healthy correction. A break below the 1:2 typically invalidates the geometric structure of the current cycle.
The 2:1 Line (Top Resistance): This marks the "Impulse Zone." A break above this line suggests parabolic or over-extended behaviour.
Settings
Cycle Stiffness: Controls the sensitivity of the pivot detection. Increase this value (e.g., to 4 or 5) to filter out noise and focus on macro trends.
Anchor Pivot #: Allows you to select which historical cycle bottom to anchor the geometry to (1 = most recent confirmed bottom).
Slope Multiplier: Adjusts the aggressiveness of the fan. Default is 1.0 (Geometric Standard).
Technical Disclosure (Repainting & Lag)
This script utilises a Confirmed Pivot Detection system.
Signal Lag: To ensure reliability, the geometric fans anchor to confirmed pivots. A pivot is only confirmed after Right Length bars have passed. Therefore, the fans will appear on the chart with a slight delay relative to the absolute low.
Repainting: Once a pivot is confirmed and the fans are drawn, the lines for that specific cycle do not repaint history. However, if a new, lower low forms that invalidates the previous structure, the script will dynamically shift to the new anchor point to maintain geometric accuracy.
Disclaimer This script is for educational and experimental purposes only. Geometric analysis is a mapping tool, not a guarantee of future price action. Always use proper risk management. Past performance of geometric levels does not guarantee future results. Indicator

PyraTime Harmonic 369Concept and Methodology PyraTime Harmonic 369 is a quantitative time-projection tool designed to apply Modular Arithmetic to market analysis. Unlike linear time indicators, this tool projects non-linear integer sequences derived from Digital Root Summation (Base-9 Reduction).
The core logic utilizes the mathematical progression of the 3-6-9 constants. By anchoring to a user-defined "Origin Pivot," the script projects three distinct harmonic triads to identify potential Temporal Confluence—moments where mathematical time cycles align with price action.
Technical Features This script focuses on the Standard Scalar (1x) projection of the Digital Root sequence:
The Root-3 Triad (Red): Projects intervals of 174, 285, 396. (Mathematical Sum: 1+7+4=12→3)
The Root-6 Triad (Green): Projects intervals of 417, 528, 639. (Mathematical Sum: 4+1+7=12→3, inverted)
The Root-9 Triad (Blue): Projects intervals of 741, 852, 963. (Mathematical Sum: 7+4+1=12→3... completion to 9)
How to Use
Set Anchor: Input the time of a significant High or Low in the settings.
Select Resolution: This tool is optimized for 1-minute (Micro-Harmonics) and 15-minute (Intraday Harmonics) charts.
Analyze Clusters: The vertical lines represent calculated harmonic intervals. Traders look for "Clusters" where a Root-3 and Root-9 cycle land on adjacent bars, indicating a high-probability pivot.
System Architecture & Version Comparison This script represents the foundational layer of the PyraTime ecosystem.
This Script (PyraTime Harmonic 369):
Scalar: Standard 1x Multiplier only.
Focus: Intraday & Micro-structure (1m, 15m).
Engine: Core Digital Root Integers.
PyraTime Harmonic Matrix (Advanced Edition):
Scalar Engine: Unlocks Quad-Fractal (4x), Tri-Fractal (3x), and Bi-Fractal (2x) multipliers for institutional cycle analysis.
Apex Logic: Auto-detection of the "963" Completion Sequence (Gold Highlight).
Event Horizon: Includes a live Predictive Dashboard that calculates the time-delta to the next harmonic event across all scalar groups.
Disclaimer This tool is for the educational analysis of Number Theory in financial markets. It projects time intervals and does not predict price direction. Past performance does not guarantee future results. Indicator

PyraTime Intraday Cycles**Concept and Methodology**
PyraTime Intraday Cycles is a technical analysis tool designed to introduce the concept of **Temporal Cycle Projection**. While most indicators analyze price action (Y-axis), this tool focuses exclusively on the X-axis (Time).
By anchoring to a specific "Origin Pivot" (a user-defined High or Low), the script projects harmonic time intervals into the future. These vertical vectors serve as a grid, helping traders identify moments where time-based cycles may align with price structure.
**Technical Features**
This edition is optimized for **Multi-Timeframe Harmonic Flows**, utilizing a fixed algorithm for key intervals:
* **Anchor Point Logic:** The user manually selects a significant market pivot. The script calculates forward projections from this exact timestamp.
* **Standard Rhythms:** This version renders the **5-minute**, **15-minute**, **1-hour**, and **Daily** harmonic sequences. This allows for analysis across scalping, intraday, and swing trading structures.
* **Visual Confluence:** The indicator draws vertical lines to highlight potential zones of temporal exhaustion or acceleration.
**How to Use**
1. **Identify a Pivot:** Locate a significant High or Low on the chart.
2. **Set the Origin:** Open the settings and input the date/time of that pivot.
3. **Analyze Confluence:** Watch how price behaves when it approaches a vertical line. If price hits a key support/resistance level *at the same time* it hits a PyraTime vertical line, this is considered a high-probability "Time/Price" intersection.
**Version Comparison**
This script represents the foundational layer of the Great Pyramid system (PyraTime Apex).
* **PyraTime Intraday Cycles (This Script):** Focuses on Standard Timeframes (5m, 15m, 1h, Daily).
* **GPM Architecture (Advanced):** The full methodology extends these calculations to Esoteric Sequences (33, 144, 108), includes 3x Cycle Extensions, and features a Predictive Dashboard for complex multi-timeframe analysis.
**Disclaimer**
This tool is for educational and analytical purposes only. It identifies time cycles, not price direction. Past performance of a time cycle does not guarantee future results. Indicator

Gann Levels (Auto) by RRR📌 Gann Levels (Auto) — Intraday, Swing & Elliott Wave Precision Tool
Gann Levels (Auto) is a high-accuracy price-reaction indicator designed for intraday scalpers, swing traders, and Elliott Wave traders who want clean, auto-updating support and resistance levels without manually drawing anything.
The indicator automatically detects the latest swing high & swing low and plots the 8 Gann Octave Levels between them. These levels act as a complete price map—showing equilibrium, structure, trend continuation zones, and reversal points with extreme precision.
🔥 Why This Indicator Stands Out
✔ Fully automatic swing detection
Levels update as structure evolves — no manual adjustments.
✔ All Gann Octave levels
Plots 1/8 through 8/8 including the critical 4/8 midpoint.
✔ Intraday-optimized
Exceptional on 1m, 3m, 5m, and 15m charts.
✔ Ultra-clean support & resistance
Levels act as reliable barriers and breakout zones.
⭐ MOST IMPORTANT LEVELS FOR INTRADAY
4/8 – Midpoint (Major Decision Pivot)
Strongest Gann level.
Controls trend or reversal for the session.
Breakout → Trend Day
Rejection → Reversal Day
8/8 & 0/8 – Extreme Structure Edges
Most likely zones for intraday reversals.
Perfect for scalp entries when combined with volume exhaustion.
🎯 How to Trade ELLIOTT WAVE Using Gann Levels
This indicator is exceptionally powerful when combined with Elliott Wave Theory.
Here is how to use it wave-by-wave:
🔵 Wave 2 → Identify Bottom Using 0/8 or 1/8 Levels
Wave 2 typically retraces deep but remains above key structure.
Gann confirmation:
Price stops at 0/8 or 1/8 zone
Rejection wick + low volume breakdown attempt
Bullish intent starts forming
This gives a perfect Wave 3 entry zone.
🔴 Wave 3 → Breakout Above 4/8 Midpoint
Wave 3 is the strongest impulsive wave.
The 4/8 level works like a force-field.
Wave 3 confirmation:
Price breaks and retests 4/8
Strong volume
No deep pullbacks after break
This is one of the most reliable Elliott + Gann trades.
🟡 Wave 4 → Uses 3/8 or 5/8 as Support/Resistance
Wave 4 is corrective and shallow compared to Wave 2.
Gann alignment:
Wave 4 often consolidates between 3/8 and 5/8
Levels act like range boundaries
Avoid trading inside chop; wait for breakout
This gives perfect continuation entries for Wave 5.
🟣 Wave 5 → Ends Near 7/8 or 8/8 Extreme Zone
Wave 5 usually ends in overbought territory.
Gann confirmation:
Price hits 7/8 or 8/8
Momentum weakens
Divergence builds (RSI/MACD optional)
Last push = exhaustion
This is where reversals or major pullbacks begin.
💥 BONUS: Corrective Waves (A-B-C)
Wave A:
Often rejects from 4/8 or 5/8.
Wave B:
Typically trapped between 3/8–5/8.
Wave C:
Usually ends around 0/8 (for bullish trend)
or 8/8 (for bearish trend).
These zones give ultra-high confidence entries.
⚙️ Who This Indicator Is Perfect For
Elliott Wave traders
Intraday scalpers
Swing traders
Price action & structure traders
Traders who want automatic support-resistance levels
Traders who want clean, non-cluttered levels
⚠️ Disclaimer
This indicator is for educational purposes only.
Trading involves risk. Always use proper risk management. Indicator
