The leg whose bar span sets the unit interval — its start bar is line 0 and its length is one unit. Sparse legs are forward-filled to the last confirmed one.
Outputs
Bundle (untagged)
A bundle with a per-bar validity gate, the in_zone pulse, the current zone_index, and the next line's bar position plus the bar distance to it (both 0 when the leg is undefined or the finite ladder is exhausted — gate on valid).
Fibonacci Time Zones marks WHEN, not where: it takes one leg's bar span as the unit interval and drops vertical time lines at its Fibonacci multiples (0, 1, 2, 3, 5, 8, 13, …), then tells you whether the current bar sits on a line, which zone it is in, and how far the next line is.
How it works
Wire it a leg; its start and end bars define the unit. Line k sits at start_bar + f_k × span with f = 0, 1, 2, 3, 5, 8, … (the MT5 ladder — Fibonacci numbers without the duplicated 1). in_zone fires within tolerance_bars of the NEAREST line; zone_index counts the lines at or before the bar; next_zone_bar_index / bars_to_next_zone describe the next line strictly ahead. Future line positions are pure integer arithmetic on past pivots — nothing is read from future bars, and prices are never read at all (a flat leg still defines zones). The ladder is finite: beyond the last configured line the next-zone outputs read 0 (sentinel) — gate on valid.
Configuration
zone_countscalar
How many time lines to project, from 2 to 16. The default 11 is MT5's ladder 0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89. Beyond the last line the next-zone outputs read the 0 sentinel.
tolerance_barsscalar
Half-width of the in_zone window in bars: a bar within this distance of the nearest line gates true. 0 = only exact line bars.
Connects to
Reads from
Feeds into
Examples
Wire the anchor's leg and gate entries to in_zone with tolerance_bars = 1 to trade the 8- and 13-span line clusters.
Compare next_zone_bar_index with a bar-index source to act exactly when a fib time line arrives.
Common mistakes
Expecting price levels — this tool is time-only: it marks WHEN something may turn, never at what price.
Reading next_zone_bar_index = 0 as 'bar zero' — 0 is the sentinel for 'no next line'; gate on valid (and non-zero) first.