OPEN-SOURCE SCRIPT
Gann Toolkit [SS]

Yeah, me of all people posting something about GANN.
I am interested in using these unique styles of Polylines and pushing the limits of pinescript visually, like with my previous Gyroscope. So Gann gave me a really good run at this.
But, I did add CDF to this for distribution metrics on top of GANN, as an added feature, which is more inline with the Steversteves way haha.
On to the indicator:
How it works:
The script gives you a choice between three primary tools, the Gann Fan, the Gann Box, and the Gann Square of 9, all driven by a dynamic pivot anchor system.
Instead of relying purely on static fixed angles, it runs a Cumulative Distribution Function (CDF) across recent bar ranges to project true statistical percentile bands (p10 through p90) from your anchor. At the same time, a Volume Gravity engine checks volume density around each price level. High volume nodes trigger thicker lines, higher opacity, and star ratings, while low volume levels naturally fade out.
It also tracks Harmonic Time projections across key Gann bar cycles (45, 90, 144, 180, 270, 360). When a time cycle aligns with a CDF level, a 1x1 fan ray, or a volume cluster, the indicator scores the confluence and flags high probability time windows.
How to read it:
Active Tool Selector = lets you swap between the Fan, 3x3 Box, and Square of 9 on the fly without loading separate scripts.
Stars on CDF Bands = indicate volume density at that level, where three stars mean a heavy volume cluster is backing that price band.
Confluence Badges (⚡ / ◈) = highlight key time cycle bars where price, volume, and Gann geometry align at the same point in time.
Auto Anchor = automatically tracks local swing highs or lows, with an option for manual offset if you want to anchor to a specific bar in history.
Built mostly to cut through the noise of standard geometric drawing tools and focus only on the levels where statistical range and real volume overlap.
Settings let you tweak pivot lookbacks, volume tolerance percentage, CDF distribution windows, and individual color themes for all tools.
Disclosure: I know nothing about GANN, just researched what a Gann box and fan were, how it applies to trading and then reviewed some existing GANN indicators and just sort of worked from that point. Hopefully its on point for those hardcore gann traders but leave a comment if you noticed I made some logical error.
As always, hope you enjoy and safe trades everyone!
I am interested in using these unique styles of Polylines and pushing the limits of pinescript visually, like with my previous Gyroscope. So Gann gave me a really good run at this.
But, I did add CDF to this for distribution metrics on top of GANN, as an added feature, which is more inline with the Steversteves way haha.
On to the indicator:
How it works:
The script gives you a choice between three primary tools, the Gann Fan, the Gann Box, and the Gann Square of 9, all driven by a dynamic pivot anchor system.
Instead of relying purely on static fixed angles, it runs a Cumulative Distribution Function (CDF) across recent bar ranges to project true statistical percentile bands (p10 through p90) from your anchor. At the same time, a Volume Gravity engine checks volume density around each price level. High volume nodes trigger thicker lines, higher opacity, and star ratings, while low volume levels naturally fade out.
It also tracks Harmonic Time projections across key Gann bar cycles (45, 90, 144, 180, 270, 360). When a time cycle aligns with a CDF level, a 1x1 fan ray, or a volume cluster, the indicator scores the confluence and flags high probability time windows.
How to read it:
Active Tool Selector = lets you swap between the Fan, 3x3 Box, and Square of 9 on the fly without loading separate scripts.
Stars on CDF Bands = indicate volume density at that level, where three stars mean a heavy volume cluster is backing that price band.
Confluence Badges (⚡ / ◈) = highlight key time cycle bars where price, volume, and Gann geometry align at the same point in time.
Auto Anchor = automatically tracks local swing highs or lows, with an option for manual offset if you want to anchor to a specific bar in history.
Built mostly to cut through the noise of standard geometric drawing tools and focus only on the levels where statistical range and real volume overlap.
Settings let you tweak pivot lookbacks, volume tolerance percentage, CDF distribution windows, and individual color themes for all tools.
Disclosure: I know nothing about GANN, just researched what a Gann box and fan were, how it applies to trading and then reviewed some existing GANN indicators and just sort of worked from that point. Hopefully its on point for those hardcore gann traders but leave a comment if you noticed I made some logical error.
As always, hope you enjoy and safe trades everyone!
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Check out the new Website!
merlintrades.net
Get access to:
- Indicators
- Merlin Trading Software
- Discord
- Documentation
merlintrades.net
Get access to:
- Indicators
- Merlin Trading Software
- Discord
- Documentation
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Check out the new Website!
merlintrades.net
Get access to:
- Indicators
- Merlin Trading Software
- Discord
- Documentation
merlintrades.net
Get access to:
- Indicators
- Merlin Trading Software
- Discord
- Documentation
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.