OPEN-SOURCE SCRIPT
Updated Gann N-Bar Swing Chart

What it shows:
- Solid swing lines connecting confirmed turns (green=upswing, red=downswing)
- Dashed line for the active in-progress swing
- H/L labels at each confirmed turn (High/Low)
- Bar coloring by current swing direction
- Swing N input in settings to toggle between minor (1), intermediate (2), and major (3) swings
Note: line/label count is capped at 500 each by TradingView — on long charts, oldest markers
auto-delete.
- Solid swing lines connecting confirmed turns (green=upswing, red=downswing)
- Dashed line for the active in-progress swing
- H/L labels at each confirmed turn (High/Low)
- Bar coloring by current swing direction
- Swing N input in settings to toggle between minor (1), intermediate (2), and major (3) swings
Note: line/label count is capped at 500 each by TradingView — on long charts, oldest markers
auto-delete.
Release Notes
add gann price to degree methods in the tooptipRelease Notes
do not color bars by direction by defaultOpen-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.