OPEN-SOURCE SCRIPT

Gann Square Of 9 Levels

Updated
This script uses the last hlc3 value of 1H, 4H, D and/or W and rotates it 360º up/down with four increments of 90º to find out potential support and resistance areas. Can be used as a dynamic support & resistance tool or just to gauge how overbought/oversold the market is. Special thanks to @Nv56 for his assistance in writing this script.
Release Notes
The first version had some minor issues with showing the most recent hlc3 value. This update fixes that problem.
Release Notes
The final version. Only daily and weekly hlc3 levels.
Release Notes
This update includes the possibility to choose input source from the dropdown list. It is an important shift as it allows to plot the levels from lows and highs. The earlier version just had the HLC3 source hard coded in the script. Furthermore, I also added the possibility to move the decimal to the left beyond "1". This is handy when trying to plot levels for higher timeframes, especially when working with instruments that are trading in 4-5 digits like BTC, DOW etc. When plotting levels from lows or highs, the irrelevant levels should be manually unticked. This will give levels higher from a low, levels lower from a high and levels spreading out from a pivot like OHLC4, HLC3, HL2. The example in the chart shows levels higher from the previous month's low, the multiplier is set to 1 for one set of levels, and to 0.1 for another set of levels. The further you move the decimal to the left, the bigger the spread will be between levels. I hope its helps. Best of luck!
Donchian Channels (DC)gannanalysisgannanglesgannsq9gannwheelsquare9squareof9squarerootStandard DeviationVolatility Stop

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