OPEN-SOURCE SCRIPT

Symmetrical Geometric Mandala

146
Symmetrical Geometric Mandala

Overview

The Symmetrical Geometric Mandala is an advanced geometric trading tool that applies phi (φ) harmonic relationships to price-time analysis. This indicator automatically detects swing ranges and constructs a scale-invariant geometric framework based on the square root of phi (√φ), revealing natural support/resistance zones and harmonic price-time balance points.

Core Concept

Traditional technical analysis often treats price and time as separate dimensions. This indicator harmonizes them using the mathematical constant √φ (approximately 1.272), creating a geometric "squaring" of price and time that remains proportionally consistent across different chart scales.

The Mathematics

When you select a price range (from swing low to swing high or vice versa), the indicator calculates:

  1. PBR (Price-to-Bar Ratio) = Range / Number of Bars
  2. Harmonic PBR = PBR × √φ (1.272019649514069)
  3. Phi Extension = Range × φ (1.618033988749895)


The Harmonic PBR is the critical value - this is the chart scaling factor that creates perfect geometric harmony between price and time for your selected range.

Visual Components

1. Horizontal Boundary Lines
Two horizontal lines extend from the selected range at a distance of Range × φ (golden ratio extension):

  • Upper line: Extended above the swing high (for uplegs) or swing low (for downlegs)
  • Lower line: Extended below the swing low (for uplegs) or swing high (for downlegs)


These lines mark the natural harmonic boundaries of the price movement.

2. Rectangle Diagonal Lines
Two diagonal lines that create a "rectangle" effect, connecting:

  • Overlap points on horizontal boundaries to swing extremes
  • These lines go in the opposite direction of the price leg (creating the symmetrical mandala pattern)
  • When extended, they reveal future geometric support/resistance zones


3. Phi Harmonic Circles (Optional)
Two precisely calculated circles (drawn as smooth polylines):

  • Circle A: Centered at the first swing extreme (Nodal A)
  • Circle B: Centered at the second swing extreme (Nodal B)
  • Radius = Range × φ, causing them to perfectly touch the horizontal boundary lines


These circles visualize the geometric harmony and create a mandala-like pattern that reveals natural price zones.

How to Use
Step 1: Select Your Range

  • Set the Start Date at your swing low or swing high
  • Set the End Date at the opposite extreme
  • The indicator automatically detects whether it's an upleg or downleg


Step 2: Read the Harmonic PBR

  • Check the highlighted yellow row in the table: "PBR × √φ"
  • This is your chart scaling value


Step 3: Apply Chart Scaling (Optional)
For perfect geometric visualization:

  1. Right-click on your chart's price axis
  2. Select "Scale price chart only"
  3. Enter the PBR × √φ value
  4. The geometry will now display in perfect harmonic proportion


Step 4: Interpret the Geometry

  • Horizontal lines: Key support/resistance zones at phi extensions
  • Diagonal lines: Dynamic trend channels and future price-time balance points
  • Circle intersections: Natural harmonic turning points
  • Central diamond area: Core price-time equilibrium zone


Key Features
✅ Automatic swing detection - identifies upleg/downleg automatically
✅ Scale-invariant geometry - maintains proportions across timeframes
✅ Phi harmonic calculations - based on golden ratio mathematics
✅ Professional color scheme - clean, non-intrusive visuals
✅ Customizable display - toggle circles, lines, and table independently
✅ Smooth circle rendering - adjustable segments (16-360) for optimal smoothness

Settings

  • Show Horizontal Boundary Lines: Display phi extension levels
  • Show Rectangle Diagonal Lines: Display the geometric framework
  • Show Phi Harmonic Circles: Display circular geometry (optional)
  • Circle Smoothness: Adjust polyline segments (default: 96)
  • Colors: Fully customizable color scheme for all elements


Theory Background
This indicator draws inspiration from:

  • W.D. Gann's price-time squaring techniques
  • Bradley Cowan's geometric market analysis
  • Phi/golden ratio harmonic theory
  • Mathematical constants in market structure


Unlike traditional Fibonacci retracements, this tool uses √φ instead of φ as the primary scaling constant, creating a unique geometric relationship that "squares" price movement with time passage.

Best Practices

  1. Use on significant swings - Works best on major swing highs/lows
  2. Multiple timeframe analysis - Apply to different timeframes for confluence
  3. Combine with other tools - Use alongside support/resistance and trend analysis
  4. Respect the geometry - Pay attention when price interacts with geometric elements
  5. Chart scaling optional - The geometry works at any scale, but scaling enhances visualization


Notes

  • The indicator draws geometry from left to right (from Nodal A to Nodal B)
  • All lines extend infinitely for future projections
  • The table shows real-time calculations for the selected range
  • Date range selection uses confirm dialogs to prevent accidental changes

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.