OPEN-SOURCE SCRIPT
BK AK-GannBox King

👑📐 BK AK–GannBox King 👑📐
🙏 All glory to G-d
Respect to AK — discipline, patience, and clean execution.
acknowledgement
This project started from a foundation I built off ideas and inspiration I got from Zeiierman’s work. Respect to Zeiierman — one of the best creators on TradingView.
That was the starting spark.
From there, this became my own expanded Gann framework: a broader box-and-confluence system built around visible-range structure, Gann and Fibonacci geometry, Square of 9 levels, harmonic pattern detection, timing intervals, signal logic, and multi-layer reaction zones.
what this indicator is
GannBox King is a full-chart market geometry framework built to turn one visible swing range into a working map of price, time, and confluence.
At the center of the script is the Gann Box:
a visible-range high and low define the active working move
that move is divided into key Gann and Fibonacci percentages
those levels are then expanded into fans, angles, harmonic ratios, timing intervals, extensions, and Square of 9 projections
The goal is not to “predict” every turn.
The goal is to give you a structured map so you can answer the real questions:
where is price inside the active range?
which levels matter most right now?
where are multiple tools pointing to the same zone?
is price bouncing, breaking, or clustering around a level that should matter?
what it builds on the chart
Gann Box structure
The core engine builds a box from the visible high/low range on the chart and divides it into internal percentages.
You can use classic Fibonacci levels, Gann 1/8ths, extended sets, or custom ratios.
This becomes the main structural map.
Gann Fan and Gann Angles
The script can project diagonal geometry from the box so you can read slope, acceleration, and angle-based reactions instead of only horizontal levels.
Gann Curves
Quarter-circle style curve projections extend the box into arc-based geometry for traders who want to study rounded reaction paths and non-linear movement.
Harmonic ratio levels
Optional 1/8th and 1/3rd divisions add more internal structure to the box. These are useful when the standard retracements are too wide and price is reacting inside the range.
Confluence zones
One of the strongest parts of the script.
It checks whether multiple features are clustering in the same area:
horizontal box levels
fan geometry
angle geometry
curve geometry
higher timeframe box levels
When several features meet near the same price, the script can mark that zone as a confluence area.
Square of 9 levels
The script includes a Square of 9 engine anchored to either:
close
box high
box low
box midpoint
or a custom price
From there it calculates cardinal, opposition, and full-rotation levels so you can compare classic Gann price geometry against the visible box structure.
Harmonic pattern detection
The script can detect:
Gartley
Butterfly
Bat
Crab
It reconstructs pivot structure, validates ratios, grades the pattern, and can draw a PRZ zone around D completion.
Time cycles
The script can also project timing intervals from the anchor point:
Fibonacci time zones
Gann intervals such as 90, 180, 270, and 360
This helps bring time into the same framework as price.
Fibonacci extensions
When price leaves the original box, extension levels can project continuation targets beyond the core structure.
Signal and reaction tools
The script can flag:
bounce up
bounce down
breakout up
breakdown
based on proximity to the nearest Gann level and optional volume confirmation.
Extra context layers
It can also add:
proximity bar coloring
heatmap zones based on repeated level touches
auto support/resistance labels
price tags
higher timeframe box overlays
mirror/symmetry projections
dashboard table for feature status and directional bias
how it works (core idea)
Step 1 — define the active move
The script reads the visible range on the chart and finds the working high and low.
Step 2 — divide that move into geometry
Once the range is set, the script builds the box and all related percentage levels.
Step 3 — expand that geometry into multiple dimensions
Those levels are then projected through:
horizontal price structure
diagonal fan/angle structure
curve structure
time intervals
extension targets
Square of 9 rotations
Step 4 — measure overlap
The script looks for places where different tools point to the same area.
Those zones matter more than isolated single lines.
That is the real purpose of the tool:
not just “draw a Gann Box,” but build a layered reaction map.
how to use it
Start simple first.
Begin with the box
Turn on the Gann Box and labels first.
Do not start with every feature active.
Read how price behaves around:
25 percent
38.2 percent
50 percent
61.8 percent
75 percent
78.6 percent
87.5 percent
Watch the 50 percent line carefully
This is one of the most important levels in the entire script.
If price holds the midpoint, the trend often remains structurally intact.
If price loses it cleanly, the probability of deeper rotation increases.
Add confluence next
After the box is clear, turn on confluence zones.
Those are often more useful than staring at every raw line individually.
Use signals only near important levels
Bounce and breakout markers are most useful when they happen:
near a major internal ratio
at a confluence zone
near Square of 9 levels
with volume confirmation
Use harmonics and extensions as secondary layers
Harmonic patterns are best treated as completion/context tools.
Extensions are best treated as objective continuation targets after price leaves the main box.
Add time cycles if you want timing context
Time cycles do not force a reversal by themselves.
They help you identify when a known price level is being tested at a potentially meaningful timing window.
what makes this different
A normal Gann Box script stops at drawing a box.
This one does more than that.
It tries to make the box a full working framework by combining:
visible-range Gann geometry
Fibonacci internal levels
harmonic internal divisions
confluence detection
Square of 9 price projections
time cycle overlays
harmonic pattern detection
extension targets
higher timeframe overlays
symmetry projections
signal markers and bar-color context
So instead of treating Gann tools, harmonic tools, and Fib tools as separate chart clutter, this script tries to make them speak the same language inside one structure.
practical use cases
This script is especially useful for traders who want:
a structured swing map instead of random line drawing
reaction zones built from multiple methods, not just one
a way to combine Gann geometry with Fib logic and harmonic completion
a visual framework for breakout, bounce, and failure scenarios
Typical workflows:
intraday reaction mapping around a visible range
swing structure planning from a major leg
confluence hunting between box levels, Sq9 levels, and patterns
timing studies where price and cycle intervals meet
limitations (important)
This tool is a geometry and reaction framework, not a guarantee engine.
A few things matter:
the visible range you choose changes the structure
more features does not always mean better analysis
harmonic detections depend on pivot confirmation and ratio tolerance
time cycles are context tools, not automatic reversal signals
confluence matters most when price is actually interacting with the area
In other words:
the edge is not in turning everything on.
The edge is in knowing which levels matter most and reading the reaction correctly.
suitable markets and timeframes
This can be used on any market, but it is most useful where swings and reaction structure are clean:
futures
forex
crypto
liquid equities
Common use cases:
intraday range and breakout planning
swing-trading reaction mapping
higher timeframe structure work with lower timeframe execution
disclaimer
This tool is for charting and analysis only and does not constitute financial advice. No promises, no guarantees. Use your own execution rules, structure, and risk management.
👑📐 BK AK–GannBox King 👑📐
🙏 All glory to G-d
Respect to AK — discipline, patience, and clean execution.
acknowledgement
This project started from a foundation I built off ideas and inspiration I got from Zeiierman’s work. Respect to Zeiierman — one of the best creators on TradingView.
That was the starting spark.
From there, this became my own expanded Gann framework: a broader box-and-confluence system built around visible-range structure, Gann and Fibonacci geometry, Square of 9 levels, harmonic pattern detection, timing intervals, signal logic, and multi-layer reaction zones.
what this indicator is
GannBox King is a full-chart market geometry framework built to turn one visible swing range into a working map of price, time, and confluence.
At the center of the script is the Gann Box:
a visible-range high and low define the active working move
that move is divided into key Gann and Fibonacci percentages
those levels are then expanded into fans, angles, harmonic ratios, timing intervals, extensions, and Square of 9 projections
The goal is not to “predict” every turn.
The goal is to give you a structured map so you can answer the real questions:
where is price inside the active range?
which levels matter most right now?
where are multiple tools pointing to the same zone?
is price bouncing, breaking, or clustering around a level that should matter?
what it builds on the chart
Gann Box structure
The core engine builds a box from the visible high/low range on the chart and divides it into internal percentages.
You can use classic Fibonacci levels, Gann 1/8ths, extended sets, or custom ratios.
This becomes the main structural map.
Gann Fan and Gann Angles
The script can project diagonal geometry from the box so you can read slope, acceleration, and angle-based reactions instead of only horizontal levels.
Gann Curves
Quarter-circle style curve projections extend the box into arc-based geometry for traders who want to study rounded reaction paths and non-linear movement.
Harmonic ratio levels
Optional 1/8th and 1/3rd divisions add more internal structure to the box. These are useful when the standard retracements are too wide and price is reacting inside the range.
Confluence zones
One of the strongest parts of the script.
It checks whether multiple features are clustering in the same area:
horizontal box levels
fan geometry
angle geometry
curve geometry
higher timeframe box levels
When several features meet near the same price, the script can mark that zone as a confluence area.
Square of 9 levels
The script includes a Square of 9 engine anchored to either:
close
box high
box low
box midpoint
or a custom price
From there it calculates cardinal, opposition, and full-rotation levels so you can compare classic Gann price geometry against the visible box structure.
Harmonic pattern detection
The script can detect:
Gartley
Butterfly
Bat
Crab
It reconstructs pivot structure, validates ratios, grades the pattern, and can draw a PRZ zone around D completion.
Time cycles
The script can also project timing intervals from the anchor point:
Fibonacci time zones
Gann intervals such as 90, 180, 270, and 360
This helps bring time into the same framework as price.
Fibonacci extensions
When price leaves the original box, extension levels can project continuation targets beyond the core structure.
Signal and reaction tools
The script can flag:
bounce up
bounce down
breakout up
breakdown
based on proximity to the nearest Gann level and optional volume confirmation.
Extra context layers
It can also add:
proximity bar coloring
heatmap zones based on repeated level touches
auto support/resistance labels
price tags
higher timeframe box overlays
mirror/symmetry projections
dashboard table for feature status and directional bias
how it works (core idea)
Step 1 — define the active move
The script reads the visible range on the chart and finds the working high and low.
Step 2 — divide that move into geometry
Once the range is set, the script builds the box and all related percentage levels.
Step 3 — expand that geometry into multiple dimensions
Those levels are then projected through:
horizontal price structure
diagonal fan/angle structure
curve structure
time intervals
extension targets
Square of 9 rotations
Step 4 — measure overlap
The script looks for places where different tools point to the same area.
Those zones matter more than isolated single lines.
That is the real purpose of the tool:
not just “draw a Gann Box,” but build a layered reaction map.
how to use it
Start simple first.
Begin with the box
Turn on the Gann Box and labels first.
Do not start with every feature active.
Read how price behaves around:
25 percent
38.2 percent
50 percent
61.8 percent
75 percent
78.6 percent
87.5 percent
Watch the 50 percent line carefully
This is one of the most important levels in the entire script.
If price holds the midpoint, the trend often remains structurally intact.
If price loses it cleanly, the probability of deeper rotation increases.
Add confluence next
After the box is clear, turn on confluence zones.
Those are often more useful than staring at every raw line individually.
Use signals only near important levels
Bounce and breakout markers are most useful when they happen:
near a major internal ratio
at a confluence zone
near Square of 9 levels
with volume confirmation
Use harmonics and extensions as secondary layers
Harmonic patterns are best treated as completion/context tools.
Extensions are best treated as objective continuation targets after price leaves the main box.
Add time cycles if you want timing context
Time cycles do not force a reversal by themselves.
They help you identify when a known price level is being tested at a potentially meaningful timing window.
what makes this different
A normal Gann Box script stops at drawing a box.
This one does more than that.
It tries to make the box a full working framework by combining:
visible-range Gann geometry
Fibonacci internal levels
harmonic internal divisions
confluence detection
Square of 9 price projections
time cycle overlays
harmonic pattern detection
extension targets
higher timeframe overlays
symmetry projections
signal markers and bar-color context
So instead of treating Gann tools, harmonic tools, and Fib tools as separate chart clutter, this script tries to make them speak the same language inside one structure.
practical use cases
This script is especially useful for traders who want:
a structured swing map instead of random line drawing
reaction zones built from multiple methods, not just one
a way to combine Gann geometry with Fib logic and harmonic completion
a visual framework for breakout, bounce, and failure scenarios
Typical workflows:
intraday reaction mapping around a visible range
swing structure planning from a major leg
confluence hunting between box levels, Sq9 levels, and patterns
timing studies where price and cycle intervals meet
limitations (important)
This tool is a geometry and reaction framework, not a guarantee engine.
A few things matter:
the visible range you choose changes the structure
more features does not always mean better analysis
harmonic detections depend on pivot confirmation and ratio tolerance
time cycles are context tools, not automatic reversal signals
confluence matters most when price is actually interacting with the area
In other words:
the edge is not in turning everything on.
The edge is in knowing which levels matter most and reading the reaction correctly.
suitable markets and timeframes
This can be used on any market, but it is most useful where swings and reaction structure are clean:
futures
forex
crypto
liquid equities
Common use cases:
intraday range and breakout planning
swing-trading reaction mapping
higher timeframe structure work with lower timeframe execution
disclaimer
This tool is for charting and analysis only and does not constitute financial advice. No promises, no guarantees. Use your own execution rules, structure, and risk management.
👑📐 BK AK–GannBox King 👑📐
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。