OPEN-SOURCE SCRIPT
Cập nhật

Quarter Sequence Chains

7 104
Quarter Sequence Chains visualises Daye's Quarterly Theory across seven nested
cycle levels in a single sub-pane ribbon — and highlights when adjacent levels
form a Quarter Sequence chain.

Implements the Quarter Sequence framework as published by LethalityTrader:
when two or more cycle levels share the same Q-phase (or bridge Q4↔Q1), they
form a chain — and chains tell you which side of the market the bigger
timeframes are weighted toward.

═══════════════════════════════════
WHAT THE RIBBON SHOWS
═══════════════════════════════════

Seven rows, top → bottom (smallest cycle on top):
• Nano (5.625-minute Q)
• Micro (22.5-minute Q)
• 90M (90-minute Q)
• Daily (6-hour Q)
• Weekly (1-day Q, Sun-start convention)
• Monthly (~1-week Q, Daye Nth-Sunday anchor)
• Yearly (3-month Q)

Each cell is coloured by its current Q-phase:
• Q1 — grey (Accumulation)
• Q2 — red (Manipulation)
• Q3 — green (Distribution)
• Q4 — blue (Reversal / Continuation)

When the "Only colour cells participating in a chain" filter is on (default),
ONLY cells whose adjacent rows form a same-phase (or Q4↔Q1) chain of at least
N rows are coloured. Everything else stays blank. This is what makes the
ribbon a chain-detection tool, not just a quarter-of-the-day indicator.

═══════════════════════════════════
HOW TO READ IT
═══════════════════════════════════

A vertical stack of coloured cells at the current bar = a live chain.
• A 3-row green stack across 90M / Daily / Weekly = three nested cycles
are all in Q3 (Distribution) right now — a same-phase chain.
• A 4-row blue/grey alternating stack on Q4↔Q1 = a bridge chain across
the AMDX boundary — the doctrinally strongest setup per Lethality.
• A coloured single cell with blank neighbours = a chain that involves
off-band cycles (auto-hidden by your current chart TF but still
contributing). Drop to a lower TF to see the full chain.

Cells extend right until the cycle's Q-phase changes, so live chains stay
visible at the right edge of the chart in real time.

═══════════════════════════════════
TWO CHAIN MODES
═══════════════════════════════════

SIMPLE (default): one chain-length floor applied across all seven rows. A
row colours when it's part of a chain of ≥ N adjacent rows.

TIERED: two independent walks with separate minimums —
• HTF tier: Weekly / Monthly / Yearly
• LTF tier: Nano / Micro / 90M / Daily
A row colours when (a) its own tier's chain meets that tier's minimum AND
(b) the OTHER tier also has an active chain. HTF Q and LTF Q can be
different — "HTF Q4 + LTF Q3" is a valid composite (and a doctrinally
canonical execution setup).

═══════════════════════════════════
SUGGESTED SETTINGS
═══════════════════════════════════

For day traders on the 1m – 15m chart:
Mode = Simple, min length = 3
The Lethality floor — three nested cycles must agree before a cell colours.

For multi-timeframe context:
Mode = Tiered, HTF = 2, LTF = 2
Surfaces composites where the bigger picture aligns with the execution
window. Tighten either tier if too noisy.

For permissive scanning / learning the framework:
Mode = Simple, min length = 2
Every two-row agreement colours. Use this to see how chains form and
die — not for live trading decisions.

═══════════════════════════════════
TIMEFRAME GATING
═══════════════════════════════════

Each row auto-hides on charts where its cycle isn't readable:
Nano 1s – 1m Micro 1m – 5m
90M 1m – 1h Daily 1m – 4h
Weekly 1m – 6h Monthly 1m – 1w Yearly 15m – 1w

A row that's auto-hidden on the current TF still participates in chain
detection (off-band cycles are masked to zero, which means they can't
satisfy the pair rule — they break the chain rather than fake one).

═══════════════════════════════════
CREDITS
═══════════════════════════════════

• Quarter Sequence framework — LethalityTrader (X: LethalityTrader). The
chain concept, the adjacent-pair rule, the Q4↔Q1 bridge, and the
minimum-3 floor are all his framework. This indicator is one rendering of it.

• Quarterly Theory — Daye (X: traderdaye). The parent framework: AMDX cycle structure,
True Opens, the fractal Q1-Q4 model).

• Fork base — adapted from "Quarterly Theory Cycles [Oracle]" by Danielliuks (X: Danielliuks
). Reversed row order, added Nano + Yearly, rewrote chain detection, added
TF gating, added Tiered mode.

Released open-source under MPL 2.0. Adaptations © @Crypto_MM_ 2026.
Phát hành các Ghi chú

  • New: Row Labels section — master toggle (off by default) reveals 7 per-row labels (Nano → Yearly, on by default), anchored at leftmost visible bar; text size + colour pickers included.
  • Fix: first-bar na != trap was leaving the leftmost cell blank on every row (worst on Yearly/Monthly) until the next Q-transition.
  • Fix: labels no longer disappear on size change or input-driven rerun (guarded chart.left_visible_bar_time na case + force-recreate on size-input change).
Phát hành các Ghi chú
Republish
Phát hành các Ghi chú
• Fixed Nano chains not forming on sub-1m charts — chain math no longer drops higher-cycle Q values when chart TF is below the row's render band.
• Removed the Nano bypass toggle (was masking the above bug — now Nano colours only when in a real chain).
Phát hành các Ghi chú
v1.3

- Fixed — Monthly cycle anchoring. Monthly quarters now anchor to the week of the month's first Monday, with each week starting at its session open (Sunday 18:00 NY — which can fall on the last day of the prior calendar month). The previous first-Sunday-in-month anchoring mis-assigned the first trading week to the prior month's Q4 whenever a month began on a Monday (e.g. June 2026: the week of June 8 is Monthly Q2, not Q1). Months with five weeks remain in Q4 until the next cycle's Q1 begins.

- New — Forward Projection. The ribbon now projects forward from the live bar to the end of the current session (the next 18:00 NY roll). Because the quarterly cycles are pure clock math, every upcoming quarter — and every upcoming chain window — is computable in advance: you can see when the next sequence alignment opens before it arrives. The projection honours your chain-filter settings exactly (Simple/Tiered, minimum lengths — the projected chain logic is verified identical to the live ribbon's), and each projected cell is coloured by its own quarter, just like the live cells.

- New settings group "5. Forward Projection":

  • Project rest of session — master toggle (on by default).
  • Projected cell opacity (%) — how strongly future cells are filled (default 25%, faint).
  • Max projected segments per row — caps how many future cells the fast rows (Nano/Micro) draw, protecting the drawing budget; slower rows always project the full session.
  • Style projection like the live ribbon — render the future identically to the past (your full phase colours, solid borders) instead of faint with dotted borders.
  • Known limitations: the projected region beyond the last bar maps future time linearly, so the daily 17:00–18:00 maintenance hour occupies visual width until real bars arrive (cosmetic; corrects as bars print). On 24/7 symbols (crypto), the two US DST-transition Sundays per year trade through the 02:00 clock change, and projected quarters can sit one hour off for the remainder of those two sessions; CME-hours symbols are unaffected.
Phát hành các Ghi chú
v1.4

  • Forward Projection now joins the live ribbon seamlessly. Each row's live cell carries its current quarter through to the quarter's boundary, and the faint forecast begins at the next quarter — no gap or divider at the live edge.
  • Internals: ribbon cells are now time-anchored (no behaviour change to the historical ribbon).

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.