OPEN-SOURCE SCRIPT

GANN Square Of 9 Pivots

Updated
GANN Square Of 9 Pivots

How to use for Intraday ?

Method 01 (From 9:05 am to 9:15 am or pre-open market)
  • Take the Weighted Average Price or Volume Weighted Average Price (VWAP) or Time Weighted Average Price (TWAP) of any stock or index.
  • You can use TWAP for Index as volume is not available.

Method 02 (From 9:05 am to 9:15 am or pre-open market)
  • Take the Last Traded Price (LTP) of index or stock

Method 03 (After 9:30 am or after 1st 15 min)
  • Only take Last Traded Price (LTP) of stock or index

Ideal Time
  • 15min to 1hr after market opens

Indicator Features

Lines
  • Gray Dashed Line: Calculation Price
  • Teal Solid Line: Long Above
  • Red Solid Line: Short Below
  • 3 Teal Dotted Lines: Bullish Targets 1, 2 & 3
  • 3 Red Dotted Lines: Bearish Targets 1, 2 & 3

Labels
  • 1st Numbers: Price
  • 2nd Numbers in (): % change from LTP to that Level

For Index
  • As VWAP is not available for Index, TWAP (Time Weighted Average Price) values can be used for Index.

Custom Price Inputs
  • Price of your choice can be given manually by selecting:
  • Source > Custom
  • Enter Price > (type the price)

Timeframe
  • Higher timeframes like Weekly, Monthly can be changed using Timeframe Option

For More Reading
  • Reading: traderji.com/community/threads/intraday-trading-using-gann-calculator.39185/#post-419677
  • Calculator: stockmaniacs.net/freebies/free-tools/gann-square-of-9-calculator/
Release Notes
Update v1.1
  • Added Extended levels choice.
Release Notes
Update v1.2
  • Changed Extended Levels from Plot to Line
  • Added On/Off to extended levels
Release Notes
2023-06-02 Update
  • Incorporated 12 additional support and resistance levels.
  • Included an option to obtain the price at a specific time. The price will be displayed only after the designated time within the chosen timeframe. For instance, if the selected timeframe is "D" (daily) and the data source is "Price at Time," setting the time to 9:45 will result in the display of the price after 9:45. Otherwise, it will show the previous day's closing price at 9:45.
  • Implemented price rounding based on the tick size.
  • Added points derived from the latest traded price (LTP).
  • Optimized the menu layout for a more compact design.
Release Notes
Update:
  • Calculates Gann levels with greater accuracy by incorporating prominent swing prices.
  • Places emphasis on significant swing points, following the approach of WD Gann.
  • Determines Gann levels using swing high and low prices for improved precision.
  • Offers a comprehensive range of increment values, enabling functionality across diverse markets like Forex, Crypto, Commodity, Stocks, and Indices.
  • Enhanced accuracy due to the utilization of swing points, surpassing the previous version.
  • Customizable increment value adjustment for Forex users.
  • To revert to the previous version, add the indicator to the chart > click '{}' Source code button > go to 'Pine Editor' > 'Select revision' = '4.0' > 'Add to chart'.
  • Reflects price movements through distinct and predefined steps or increments.
  • Advises using the indicator in conjunction with other confirmations for more reliable results.
  • Recommended to use 5 min timeframe for Intraday.
Release Notes
Updated on 14 Sept 2024
  • Combined 2 versions.

GannganncyclesgannlevelsgannpivotgannsqauregannsquareofninegannstrategiesgannstrategypivotPivot PointsPivot points and levelssupportandresitance

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer