OPEN-SOURCE SCRIPT
Updated Dynamic Horizontal Lines

- Gann levels (squares of 9) have multiple levels. Adding lines at all these levels would add too much noise on the chart.
- This indicator adds horizontal lines as per the Gann levels (Squares of 9) closest to the days close.
- The current indicator add horizontal lines at the Gann level closest to the days close. It also adds 4 lines above & below the closest Gann level
- I have considered Gann levels from 1 to 10000. You can append the Gann levels based on your requirements.
Release Notes
- Adds horizontal lines as per the Gann levels (Squares of 9) closest to the day's close.
- Dynamic Gann levels are added to chart based on the latest close price, extending beyond 1000.
- The Gann levels are defined in a formula instead of an array, so the levels >10000 could be added irrespective of the closing price.
- The script adds horizontal lines at the Gann level closest to the day's close, along with 4 levels above and below.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.