0DTE Noon SPX Gann (Runtime Fix)This checks the VWAP at 12:00 PM EDT on a 5-minute chart and draws the 45-degree ascending or descending Gann line automatically.Pine Script® indicatorby ccrose473
Astro: Time-Degree Trend Lines [invincible3]Astro-Gann Time-Degree Trend Lines – Invincible3 Astro-Gann Time-Degree Trend Lines is a range-based financial astrology and Gann timing tool designed to project planetary motion into price space. Instead of plotting ordinary planetary positions, this indicator converts planetary movement into price-degree trend lines using a selected anchor price, anchor time, end time, user-defined planetary starting degrees, a motion harmonic multiplier, and a custom price-per-degree scale. The concept is based on the Gann principle that time, price, and degrees can be harmonically related. Each planet’s movement over the selected range is converted into price movement, allowing traders to study planetary speed, time cycles, price vibration, and harmonic market geometry directly on the chart. The indicator also includes a Gann-style aspect table that compares planet-to-planet angular relationships at the end of the selected range using each planet’s manually entered starting degree. This makes the aspect logic more meaningful because planets no longer begin from a common zero point. Each planet can start from its own real zodiac degree, ephemeris-based value, or symbolic Gann degree. This tool is especially useful for traders who apply W.D. Gann methods, planetary time cycles, price-time squaring, astro-harmonics, Square of 9 logic, 360° degree geometry, and financial astrology to identify possible zones of trend continuation, support, resistance, vibration, or reversal timing. What This Indicator Does The indicator starts from a selected anchor price and anchor time. Each planet also has a user-defined starting degree at the anchor. From that point, the script calculates how many degrees each planet moves during the selected date range, adds that motion to the planet’s starting degree, and then converts the resulting degree value into a projected price level. The projection model is: Planetary Motion = Days × Average Daily Motion × Motion Harmonic Multiplier Line Degree = Starting Degree + Planetary Motion Projected Price = Anchor Price ± (Line Degree × Points Per Degree) This means the starting degree directly affects the trend-line position. For example, if the Sun starts at 4°, moves 30°, and the selected scale is 10 points per degree, then: Line Degree = 4° + 30° = 34° Projected Price = Anchor Price ± 340 points So the line does not only represent planetary movement from zero. It represents the full start-degree-adjusted Gann line degree. Core Concept This is not a standard astronomical aspect indicator. It is a Gann-style time-degree projection tool. The purpose is to study: How many degrees each planet moves during a selected market range. How planetary motion can be translated into price. How each planet’s starting degree changes the projected line position. Which planets produce stronger or weaker price-time slopes. Where planetary degree projections align with price structure. Which planet pairs form Gann/astro harmonic relationships at the end of the range. This makes the indicator useful for analyzing market vibration, planetary speed relationships, price-time geometry, harmonic projection, and range-based astro-Gann timing. Key Features Range-Based Astro-Gann Projection Select a custom time range using: Anchor Time End Time Anchor Price The indicator calculates planetary movement across this exact range and projects it onto the price chart. This allows traders to study planetary motion from an important market event such as: Major swing high Major swing low Breakout point Crash low All-time high Cycle start First trading date Gann anniversary date Important planetary event Major economic or market cycle date The selected range becomes the measurement window for planetary movement and Gann degree projection. User-Defined Starting Degrees Each planet has a manual starting degree input. This allows traders to enter the actual zodiac degree or symbolic Gann degree of each planet at the anchor date. The starting degree affects: The plotted planetary trend-line position The projected price level The end label The final line degree The aspect-table end longitude This correction is important because each planet no longer starts from 0°. Each body can begin from its own real, ephemeris-based, or symbolic starting degree. For price projection, the indicator uses: Line Degree = Starting Degree + Planetary Motion For aspect calculations, the indicator uses: End Longitude = Starting Degree + Signed Planetary Motion Planetary Time-Degree Trend Lines The indicator plots planetary motion lines for: ☉ Sun ☾ Moon ☿ Mercury ♀ Venus ♂ Mars ♃ Jupiter ♄ Saturn ♅ Uranus ♆ Neptune ♇ Pluto ☊ Lunar Node Each planet has: Its own average daily motion Its own starting degree Its own projected line degree Its own color setting Its own visibility toggle The final trend-line position is based on the planet’s starting degree plus its movement over the selected range. Uptrend and Downtrend Projection The indicator can plot: Upward planetary projection lines Downward planetary projection lines Upward lines project planetary degree movement above the anchor price. Downward lines project planetary degree movement below the anchor price. This allows traders to study both bullish and bearish price-time pathways from the same anchor. For example: Up projection = Anchor Price + Line Degree × Points Per Degree Down projection = Anchor Price - Line Degree × Points Per Degree This gives a balanced way to study both expansion and contraction from a selected market point. Points Per Degree Scaling The user can define how many price points represent one planetary degree. Examples: 1 point per degree 10 points per degree 100 points per degree Custom market-specific scaling This is useful because every market has a different vibration. Gold, Bitcoin, forex pairs, stocks, commodities, and indices may require different degree-to-price scaling. The purpose is to find a scale where planetary degree projections align meaningfully with market structure, swing points, or harmonic price zones. Motion Harmonic Multiplier The motion harmonic multiplier can be used to increase or decrease the speed of planetary projection. Examples: 1x = normal planetary motion 2x = double-speed harmonic 0.5x = half-speed harmonic This can be useful for traders who study: Harmonic repetition Accelerated cycles Compressed planetary timing Higher-frequency market vibration Fractional planetary movement The motion harmonic multiplier changes the planetary movement component of the line. It affects the slope and speed of the planetary projection. It should be understood as a speed or cycle multiplier, not as a 360° price octave shift. Gann Aspect Table The indicator includes a compact aspect table that compares planet-to-planet angular relationships at the end of the selected range. The table uses each planet’s starting degree and signed planetary motion: End Longitude = Starting Degree + Signed Planetary Motion Then it calculates the angular separation between planet pairs and finds the nearest Gann/astro aspect. Supported aspect angles include: 0° Conjunction 30° Semi-sextile 45° Semi-square 60° Sextile 72° Quintile 90° Square 120° Trine 135° Sesquiquadrate 144° Biquintile / Gann harmonic 150° Quincunx 180° Opposition The table displays: Planet pair Nearest aspect Angular delta at range end Orb from exact aspect This helps identify which planet pairs are in close harmonic relationship at the end of the selected range. Aspect Interpretation for Gann Traders In financial astrology and Gann analysis, aspects are not used only as traditional astrology signals. They are also treated as geometric divisions of the 360° circle. Important divisions include: 45° and 90° for square pressure and market action 60° and 120° for smoother harmonic flow 72° and 144° for fifth-harmonic and pentagonal geometry 180° for opposition, polarity, and possible culmination 30° and 150° for adjustment zones When a planet pair forms a tight orb near one of these angles, it may indicate a time window where market rhythm, volatility, or direction can shift. The table is not meant to be used as a standalone signal. It is designed to provide astro-Gann confluence with price structure, swing points, trendlines, Fibonacci levels, cycle dates, and market context. How to Use 1. Choose an Important Market Anchor Point Select a meaningful market point such as: Major swing high Major swing low Breakout level Crash low All-time high All-time low First trading date Cycle start Gann anniversary date This anchor becomes the origin point for the projection. 2. Set the Anchor Price Enter the price level from which the planetary degree lines will begin. This is usually the price of the selected swing high, swing low, breakout, or cycle point. 3. Set the Anchor Time and End Time Choose the start and end dates of the range. The indicator calculates planetary movement across this selected time window. The range defines the time component of the Astro-Gann projection. 4. Enter Starting Degrees for Each Planet Enter the starting degree for each planet at the anchor date. These can be: Actual zodiac degrees from an ephemeris Geocentric planetary degrees Heliocentric planetary degrees Symbolic Gann degrees Custom cycle degrees chosen by the trader The starting degree affects both the trend-line position and the aspect-table calculation. 5. Adjust Points Per Degree Increase or decrease the price-per-degree value until the projected planetary lines match the market’s vibration. Different markets may require different scales. For example: Gold may respond better to one scale. Bitcoin may require a larger scale. Forex may require a smaller scale. Stocks and indices may need symbol-specific calibration. 6. Adjust the Motion Harmonic Multiplier Use the motion harmonic multiplier to test faster or slower planetary projection rhythms. For example: 1x = normal planetary speed 2x = double-speed projection 0.5x = half-speed projection This is useful when studying compressed cycles, expanded cycles, or harmonic repetitions of planetary motion. 7. Enable the Planets You Want to Study Enable or disable planets depending on your trading timeframe. General use: Moon, Mercury, Venus = faster short-term timing Sun and Mars = intermediate timing Jupiter and Saturn = larger cycle structure Uranus, Neptune, Pluto = macro or long-term harmonic background Node = long-cycle timing reference in financial astrology 8. Use the Aspect Table Look for tight orbs between planet pairs near important Gann aspects such as: 45° 60° 72° 90° 120° 135° 144° 150° 180° The tighter the orb, the closer the pair is to an exact harmonic relationship at the end of the selected range. Use this as timing confluence, not as a mechanical buy/sell signal. Practical Trading Applications This indicator can be used to study: Price-time squaring Planetary degree projection Market vibration Time-cycle completion Harmonic resistance and support zones Planetary speed-based trend slopes Start-degree-adjusted planetary projection Possible reversal windows Range-based astro-Gann confluence Planet-to-planet harmonic relationships It is best used together with normal market structure tools such as: Swing highs and lows Trendlines Fibonacci levels Support and resistance Volume Momentum indicators Cycle dates Seasonality Volatility zones The strongest use case is when planetary lines, motion harmonics, aspect-table harmonics, and technical market structure all point to the same zone. Important Notes This indicator uses average daily planetary motion, not a full astronomical ephemeris engine. The starting degrees are entered manually by the user. For more accurate astrology-based analysis, users should obtain planetary degrees from an ephemeris and enter them into the starting degree fields. The starting degrees affect both: Visual projection lines Aspect-table calculations This makes the tool more consistent with range-based Astro-Gann analysis. The Lunar Node is commonly treated as retrograde in zodiac motion. For price-line projection, absolute motion may be used for clean visual direction, while aspect logic respects signed motion. Because this is a Gann-style projection tool, the purpose is not to predict with certainty. The purpose is to map possible price-time harmonics and observe where market structure reacts around those projected levels. Known Limitations Planetary positions are based on average motion, not high-precision ephemeris calculations. Manual starting degrees are required for meaningful projection and aspect-table results. The indicator does not automatically fetch real-time planetary longitude. The motion harmonic multiplier changes projection speed, not a 360° price octave. Results should be treated as analytical confluence, not standalone trade signals. Best Use Case This tool is best suited for traders who already use or are studying: W.D. Gann methods Financial astrology Planetary price-time projection Square of 9 logic 360° degree geometry Astro-cycle timing Harmonic market geometry Planetary speed relationships Price-time squaring It is designed for traders who want to visually connect planetary motion, starting degrees, time range, and price movement directly on the chart. Summary Astro-Gann Time-Degree Trend Lines – Invincible3 converts planetary motion into price-degree projections using a selected market range. The corrected logic combines: Starting Degree Planetary Motion Motion Harmonic Multiplier Price-per-degree scaling This creates a practical Astro-Gann projection model where each planet has its own degree origin, its own movement, and its own projected price path. The result is a charting tool for studying planetary price-time geometry, market vibration, harmonic resistance/support, and possible reversal timing. Disclaimer This indicator is for educational and analytical purposes only. It does not provide financial advice or guaranteed market predictions. Always combine astro-Gann analysis with risk management, market structure, and independent trading judgment.Pine Script® indicatorby invincible333
Adaptive Gann & Fibonacci ConfluenceAdaptive Gann & Fibonacci Confluence Overview This indicator automatically detects the dominant swing on your chart — the highest high and lowest low over a lookback you set — and projects three classic geometric tools from that single shared anchor: a Gann fan, a Fibonacci fan, and Fibonacci retracement levels. Because all three are built on the same swing, their levels can be compared directly on one chart. Why these tools are combined A Gann fan and Fibonacci retracements measure two different things. A Gann fan measures trend slope — the geometric balance between price and time, where the 1×1 angle represents one unit of price per unit of time. Fibonacci retracements measure pullback depth — proportional price levels inside a move (23.6 / 38.2 / 50 / 61.8 / 78.6%). Used separately, each tool is anchored differently and the two rarely line up. By forcing both to share one auto-detected swing origin and direction, the script exposes price areas where a Gann angle and a Fibonacci level coincide. A level confirmed by both slope geometry and retracement proportion is the intended point of interest — more meaningful than a level from either method alone. How the components work together The script finds the swing once, then anchors the Gann fan, the Fibonacci fan, and the retracement grid to the same origin and trend direction. The Gann rays and the Fibonacci levels therefore sit on a common reference, so you can spot where a fan ray crosses a retracement level at roughly the same price — that overlap is the "confluence." Shaded zones mark the retracement bands, and a compact table summarizes the live read: directional bias, nearest support and resistance among the levels, current retracement depth, and a plain-language note on where price sits in the swing. What makes it original Rather than drawing Gann angles at fixed chart degrees (which break when you change instrument or zoom), the 1×1 angle here is scaled to the swing's actual price-per-bar, so the angles stay consistent across symbols and timeframes. That swing-scaled Gann geometry is then rendered together with Fibonacci fan and retracement structure on a single, automatically updating anchor — with confluence surfaced visually and condensed into a live snapshot table. The drawing engine rebuilds only when the underlying swing changes, keeping it light. How to use it Set Swing lookback to the structure you trade: smaller values track recent swings, larger values capture higher-timeframe structure. The gold line is the 1×1 (trend-balance) angle; how price reacts to it gauges trend strength. Treat confluence (a fan ray meeting a retracement level) as an area of interest to study, not an automatic signal. 1×1 unit = 0 auto-scales to the swing; set it above 0 to fix a manual ticks-per-bar Gann unit. Toggle the Gann fan, Fibonacci fan, retracement, zone shading, glow, and table independently in settings. Disclaimer For educational and informational purposes only. This script plots geometric levels and a mechanical summary of price position. It is not financial advice, not a recommendation to buy or sell, and offers no guarantee of future performance. Always do your own research and manage your risk.Pine Script® indicatorby Market_Logic_IndiaUpdated 3346
Gann Semicircles Time Projections | Astral Vision Gann Semicircles Time Projections | Astral Vision 🌠💠 This indicator projects Bitcoin's market cycle structure forward in time using a geometric framework based on W.D. Gann's semicircle theory, which treats time as the primary axis of market analysis. The core premise is that significant market cycles repeat in proportional time intervals, and that within each cycle the key inflection points (the parabolic acceleration phase, the cycle top, and the cycle bottom) occur at geometrically predictable subdivisions of the total cycle duration. Calculation ⚙️ The model is anchored to two historically significant Bitcoin cycle bottoms: January 14, 2015 and December 16, 2018. The distance in bars between these two anchors defines the base cycle length R. This cycle is then projected forward three times from the second anchor, producing four complete cycles in total: one historical (2015 to 2018), and three projected forward from 2018 onward. Within each cycle of length R, the indicator draws a hierarchy of semicircles at three levels of subdivision. The first level draws a single large semicircle spanning the full cycle length R with a peak height of 1.0. The second level splits the cycle at the midpoint R/2 and draws two semicircles each with half the peak height, marking the parabolic acceleration zone at the cycle midpoint. The third level splits each half further into quarters R/4 and draws four smaller semicircles each with one quarter of the peak height, marking the early and late phases of each sub-cycle. Each semicircle is constructed by computing 101 points distributed along a sine curve. For each point at position i from 0 to 100, the horizontal fraction along the cycle is computed as (1 - cos(π × i/100)) / 2, which produces a smooth non-linear distribution that accelerates toward the center and decelerates at the edges. The vertical coordinate at each point is sin(π × i/100) multiplied by the peak height. This produces a true geometric semicircle in the time-price space of the sub-panel. The key time projections within each cycle are: the cycle top, placed at the three-quarter mark of the cycle (R × 3/4 from the cycle start), the parabolic move marker at the midpoint (R/2), and the cycle bottom at the end of the cycle (R). Each projection is labeled directly on the price chart at the high of the nearest historical bar, or at the last available high for future projections. Each semicircle is rendered with three layered polylines at decreasing transparency and increasing line width to create a glow effect. Plots 📊 Full-cycle semicircle spanning each complete cycle period, colored with the positive theme color Two half-cycle semicircles at R/2 subdivision, colored with the negative theme color Four quarter-cycle semicircles at R/4 subdivision, colored with the positive theme color All semicircles rendered with a three-layer glow effect Labels on the price chart marking Cycle Top, Parabolic Move, and Cycle Bottom at each key time projection Inputs 🎛️ No period or length inputs: the cycle structure is fully derived from the two fixed historical anchors Colors 🎨 5 Astral Vision presets + custom override. Default: Hermes. Purpose 🎯 Standard cycle indicators use fixed bar counts or calendar-based periodicity, which do not adapt to the proportional structure of each individual cycle. This indicator derives its forward projections entirely from the geometry of the two anchor points, meaning the projected cycle length is empirically grounded in Bitcoin's own historical behavior rather than imposed from outside. The three-level semicircle hierarchy provides a visual map of the entire cycle structure simultaneously, making it possible to identify not just when a top or bottom might occur but also the parabolic acceleration zone that precedes it, which is absent from linear cycle tools. Disclaimer ⭕️ This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions.Pine Script® indicatorby AstralVisionUpdated 1111173
Monthly Gann Box Monthly Gann Box (Structural Crypto, 0↔0.618) This indicator projects a monthly structural Gann framework using the previous month's price range as the foundational measurement. The prior month's low-to-high range is mapped into a geometric 0 ↔ 0.618 scaling model and projected across the current trading month. The script generates both bullish and bearish monthly Gann structures with synchronized price and time divisions, allowing traders to study recurring market geometry, timing relationships, expansion zones, and structural reaction areas within the active month. The framework is designed for swing traders, intraday traders, and market structure analysts seeking a repeatable monthly geometric reference model. Core Features Uses previous monthly high and low as the structural base Projects the structure across the current calendar month Separate Bull and Bear Gann structures Fibonacci/Gann-based ratio mapping Time and price synchronization Primary diagonal balance lines Midpoint structural diagonals Optional geometric mesh overlay Automatic monthly reset and recalculation Efficient object handling for TradingView limits Included Ratio Levels The script plots the following structural levels: 0 0.25 0.382 0.5 0.618 0.75 1 1.272 These levels are projected both horizontally (price) and vertically (time), creating a synchronized structural grid for monthly analysis. Structural Components Bull Structure The bullish framework expands upward from the previous month's low using the 0 ↔ 0.618 mapping model. Bear Structure The bearish framework expands downward from the previous month's high using the inverse mapping model. Primary Diagonals Major corner-to-corner diagonals visualize dominant structural balance and directional symmetry. Midpoint Diagonals Secondary diagonals divide the structure into additional geometric relationships and midpoint reactions. Background Mesh Optional full-grid mesh projection for advanced geometric and structural analysis. Customization Options Users can independently control: Bull Box visibility Bear Box visibility Labels Background mesh Border thickness Level line thickness Diagonal thickness Mesh thickness Intended Use This indicator is designed for traders who study: Gann geometry Market structure Time-price relationships Monthly cycle behavior Expansion and compression zones Structural crypto analysis Swing and intraday market timing The framework can be used on both higher and lower timeframes while maintaining monthly structural alignment. Notes The indicator recalculates automatically at the start of each new month. Structures are derived entirely from the previous monthly candle. Time divisions are normalized using the 1.272 structural expansion. Designed primarily as a structural and geometric analysis tool rather than a standalone signal generator.Pine Script® indicatorby JasonHyde25
Yearly Gann BoxYearly Gann Box (Structural Crypto, 0↔0.618) This indicator projects a full-year structural Gann framework using the previous year's price range as the foundational measurement. The prior year's low-to-high range is mapped into a geometric 0 ↔ 0.618 scaling model and extended into the current trading year. The script creates both bullish and bearish yearly Gann structures with synchronized price and time divisions, allowing traders to analyze long-term market geometry, timing relationships, and structural reaction zones. The framework is designed for macro market analysis, cycle observation, and identifying potential areas of expansion, compression, support, resistance, and directional transitions. Core Features Uses previous yearly high and low as the base measurement Projects the structure across the current calendar year Separate Bull and Bear structural boxes Fibonacci/Gann-based ratio mapping Time and price synchronization Primary and midpoint diagonal structures Optional geometric mesh overlay Automatic yearly reset and recalculation Optimized object management for TradingView limits Included Ratio Levels The script plots the following structural levels: 0 0.25 0.382 0.5 0.618 0.75 1 1.272 These levels are projected both horizontally (price) and vertically (time), forming a synchronized Gann-style grid. Structural Components Bull Structure The bullish framework expands upward from the previous year's low using the 0 ↔ 0.618 mapping model. Bear Structure The bearish framework expands downward from the previous year's high using the inverse mapping model. Primary Diagonals The indicator draws major corner-to-corner diagonals representing dominant structural balance lines. Midpoint Diagonals Additional midpoint diagonals divide the structure into secondary geometric relationships. Background Mesh Optional full-grid mesh projection for advanced structural and geometric analysis. Customization Options Users can independently control: Bull Box visibility Bear Box visibility Labels Background mesh Border thickness Level line thickness Diagonal thickness Mesh thickness Intended Use This indicator is designed for traders who study: Gann geometry Market structure Time-price symmetry Cycle analysis Long-term crypto market behavior Structural expansion and contraction zones It is best used on higher timeframes where yearly structural relationships become more meaningful. Notes The indicator recalculates automatically at the start of each new year. Structures are based entirely on the previous yearly candle. Time divisions are normalized to the 1.272 structural expansion. Designed primarily for overlay analysis rather than direct trade signals.Pine Script® indicatorby JasonHyde14
Linear GANN Levels - Adib NooraniHello Guys This Script is created for plotting the GANN numbers on charts. These levels work as dynamic support and resistance. You don't need to worry about levels being used multiple times, or strength of the levels. These are pre-calculated mathematical levels, based on W. D. Gann logic. Buy Setup Wait for bullish patterns on the levels and trade as per pattern rules Sell Setup Wait for bearish patterns on the levels and trade as per pattern rules Risk Don't risk more than 1% of the capital per trade Trading Hours Always trade high liquidity areas, like first 2 hours of market open or session open Instruments Works on all the instruments through out the financial world, results are better if used on candlesticks Bullish Candlestick Patterns - Bullish Engulfing, Hammer, Morning Star Bearish Candlestick Patterns - Bearish Engulfing, Inverted Hammer, Evening Star These patterns are enough to trade the GANN levels Pine Script® indicatorby AdibNoorani66860
Mercury Retrograde (Astrology Trading Down to 1 minute level)The Astro-Trading Edge www.youtube.com Mercury Retrograde Data: Precision Down to the Minute Our script features hardcoded dates for absolute accuracy, providing Mercury Retrograde data with one-minute precision. By simply clicking the Rx (Retrograde) or Direct tags, you can access the exact event times in UTC, clearly displayed in text format. The Power of Your "Lens" Ultimately, successful trading is a reflection of your mindset. Visionaries like Warren Buffett, W.D. Gann, and Elon Musk can all look at the exact same chart, yet they arrive at different conclusions because they view the market through different "eyeglasses." Their perspectives are shaped by their unique philosophies and tools. Adding the Astro Layer By incorporating the nuances of Mercury Retrograde into your strategy, you add a sophisticated layer to your technical analysis. Elevate your trading journey by integrating the wisdom of financial astrology. Explore more at: www.gannexplained.com Refining the Gann perspective — Khit WongPine Script® indicatorby Gann_Explained27
Gann Fan v15 [Phases + Signals]Gann Fan v15 is a strategy inspired by the classic Gann Fan and Gann Angles methodology attributed to W.D. Gann. Gann’s original approach studied the relationship between price, time, geometry, and market angles to identify trend strength, diagonal support and resistance, and potential changes in market behavior. Credit: The base concept of the fan angles comes from the Gann Fan / Gann Angles method attributed to W.D. Gann. This script does not claim to reproduce Gann’s original work exactly. It is an independent strategy built around that historical concept, with additional logic for phase detection, signal confirmation, visual analysis, and risk management. What makes this strategy different: This script is not only a traditional Gann Fan drawing tool. A classic Gann Fan usually plots diagonal angle levels from a selected high or low. This strategy adds a complete decision framework on top of the Gann Fan concept. The main differences are: 1. Automatic pivot detection The script automatically detects recent pivot highs and pivot lows instead of requiring the user to manually anchor the fan. 2. ATR-normalized angle calculation Instead of using only fixed visual chart angles, the script calculates movement angles using ATR normalization. This helps adapt the angle reading to the volatility of the current symbol. 3. Market phase classification The script classifies the market into four phases based on the calculated angle: ACCUM: weak angle or low momentum. MODER: moderate directional movement. EXPAN: stronger directional expansion. ACCEL: extreme acceleration. 4. Visual phase background The chart background changes according to the detected phase and direction. This helps the user quickly identify whether the market is in accumulation, moderate movement, expansion, or acceleration. 5. LONG and SHORT signal logic The strategy generates LONG and SHORT signals using Gann-inspired angle behavior, swing direction, EMA confirmation, and candle confirmation depending on the selected entry mode. 6. Multiple entry modes The user can choose between three signal modes: Strict, Medium, and Easy. Each mode changes how much confirmation is required before a signal appears. 7. Built-in risk management The strategy includes configurable Stop Loss, Take Profit, optional Trailing Stop, and visual TP/SL guide lines. 8. Dashboard A table shows the current swing direction, live angle, current phase, bullish fan angle, bearish fan angle, active mode, and phase thresholds. How the strategy enters LONG: A LONG signal appears when the market structure is bullish and the selected entry mode confirms that the bullish movement has enough strength. Mode 1 - Strict: A LONG entry requires the market phase to transition from ACCUM or MODER into EXPAN or ACCEL. The swing must be bullish, EMA 8 must be above EMA 21, and the candle must close bullish. Mode 2 - Medium: A LONG entry can appear when the current phase is MODER, EXPAN, or ACCEL. The swing must be bullish, EMA 8 must be above EMA 21, and the candle must close bullish. Mode 3 - Easy: A LONG entry can appear when the current angle is above the weak angle threshold, the swing is bullish, price closes above EMA 8, and the candle is bullish. How the strategy enters SHORT: A SHORT signal appears when the market structure is bearish and the selected entry mode confirms that the bearish movement has enough strength. Mode 1 - Strict: A SHORT entry requires the market phase to transition from ACCUM or MODER into EXPAN or ACCEL. The swing must be bearish, EMA 8 must be below EMA 21, and the candle must close bearish. Mode 2 - Medium: A SHORT entry can appear when the current phase is MODER, EXPAN, or ACCEL. The swing must be bearish, EMA 8 must be below EMA 21, and the candle must close bearish. Mode 3 - Easy: A SHORT entry can appear when the current angle is above the weak angle threshold, the swing is bearish, price closes below EMA 8, and the candle is bearish. Risk management: The strategy includes a configurable Stop Loss percentage and Take Profit percentage. When Trailing Stop is enabled, the Take Profit level is used as the trail activation price. The strategy also includes an optional open-profit protection feature that can close the position after a minimum open profit condition is reached. TP and SL levels are displayed on the chart while a position is active. Visual elements: Dynamic bullish and bearish Gann Fan levels. Phase-colored background. EMA 8 and EMA 21. LONG and SHORT labels. Live angle label. Dashboard with current market state. TP and SL lines. Important usage notes: Gann Fan and angle-based analysis can be sensitive to chart scaling, timeframe, volatility, and market conditions. This strategy should be tested on each symbol and timeframe before use. The default parameters are only a starting point. Users should adjust the angle thresholds, pivot periods, Stop Loss, Take Profit, and Trailing Stop according to their own testing. Disclaimer: This script is for educational and analytical purposes only. It does not provide financial advice. It does not guarantee profits. Past performance does not guarantee future results. Always use proper risk management.Pine Script® strategyby TagsTradingUpdated 11109
Pythagorean Time Price Geometry Ver 1.0Pythagorean Time Price Geometry — Ver 1.0 By Timepricedecoder Overview This indicator applies W.D. Gann's Time = Price principle using Pythagorean geometry to project natural time cycles and price grid levels directly on the chart. Gann believed that financial markets move in geometric harmony — that price and time are not independent variables, but two sides of the same equation. When they balance, the market reaches a natural turning point. This script operationalises that idea using the Pythagorean theorem — the ancient mathematical relationship where in a right-angled triangle, the square of the hypotenuse equals the sum of squares of the other two sides (a² + b² = c²). In market terms: Side A (time) — the number of bars in the anchor swing Side B (price) — the range of the anchor swing (High − Low) Side C (hypotenuse) — the natural cycle projection derived from both By selecting a Pythagorean Triple (sets of whole numbers satisfying a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17), the script scales the time-price relationship into a precise geometric ratio. This ratio then defines the grid cell size, the cycle length, and the angle of the diagonal — all derived from a single anchor swing. The result is a self-organising grid that maps where price should find support or resistance, and when time cycles are due to complete — giving the trader a structured, geometry-based framework rather than arbitrary indicator levels. When time and price arrive at the same Pythagorean node simultaneously — the market is squaring — and that is where the highest-probability signals are generated. Core Concepts Time = Price Squaring Price range and time duration are treated as the two legs of a right triangle. When they balance — the market is at a Square — reversals or accelerations are most likely. Pythagorean Nodes From the anchor swing (High → Low or Low → High), the script calculates: Sq — Square of the swing (time leg = price leg). Highest grade signal Hyp — Hypotenuse projection. Major cycle marker ½Hyp — Half Hypotenuse. Minor cycle node ½Sq — Early warning zone These project forward as repeating time cycles across the chart. Harmonic Grid Price is divided into cells derived from the Pythagorean triple ratio (B/A × Range). The grid repeats both in time (columns) and price (rows), creating a natural map of support, resistance, and time confluence. Signal Tiers 🟨 BUY/SELL-Sq — Time node + Price grid level align. Strongest signal 🟩 BUY/SELL-T — Time node only. Moderate signal ⬜ BUY/SELL-P — Price grid level only. Weakest, disabled by default Confluence Zones ⚡ ⚡ — Quarter cycle node ⚡⚡ — Half cycle node ⚡⚡⚡ — Full cycle node (highest confluence) Recommended Settings StyleGann NumberDivisorTripleSwing WidthScalping221/44-3-5NarrowShort Term441/24-3-5NormalMedium Term881/23-4-5NormalLong Term176Full3-4-5Wide InstrumentType SettingNotesOptionsOptionsGrid origin auto-adjustedIndicesIndicesUse 88, 1/2 divisorStocksStocksUse Adaptive stabilityFuturesFuturesUse 44 or 88 Grid Stability Strict — Anchors rarely shift. Best for trending markets Adaptive — Default. Balances stability and responsiveness Relaxed — Reanchors more freely. Best for ranging markets How To Use Let the script auto-detect the swing anchor (or set manually) Watch for Sq labels on vertical cycle lines — these are key dates Enter on BUY-Sq / SELL-Sq signals with candle confirmation Use ⚡⚡⚡ confluence zones as high-alert turning point windows The active zone box shows current grid cell position (Upper = bullish bias, Lower = bearish bias) Disclaimer This script is published for educational purposes only. It does not constitute financial advice. Past signal accuracy does not guarantee future results. The swing detection uses Daily OHLC data with lookahead enabled — results may differ slightly on live bars versus historical bars. Always use proper risk management. Trade at your own risk.Pine Script® indicatorby TimePriceDecoder22134
Gann Time Cycles Pro: Confluence Think of the stock market like a giant, calm pond. When the market has a **massive crash** (a bottom) or hits a **crazy all-time high** (a top), it is like dropping a giant boulder into that pond. That boulder creates ripples. Those ripples travel forward in time. According to W.D. Gann, those ripples hit the shore at very specific mathematical intervals: **90 days, 180 days, 270 days, and 360 days** later. When a ripple hits, the market usually changes direction violently. ### How to Use the Custom Features (User-Defined) **1. The 5 Anchors (Your "Boulders")** Instead of just tracking one boulder, the system lets you drop up to 5. * **How to use it:** Look at a Daily chart. Find the lowest low of last year. Make that **Anchor 1**. Find the highest high of six months ago. Make that **Anchor 2**. * *Layman Translation:* You are telling the system, "Hey, these two dates were super important. Show me where their future ripples are going to land." **2. The Custom Cycles (Your "Custom Ripples")** You already have the standard ripples (90, 180, 270, 360). But what if a specific stock, like Tesla or Reliance, has its own weird, unique rhythm? Or what if you want to use the famous "144" Fibonacci number? * **How to use it:** Go into the settings and type `144` into Custom Cycle 1, and maybe `45` into Custom Cycle 2. * *Layman Translation:* You are telling the system, "I don't just want the standard ripples. I want to see a special ripple exactly 144 days after my boulder dropped." --- ### Your Step-by-Step Action Plan (How to trade it tomorrow) Here is exactly what you do when you open TradingView: **Step 1: Turn on the Engine** Apply the indicator to your chart. Go to the settings. **Step 2: Set your Anchors (The Past)** Look back at the chart and find 2 or 3 major turning points (big V-shaped bottoms or upside-down V-shaped tops). * Check the box for `Use A1` and put in the date of the first bottom. * Check the box for `Use A2` and put in the date of the top. **Step 3: Set your Cycles (The Rhythm)** Leave the standard 90, 180, 270, and 360 as they are. If you like a specific number (like 45 or 144), type it into the Custom slots. If you don't want custom ones, just type `0` to turn them off. **Step 4: Hunt for the "Time Cluster" (The Future)** Now, look at the blank, empty space on the right side of your screen (the future). The system has drawn a bunch of vertical lines (Orange for Calendar days, Blue for Trading days). **THIS IS THE MOST IMPORTANT PART:** You are looking for a spot where a line from Anchor 1 lands **right next to, or exactly on top of**, a line from Anchor 2. * *Example:* Let's say Anchor 1's 360-day line lands on October 15th. And Anchor 2's 180-day line lands on October 16th. * *What it means:* Two massive historical ripples are crashing into each other at the exact same time. **Step 5: How to Trade It** When the actual date arrives (October 15th), you do not just blindly buy or sell. You watch the price action. * If the stock has been going up, up, up into that October 15th date... expect it to suddenly reverse and crash down. (Take profits, or prepare to Short). * If the stock has been bleeding and crashing down into that October 15th date... expect it to suddenly find a bottom and shoot up. (Get ready to Buy). **In short:** You use the overlapping lines to circle dates on your calendar. When that date arrives, expect the current trend to suddenly flip directions.Pine Script® indicatorby moodyankit73
Solar Eclipse, Lunar Eclipse (down to 1 minute)these are the solar eclipse and lunar eclipse down to 1 minute level this is highly useful to use it together other gann trading tools to predict market top and bottom. once you see it with a differnt gann eye glasses. the same chart will be seen differently and profit can be easily taken as in shown in www.gannexplained.com supported by both khit wong and his student's beokerage statement the source time is from NASA, and they are all hard coded into the script. this will facilitate you to aware the upcoming and past solar eclipse time. we believe this is the best solar and lunar eclipse indicator you can have in the communityPine Script® indicatorby Gann_Explained3325
Trend Angle Monitor | Fibonacci & Gann Cycles Trend Angle Monitor | Fibonacci & Gann Cycles Overview Trend Angle Monitor measures the slope angle of price relative to the Average True Range (ATR) across three independent periods. By normalizing price movement with ATR, the tool produces degree-based angle readings that reflect genuine momentum strength — regardless of the asset's absolute price level or volatility regime. All three periods are derived from Fibonacci and Gann cycle numbers and are automatically adjusted to the active chart timeframe. How it works Angle calculation Each angle is derived from the arctangent of the price change over a given lookback period divided by the ATR of that same period. Positive values indicate upward momentum; negative values indicate downward momentum. The magnitude reflects the steepness of the trend relative to normal volatility — not just raw price distance. Three independent periods (P1, P2, P3) Three trend angle lines are plotted simultaneously, each operating on a different lookback period. P1 is the fastest (short-term momentum), P2 is intermediate, and P3 is the slowest (structural trend). Period values are sourced from the Fibonacci sequence and Gann cycle theory: P1 — Fast: 8, 13, or 21 bars depending on timeframe P2 — Medium: 13, 21, 34, or 55 bars P3 — Slow: 21, 55, 89, or 144 bars Auto timeframe detection When enabled, the tool detects the current chart timeframe (M1 through 1W) and automatically selects the most appropriate Fibonacci/Gann period set and angle thresholds. A manual preset override is available for users who prefer fixed parameters. Background gradient The chart background reflects the combined momentum state of all three angle lines. Each angle scores +1 (above upper threshold), −1 (below lower threshold), or 0 (neutral). The total score ranges from −3 to +3, producing seven distinct states: +3 Yellow → Green — all three bullish +2 Yellow → Light Green — two bullish +1 Yellow → Gold — one bullish dominant 0 Orange — mixed / neutral −1 Orange → Red — one bearish dominant −2 Red-Orange — two bearish −3 Orange → Deep Red — all three bearish The gradient deepens progressively the longer the regime persists, building intensity over up to 30 bars. Long / short signals A green triangle (▲) is plotted below the bar when all three angles simultaneously cross above their upper thresholds for the first time (score transitions to +3). A red triangle (▼) is plotted above the bar when all three angles simultaneously cross below their lower thresholds (score transitions to −3). Signals are non-repeating: once a long signal fires, it will not fire again until a confirmed short signal (−3) has occurred first, and vice versa. This prevents signal spam during choppy conditions while preserving clean re-entry logic after a genuine trend reversal. Bar coloring Individual bars are colored based on the P1 (fastest) angle state — bullish color above the upper threshold, neutral color within the neutral zone, bearish color below the lower threshold. Trend lines and labels Each of the three periods draws a straight price line from the lookback bar to the current bar, color-coded by its momentum state. Optional floating labels display the current angle value in degrees at the origin of each line, positioned above or below price depending on whether the angle is rising or falling. Info panel A compact table in the bottom-right corner shows the current and previous bar angle values for all three periods, color-coded by regime. It also displays the active timeframe preset, the threshold in use, and an overall BIAS reading (BULLISH / NEUTRAL / BEARISH) based on whether all three angles are in agreement. Settings Preset settings Auto timeframe detection — enables automatic period and threshold selection Manual preset — choose from M1, M5, M15, M30, 1H, 4H, 1D, 1W Show info panel — toggle the summary table Background gradient — toggle the background color system Per-line settings (repeated for P1, P2, P3) Show line, price source, period (manual), use auto period Show label, line thickness Line color, bullish color, bearish color, neutral color Upper / lower threshold (manual), use auto threshold Notes Plots directly on the price chart as an overlay. No external data sources are used. All calculations are self-contained. Signals are bar-confirmed and do not repaint. Designed for use on any liquid instrument across all major timeframes. This tool is for informational and educational purposes only. It does not constitute financial advice, a trading recommendation, or a signal to buy or sell any asset. Past performance of any pattern or signal does not guarantee future results. Always confirm setups across multiple timeframes and combine this tool with other forms of analysis before making any trading decision. Never risk more than you can afford to lose, and always apply proper position sizing and risk management. You are solely responsible for your own trading decisions. Pine Script® indicatorby hasanaksoy19926447
Gann Sq9 Levels - @darshaksscGann Square of 9 (Sq9) is one of W.D. Gann's most powerful tools for identifying price support and resistance levels. This indicator applies the core Sq9 formula — stepping ±0.25 increments on the square root of a base price — to automatically plot key levels directly on your chart. 𝗛𝗼𝘄 𝗶𝘁 𝘄𝗼𝗿𝗸𝘀: The indicator takes a base price (session high/low midpoint, session open, previous close, or manual input) and calculates symmetrical resistance levels (R1–R6) above and support levels (S1–S6) below using the Gann Sq9 formula: Level = (√Base ± n × 0.25)² 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀: - Automatic Gann Sq9 support and resistance levels - 4 base price modes: Session Mid, Session Open, Previous Close, Manual - Clean dashboard showing R3 → LTP → S3 at a glance - Price proximity alerts when approaching key levels - Fully customisable colors and level count (1 to 10 each side) - No repainting — all levels calculated and drawn on confirmed data - Works on all instruments and timeframes (best on 5m, 15m, 1H intraday) 𝗛𝗼𝘄 𝘁𝗼 𝘂𝘀𝗲: R1 and S1 are your primary levels for the session. Price respecting R1 = bearish bias; price holding above S1 = bullish bias. Use R2/S2 as targets and R3/S3 as extended targets or stop zones. 𝗕𝗮𝘀𝗲 𝗣𝗿𝗶𝗰𝗲 𝗚𝘂𝗶𝗱𝗲: → Session Mid (H+L/2) — recommended for intraday → Session Open — for gap-based analysis → Previous Close — for overnight/positional setups → Manual — for custom anchoring to any reference price 𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲𝘀: Best on 5m / 15m / 30m / 1H 𝗜𝗻𝘀𝘁𝗿𝘂𝗺𝗲𝗻𝘁𝘀: Indices, Stocks, Futures, Forex, Crypto ⚠ This indicator is for educational and analytical purposes only. It does not constitute financial advice. Always use your own judgment and risk management when trading.Pine Script® indicatorby darshakssc88952
Gann Time Price Geometry Ver 1.0Gann Time Price Geometry — Ver 1.0 This indicator builds a dynamic Gann Square grid directly on your chart, anchored to automatically detected swing highs and lows. It combines classical Gann geometry with a scoring-based signal engine to highlight high-confluence buy and sell opportunities. How it works The script uses a Vector Circle Search to find the best pivot pair within a harmonic window around your chosen Gann number (88 bars by default). It scores each candidate swing by how closely its price-per-bar ratio and duration match the ideal Gann proportion, then anchors the full grid to the winning pair. What you get on the chart What is Drawn on the Chart 🔲 Full Square The outer Gann Square spans your chosen Gann number in bars horizontally, and 2× the detected swing range vertically. This is the master structure everything else is built inside. 🔲 Sub-Squares (4 Inner Cells) The full square is divided into 4 equal inner cells — 2 columns × 2 rows. Each cell gets its own set of angle lines projected from its corners. This creates nested geometry that gives you finer entry and exit precision within the larger structure. 📐 Angle Lines 1x1 — the true balance angle between price and time, projected from all four corners of both the full square and each sub-cell 2x1 / 1x2 — steeper and shallower angles showing acceleration and deceleration zones All angles are clamped within their respective square boundaries so the chart stays clean ⏱️ Time Cycle Verticals Vertical lines mark Gann's 1/8 harmonic divisions of time across the square: 1/2 cycle (orange, prominent) — the most powerful time node, midpoint of the square 1/4 and 3/4 cycles (dashed) — secondary time divisions where reactions are common 1/8 minor cycles (optional) — finer subdivisions for short-term timing When price reaches an angle line and a time cycle vertical at the same bar — that is a Gann confluence point, and where this indicator focuses its signals. Signal scoring (max ~10 pts per signal) Set Min Confluence Score to 3–4 for quality signals. Lower it to 0 to see all geometrically valid touches. Settings to tune first Match Gann Number to your timeframe (88 for most, 44 for fast charts) Check the Info Table — if Swing pts/bar doesn't match Diagonal, update the Swing Diagonal Is dropdown Adjust Period Divisor to the harmonic you are trading (1/2 suits swing traders) Alerts included — Gann Buy and Gann Sell, fire on bar close. First-Time Setup — 3 Steps Step 1 — Choose your Gann Number Start with 88 on Daily or 4H charts. Use 44 on 1H or faster. This defines the width of your square in bars. Step 2 — Match the Diagonal Open the chart, look at the Info Table. Find Swing pts/bar and the suggest note next to it. If it says "use 2x1", set the Swing Diagonal Is dropdown to 2x1. Green ✅ means you are calibrated correctly. Step 3 — Set your Confluence Level Start at 3. If you are getting too many signals, raise it to 4 or 5. If you want to study all geometric touches without filtering, set it to 0. Works on: Any instrument — stocks, crypto, forex, indices, commodities Works on: Any timeframe — tune Gann Number to match Alerts: Gann Buy and Gann Sell included, fire on bar close Note on Line Limits TradingView Pine Script has a 500-line limit. Keep Squares Forward and Squares Backward at 2 or below to stay within this limit. The indicator will silently drop lines if the limit is exceeded. Pine Script® indicatorby TimePriceDecoder33117
BK AK-GannBox King👑📐 BK AK–GannBox King 👑📐 🙏 All glory to G-d Respect to AK — discipline, patience, and clean execution. acknowledgement This project started from a foundation I built off ideas and inspiration I got from Zeiierman’s work. Respect to Zeiierman — one of the best creators on TradingView. That was the starting spark. From there, this became my own expanded Gann framework: a broader box-and-confluence system built around visible-range structure, Gann and Fibonacci geometry, Square of 9 levels, harmonic pattern detection, timing intervals, signal logic, and multi-layer reaction zones. what this indicator is GannBox King is a full-chart market geometry framework built to turn one visible swing range into a working map of price, time, and confluence. At the center of the script is the Gann Box: a visible-range high and low define the active working move that move is divided into key Gann and Fibonacci percentages those levels are then expanded into fans, angles, harmonic ratios, timing intervals, extensions, and Square of 9 projections The goal is not to “predict” every turn. The goal is to give you a structured map so you can answer the real questions: where is price inside the active range? which levels matter most right now? where are multiple tools pointing to the same zone? is price bouncing, breaking, or clustering around a level that should matter? what it builds on the chart Gann Box structure The core engine builds a box from the visible high/low range on the chart and divides it into internal percentages. You can use classic Fibonacci levels, Gann 1/8ths, extended sets, or custom ratios. This becomes the main structural map. Gann Fan and Gann Angles The script can project diagonal geometry from the box so you can read slope, acceleration, and angle-based reactions instead of only horizontal levels. Gann Curves Quarter-circle style curve projections extend the box into arc-based geometry for traders who want to study rounded reaction paths and non-linear movement. Harmonic ratio levels Optional 1/8th and 1/3rd divisions add more internal structure to the box. These are useful when the standard retracements are too wide and price is reacting inside the range. Confluence zones One of the strongest parts of the script. It checks whether multiple features are clustering in the same area: horizontal box levels fan geometry angle geometry curve geometry higher timeframe box levels When several features meet near the same price, the script can mark that zone as a confluence area. Square of 9 levels The script includes a Square of 9 engine anchored to either: close box high box low box midpoint or a custom price From there it calculates cardinal, opposition, and full-rotation levels so you can compare classic Gann price geometry against the visible box structure. Harmonic pattern detection The script can detect: Gartley Butterfly Bat Crab It reconstructs pivot structure, validates ratios, grades the pattern, and can draw a PRZ zone around D completion. Time cycles The script can also project timing intervals from the anchor point: Fibonacci time zones Gann intervals such as 90, 180, 270, and 360 This helps bring time into the same framework as price. Fibonacci extensions When price leaves the original box, extension levels can project continuation targets beyond the core structure. Signal and reaction tools The script can flag: bounce up bounce down breakout up breakdown based on proximity to the nearest Gann level and optional volume confirmation. Extra context layers It can also add: proximity bar coloring heatmap zones based on repeated level touches auto support/resistance labels price tags higher timeframe box overlays mirror/symmetry projections dashboard table for feature status and directional bias how it works (core idea) Step 1 — define the active move The script reads the visible range on the chart and finds the working high and low. Step 2 — divide that move into geometry Once the range is set, the script builds the box and all related percentage levels. Step 3 — expand that geometry into multiple dimensions Those levels are then projected through: horizontal price structure diagonal fan/angle structure curve structure time intervals extension targets Square of 9 rotations Step 4 — measure overlap The script looks for places where different tools point to the same area. Those zones matter more than isolated single lines. That is the real purpose of the tool: not just “draw a Gann Box,” but build a layered reaction map. how to use it Start simple first. Begin with the box Turn on the Gann Box and labels first. Do not start with every feature active. Read how price behaves around: 25 percent 38.2 percent 50 percent 61.8 percent 75 percent 78.6 percent 87.5 percent Watch the 50 percent line carefully This is one of the most important levels in the entire script. If price holds the midpoint, the trend often remains structurally intact. If price loses it cleanly, the probability of deeper rotation increases. Add confluence next After the box is clear, turn on confluence zones. Those are often more useful than staring at every raw line individually. Use signals only near important levels Bounce and breakout markers are most useful when they happen: near a major internal ratio at a confluence zone near Square of 9 levels with volume confirmation Use harmonics and extensions as secondary layers Harmonic patterns are best treated as completion/context tools. Extensions are best treated as objective continuation targets after price leaves the main box. Add time cycles if you want timing context Time cycles do not force a reversal by themselves. They help you identify when a known price level is being tested at a potentially meaningful timing window. what makes this different A normal Gann Box script stops at drawing a box. This one does more than that. It tries to make the box a full working framework by combining: visible-range Gann geometry Fibonacci internal levels harmonic internal divisions confluence detection Square of 9 price projections time cycle overlays harmonic pattern detection extension targets higher timeframe overlays symmetry projections signal markers and bar-color context So instead of treating Gann tools, harmonic tools, and Fib tools as separate chart clutter, this script tries to make them speak the same language inside one structure. practical use cases This script is especially useful for traders who want: a structured swing map instead of random line drawing reaction zones built from multiple methods, not just one a way to combine Gann geometry with Fib logic and harmonic completion a visual framework for breakout, bounce, and failure scenarios Typical workflows: intraday reaction mapping around a visible range swing structure planning from a major leg confluence hunting between box levels, Sq9 levels, and patterns timing studies where price and cycle intervals meet limitations (important) This tool is a geometry and reaction framework, not a guarantee engine. A few things matter: the visible range you choose changes the structure more features does not always mean better analysis harmonic detections depend on pivot confirmation and ratio tolerance time cycles are context tools, not automatic reversal signals confluence matters most when price is actually interacting with the area In other words: the edge is not in turning everything on. The edge is in knowing which levels matter most and reading the reaction correctly. suitable markets and timeframes This can be used on any market, but it is most useful where swings and reaction structure are clean: futures forex crypto liquid equities Common use cases: intraday range and breakout planning swing-trading reaction mapping higher timeframe structure work with lower timeframe execution disclaimer This tool is for charting and analysis only and does not constitute financial advice. No promises, no guarantees. Use your own execution rules, structure, and risk management. 👑📐 BK AK–GannBox King 👑📐Pine Script® indicatorby Ki11a_B66463
GlorifiedGamblers GFM Model - Pub Test 3GlorifiedGamblers Alert System is a dual-model trade signal indicator built for ES/NQ futures on the 2-minute chart. System 1 — Gann Flip Model: Captures the 8–9AM (ET) session high and low to build a dynamic Gann Box. After the session locks, the indicator monitors for breaks above or below the range. A "flip" is confirmed when price breaks out and then reclaims the level — signaling a potential reversal entry. Each flip is scored 0–10 using confluence factors including VIX, NQ confirmation, VWAP, RSI, volume, and clean vs. wick breaks.Pine Script® indicatorby breadwinner30027
GlorifiedGamblers Gann Flip Model (GFM) - Pub Test 2GlorifiedGamblers Alert System is a dual-model trade signal indicator built for ES/NQ futures on the 2-minute chart. System 1 — Gann Flip Model: Captures the 8–9AM (ET) session high and low to build a dynamic Gann Box. After the session locks, the indicator monitors for breaks above or below the range. A "flip" is confirmed when price breaks out and then reclaims the level — signaling a potential reversal entry. Each flip is scored 0–10 using confluence factors including VIX, NQ confirmation, VWAP, RSI, volume, and clean vs. wick breaks.Pine Script® indicatorby breadwinner30012
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.Pine Script® indicatorby PyraTime1136
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 TradingView 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 TradingView 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 TradingView 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.Pine Script® indicatorby PyraTime90
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 TradingView 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 • TradingView 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. Pine Script® indicatorby BlueprintResearchUpdated 44476
[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. Pine Script® indicatorby djmad66433
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.Pine Script® indicatorby surfchaserUpdated 2284