Angled Square Time-Price Zones Ver 1Angled Square Time-Price Zones — Ver 1
By Timepricedecoder
Overview
This indicator applies W.D. Gann's Time = Price principle using Pythagorean geometry, projecting an angled grid of time-price "squares" directly on the chart. Gann believed price and time are two expressions of the same underlying cycle — when they fall out of balance, and then come back into sync, the market tends to reach a meaningful turning point or acceleration.
This script finds an anchor swing using a Pythagorean Balance search — rather than simply taking the highest high / lowest low in a window, it searches local pivot candidates for the swing whose price range and bar count best fit your chosen Pythagorean triple (e.g. 3-4-5, 5-12-13, 8-15-17). From that swing, it builds a repeating cascade of angled diamonds (or upright rectangles) forward and backward in time, each split into a red Seller Zone (upper half) and green Buyer Zone (lower half).
Each diamond's diagonal edge is the true time = price sync line for that cycle. When price closes beyond it, price is moving faster than the cycle accounts for — effectively borrowing the pace of a larger, steeper cycle. When price closes back inside, time is catching up.
Core Concepts
Sync vs. Break
The diagonal edge of each diamond represents time and price moving in step. A close beyond it means price has run ahead (or behind) of time for that cycle.
Confluence References
Prior Day Close, Prior Day High, and Prior Day Low act as reference levels. When a sync-break happens at one of these levels, it carries more weight than a break in open space.
Harmonic Cascade
The cascade repeats both in time (columns — Past/NOW/Future) and price (rows, up to your configured range), forming a self-organizing grid of time-price nodes rather than arbitrary fixed levels.
Signal Types
Sync-Break (triangle) — price has closed beyond the diagonal edge of its row. Large triangle = coincides with PD Close/High/Low (high confidence). Small triangle = no PD-level confluence (lower confidence).
Time Catch-Up (arrow) — price has closed back inside a diagonal it previously broke; the reversion/cooling-off counterpart to Sync-Break.
Wick-Touch/Rejection (x) — the candle's high/low touched or pierced the diagonal intrabar, but the close rejected back inside — catches a "kiss and reverse" that a close-only signal would miss.
Optional filters (off by default) let you require time-cycle node proximity, price-edge proximity, or PD-level confluence before any signal fires, if you want to tighten from the default permissive behavior.
Recommended Settings
Scalping — Gann Number 22, Triple 4-3-5, Swing Scale Half
Short Term — Gann Number 44, Triple 4-3-5, Swing Scale Full
Medium Term — Gann Number 88, Triple 3-4-5, Swing Scale Full
Long Term — Gann Number 176, Triple 3-4-5, Swing Scale Full
Instrument Type
Instrument type (Options vs. Indices/Stocks/Futures) is auto-detected from the ticker — no manual setting needed. Only the Options vs. non-Options split changes the underlying math (square height uses the option's own premium-decay rate); Indices, Stocks, and Futures currently share identical geometry.
Square Style
Angled (Diamond) — the classic Gann-square cascade, rotated 45 degrees.
Normal (Rectangle) — the same grid drawn upright. Confluence logic automatically adjusts to match whichever style is selected.
Auto-Fit
Enable Auto-Fit to have the cascade automatically size itself to your visible chart, instead of manually tuning past/future/up/down cycle counts. Enable Freeze if you want the size to hold steady during live market hours rather than resizing as you scroll or zoom.
How To Use
Let the script auto-detect the swing anchor from your chosen Gann Number and session.
Watch the diagonal edges of each diamond — a close beyond one is a Sync-Break.
Larger markers and PD-level proximity indicate stronger confluence.
Use Time Catch-Up signals to spot when a stretched move is reverting back to sync.
Treat Wick-Rejection marks as early-warning "tested and failed" levels.
On Repainting / Lookahead
This script uses request.security() with lookahead enabled to pull the prior day's Close, High, and Low. This is safe and non-repainting: it is always paired with a or greater offset referencing an already-closed daily bar, never the current forming bar. The swing search and all signal logic are computed from closed price data only.
Disclaimer
This script is published for educational purposes only. It does not constitute financial advice. Past signal accuracy does not guarantee future results. Always use proper risk management. Trade at your own risk.
Chỉ báo






















