Gann Square of 9 Levels

These levels often correspond to $45^\circ$, $90^\circ$, $180^\circ$, and $360^\circ$ turns on the mathematical square.Key Features:Customizable Base Price: Allows the user to select any significant high, low, or psychological level on the chart as the starting point for calculations.Adjustable Spacing:
The user can fine-tune the angular/degree difference between levels using the Spacing input. This allows testing different Gann harmonics (e.g., $0.125$ for $45^\circ$, $0.25$ for $90^\circ$).Clear Visuals: Levels are plotted as circles directly on the chart:Gray: The Initial Gann Level (Base Price).Green: Levels above the base (Potential Resistance).Red: Levels below the base (Potential Support).
Mathematical Logic:The indicator uses the following core formula:Find the Square Root of the Base Price:$$\text{Initial Sqrt} = \sqrt{\text{Initial Level}}$$Calculate New Levels:$$\text{New Level} = (\text{Initial Sqrt} \pm (n \times \text{Spacing}))^2$$Where:$\text{Initial Level}$ = User-defined Base Price.$\text{Spacing}$ = User-defined step (e.g., $0.125$ is the default, representing one $45^\circ$ step).$n$ = The multiple of the step ($1, 2, 3, ...$).
The code calculates the first three significant levels both above and below the base price.How to Use:Identify a Key Pivot: Find a major recent High or Low on the asset's chart.Set the Initial Level: Enter that High or Low price into the Initial Gann Level input.Analyze the Levels: The resulting Green and Red circles represent potential turning points for the market. Observe how price reacts to these lines.Note: As with all Gann-based analysis, this indicator is best used in conjunction with other technical tools (volume, trend lines, traditional support/resistance) for confirmation.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact ancorman directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact ancorman directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.