Price and Time squaring is one of the main concepts that W.D. Gann introduced and talked about in his books. This script uses those techniques to Square a Top or Bottom that you specify on the chart.
You can also choose to square based on the price, price squared or square root of the price with a lot of customization and coloring options. You have the overall control to change any part of the script including lines colors, style, thickness, fill colors and so on.
Please note that although the script tries to set the direction and the price per point automatically for you, sometimes for very fast or very slow instruments you will need to define the price per point for the instrument that you are dealing with.
How to use Once you add the script, you will need to select the top or bottom that you want to square The script will calculate the price per point and the trend direction for you automatically. If needed, you can change the price per point and the direction from the settings. You can also select to add multiple boxes for the same squared range