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!
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
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
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
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
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.