OPEN-SOURCE SCRIPT
GpPa - Φ Frames (V5.0.1)

# GpPa — Φ Frames (V5.0.1)
**What it does**
This tool overlays nine “Phi Frames” on your chart. Each frame builds a dynamic price **box** from the **highest high** and **lowest low** over a user-defined lookback on a fixed timeframe. The boxes help you read structure, extremes, and balance zones across multiple scales in one view. No signals are generated.
**How it works (simple)**
* For every frame, the script requests data at a fixed resolution (e.g., 1D, 610m, 233m, 89m, etc.).
* It scans the last *N* bars at that resolution (your input).
* It draws a box from the start of that window to the current time, bounded by the window’s high and low.
* Optional “Re-Analysis Zone” guides project a vertical line into the future at a user-set offset, giving you a planning marker.
**Frames included**
* **M1** – 1D resolution (default length 258 bars)
* **M2** – 1D resolution (default length 160 bars)
* **M3** – 610-minute resolution (default length 233 bars)
* **M4** – 233-minute resolution (default length 377 bars)
* **M5** – 89-minute resolution (default length 610 bars)
* **M6** – 34-minute resolution (default length 987 bars)
* **M7** – 13-minute resolution (default length 1597 bars)
* **M8** – 5-minute resolution (default length 2584 bars)
* **M9** – 2-minute resolution (default length 4181 bars)
These durations follow a Fibonacci/Φ scheme. Using multiple frames together reveals confluence and nested ranges.
**Inputs & customization**
* **Per-frame controls:**
* *Length (bars)* — lookback window at the frame’s resolution.
* *Show/Hide* — toggle a frame on or off.
* *Color* — box border color.
* **Re-Analysis Zone (M4, M5, M6):**
* *Offset (bars)* — projects a future reference time from the right edge of the box.
* *Show/Hide* and *Color.*
* The line spans slightly above and below the box (+/-10% of its height) for visibility.
**Tips**
* Start with 2–3 frames to reduce clutter. Add more as needed.
* On lower chart resolutions, higher-timeframe boxes will “step” at their own closes.
* Use frames as context for your own entries, risk, and targets.
* Colors are semi-transparent by design so overlaps remain readable.
**Behavior & notes**
* Boxes update intrabar; values settle when the source timeframe closes.
* No alerts, signals, or strategy logic are included.
* Works on any symbol and timeframe.
* Overlay: **true**.
**Disclaimer**
This tool is for educational and informational purposes only. It is not financial advice. Always do your own research and manage risk.
**Credits**
Pine Script™ v6. © thewayofrichie.
**What it does**
This tool overlays nine “Phi Frames” on your chart. Each frame builds a dynamic price **box** from the **highest high** and **lowest low** over a user-defined lookback on a fixed timeframe. The boxes help you read structure, extremes, and balance zones across multiple scales in one view. No signals are generated.
**How it works (simple)**
* For every frame, the script requests data at a fixed resolution (e.g., 1D, 610m, 233m, 89m, etc.).
* It scans the last *N* bars at that resolution (your input).
* It draws a box from the start of that window to the current time, bounded by the window’s high and low.
* Optional “Re-Analysis Zone” guides project a vertical line into the future at a user-set offset, giving you a planning marker.
**Frames included**
* **M1** – 1D resolution (default length 258 bars)
* **M2** – 1D resolution (default length 160 bars)
* **M3** – 610-minute resolution (default length 233 bars)
* **M4** – 233-minute resolution (default length 377 bars)
* **M5** – 89-minute resolution (default length 610 bars)
* **M6** – 34-minute resolution (default length 987 bars)
* **M7** – 13-minute resolution (default length 1597 bars)
* **M8** – 5-minute resolution (default length 2584 bars)
* **M9** – 2-minute resolution (default length 4181 bars)
These durations follow a Fibonacci/Φ scheme. Using multiple frames together reveals confluence and nested ranges.
**Inputs & customization**
* **Per-frame controls:**
* *Length (bars)* — lookback window at the frame’s resolution.
* *Show/Hide* — toggle a frame on or off.
* *Color* — box border color.
* **Re-Analysis Zone (M4, M5, M6):**
* *Offset (bars)* — projects a future reference time from the right edge of the box.
* *Show/Hide* and *Color.*
* The line spans slightly above and below the box (+/-10% of its height) for visibility.
**Tips**
* Start with 2–3 frames to reduce clutter. Add more as needed.
* On lower chart resolutions, higher-timeframe boxes will “step” at their own closes.
* Use frames as context for your own entries, risk, and targets.
* Colors are semi-transparent by design so overlaps remain readable.
**Behavior & notes**
* Boxes update intrabar; values settle when the source timeframe closes.
* No alerts, signals, or strategy logic are included.
* Works on any symbol and timeframe.
* Overlay: **true**.
**Disclaimer**
This tool is for educational and informational purposes only. It is not financial advice. Always do your own research and manage risk.
**Credits**
Pine Script™ v6. © thewayofrichie.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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ã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.