OPEN-SOURCE SCRIPT
Updated

Quarterly Theory: Intraday Quarters - 6h Sessions, 90m & 22.5m

1 768
This indicator is a significantly modified and expanded version of the 90 Minute Cycle by HandlesHandled. It has been redesigned to align with Quarterly Theory principles while ensuring full compliance with TradingView’s House Rules regarding modified scripts by providing original functionality and a unified user interface.
Core Enhancements & Original Features
While the foundational 90-minute session times are derived from the original source, this version introduces several exclusive features:
Expanded Multi-Timeframe Sessions: Beyond standard 90-minute cycles, this script adds hardcoded logic for 6-hour sessions (Q-T) and granular 22.5-minute Micro Quarters (U-BP).
"One Button" Global Styling: To solve the visual clutter of multi-timeframe indicators, I implemented a Global Styling system. This allows users to change the name and colour of all Q1, Q2, Q3, and Q4 instances across every timeframe (90m, 6h, and Micro) from a single set of inputs.
Master Visibility Toggles: Users can independently toggle the visibility of 90m Quarters, 6h Sessions, and Micro Sessions to keep their charts clean and focused.
Dynamic Visuals: The script utilizes a custom get_range function that manages box.new and label.new logic, allowing for real-time expansion of session boxes and automated label positioning at the session's high.
Advanced Timezone Handling: Added inputs for manual UTC offsets and a toggle to sync with Exchange Timezone, ensuring accuracy across different global markets.
Compliance & Attribution
In accordance with House Rules, this script is a significant modification of the original work by HandlesHandled. The session timing logic for the 90m cycles remains hardcoded as per the original source to maintain theoretical accuracy, while all styling, master toggles, and micro-session logic are original additions.
How to Use
Select Your View: Use the Master Visibility section to choose which quarterly cycles you want to see.
Customise Styling: Use the Global Styling section to set your preferred colours for Q1-Q4. These colours will automatically apply to all active sessions.
Adjust Time: Ensure your UTC offset matches your local or desired trading time for precise session alignment.
Release Notes
Incorporate seconds-based modulo and expand the micro timeframes through the Asian session (18:00–00:00), the script replaces the dozens of hardcoded micro-session variables with a single mathematical calculation. This calculation determines the current 22.5-minute "Quarter" based on the Unix timestamp and the user's timezone settings
.
This approach automatically expands coverage to the full 24-hour cycle, including the Asian session, without requiring additional manual strings
.
Release Notes
Minor bug.
Release Notes
Default visibility filter set to timeframes < 60 minutes.
Release Notes
**Overview**

This indicator maps the full Quarterly Theory framework across every meaningful intraday timeframe — from the weekly cycle down to the 22.5-minute micro sessions. Each tier is automatically gated to its appropriate timeframe so the chart stays clean and uncluttered regardless of where you are in the hierarchy.

---

**The Four Tiers**

**Weekly Cycle (1H chart only)**
The highest visible tier on the hourly. Each 24-hour trading day is treated as a quarter of the week, running from 18:00 to 18:00. Monday through Thursday are mapped to Q1–Q4 respectively and drawn as filled range boxes using the global quarter colours. Friday is displayed as a grey outline-only box, signalling the close of the weekly cycle without asserting directional bias.

**Daily Cycle (30m and below)**
The four 6-hour sessions that divide the 24-hour trading day — 18:00, 00:00, 06:00 and 12:00 opens — each mapped to Q1 through Q4. These are the primary reference boxes on the 30-minute chart and represent the macro structure of each trading day.

**90m Quarters (30m and below)**
Each 6-hour Daily Cycle session is subdivided into four 90-minute quarters, giving 16 sessions across the full 24-hour day. These are the core Quarterly Theory building blocks and provide the primary entry and manipulation reference points on lower timeframe charts.

**Micro Sessions (5m and below)**
Each 90-minute quarter is further subdivided into four 22.5-minute micro sessions, producing 64 granular windows across the trading day. These are designed for precision entries and are only rendered on the 5-minute chart and below to keep the view readable.

---

**Global Styling**

All four tiers share a single set of Q1–Q4 colour and label inputs. Changing a colour or label in the Global Styling group updates every tier simultaneously, keeping the visual language consistent across all timeframes.

---

**Timezone**

The indicator defaults to UTC−5 (New York time). You can adjust the UTC offset manually or switch to the exchange timezone via the Timezone settings group.

---

**Timeframe Reference**

| Tier | Visible On |
|---|---|
| Weekly Cycle | 1H only |
| Daily Cycle | 30m and below |
| 90m Quarters | 30m and below |
| Micro Sessions | 5m and below |

---

**Notes**
- All session times are hardcoded to the standard Quarterly Theory grid and are not adjustable by design — the framework depends on fixed mathematical subdivisions of the 24-hour clock.
- Range boxes expand in real time as price discovers new highs and lows within each session window.
- Labels reposition dynamically to the midpoint of the session as it develops.
- The indicator is overlay-based and works on any liquid market that trades the full 24-hour session — forex pairs, crypto, and index futures are the primary use cases.

---

*Built with precision for traders who work within the Quarterly Theory framework. If you find it useful, please leave a like and share your feedback in the comments.*
Release Notes
Added my customizable signature stamp
Release Notes
Minor bug fix
Release Notes
Added a Nano cycle (5.6m) for the super low timeframe junkies. GLGT!
Release Notes
Added True opens and an input string to manually set your preferred timeframe gating from my defaults!
Release Notes
⚠️ IMPORTANT: MOVED TO Quarterly Theory: Q1-Q4 Cycle Boxes (CLOSED SOURCE)
This is the legacy V1 Open Source version Quarterly Theory: Intraday Quarters - 6h Sessions, 90m & 22.5m.
I have released a massively updated, fully automated V2 version with new features, a dedicated timeline pane, and automated True Opens. To protect my hard work and prevent unauthorized copying, the new version is now Closed Source.
👉 Please search for and use the new version here: [https://www.tradingview.com/script/JCxgiXuz-Quarterly-Theory-Q1-Q4-Cycle-Boxes/]
This V1 script will no longer be updated. Thank you for your support!

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.