PROTECTED SOURCE SCRIPT
Cập nhật HL Boxes / OC Boxes (Taipei)

This indicator is a 4-hour rhythm tool tailored for the Taipei time zone, offering two independent modes: HL Boxes and OC Boxes (Pine v6).
What you’ll see
Two modes
Best for
What you’ll see
- 4H segment boxes: Instantly visualize the market structure of each 4-hour block.
- Today’s time anchors: “Today” is defined as 08:00 → next day 08:00 (Taipei). Price-scale values are shown only within this window to avoid leftovers.
Two modes
- HL Boxes: Builds a box from each 4H high/low. Optional opening dashed line (contrast-enhanced, extendable). Supports custom cross-session boxes (e.g., 21:30→04:00) with historical, day-by-day backfill.
- OC Boxes: Draws a box from each 4H open/close (close ≥ open = green; otherwise red). Includes time price lines (00/08/12/16/20): lines extend to the current bar, with a right-side {hh:mm} label. Optional display of these reference prices on the price scale. Also supports a custom time price line (e.g., 21:30), retained for 24h and auto-refreshing across days.
Best for
- Tracking 4H box ranges, breakouts, and retests.
- Intraday trading anchored to time references and cross-session comparison.
Phát hành các Ghi chú
This indicator is a 4-hour rhythm tool tailored for the Taipei time zone, offering two independent modes: HL Boxes and OC Boxes (Pine v6).What you’ll see
- 4H segment boxes: Instantly visualize the market structure of each 4-hour block.
- Today’s time anchors: “Today” is defined as 08:00 → next day 08:00 (Taipei). Price-scale values are shown only within this window to avoid leftovers.
Two modes
- HL Boxes: Builds a box from each 4H high/low. Optional opening dashed line (contrast-enhanced, extendable). Supports custom cross-session boxes (e.g., 21:30→04:00) with historical, day-by-day backfill.
- OC Boxes: Draws a box from each 4H open/close (close ≥ open = green; otherwise red). Includes time price lines (00/08/12/16/20): lines extend to the current bar, with a right-side {hh:mm} label. Optional display of these reference prices on the price scale. Also supports a custom time price line (e.g., 21:30), retained for 24h and auto-refreshing across days.
Best for
- Tracking 4H box ranges, breakouts, and retests.
- Intraday trading anchored to time references and cross-session comparison.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.