OPEN-SOURCE SCRIPT
ที่อัปเดต: ZigZag Fibo Cluster (PRZ)

This indicator is designed to identify high-probability Potential Reversal Zones (PRZ) by combining Multi-Timeframe (MTF) analysis with Fibonacci clusters. It focuses on filtering out market noise to find mathematically validated support and resistance levels, making it highly effective for intraday trading and sniper entries.
Core Logic & Key Features:
Dual-Layer ZigZag Architecture: The system simultaneously tracks two different ZigZag structures on the chart. It calculates a "Major" wave (default 10-5) for higher timeframes (1D, 4H, 1H) and a "Minor" wave (default 6-3) for the active lower timeframe (e.g., 20m).
Fibonacci Cluster (Kissing) Detector: Fibonacci retracements and extensions from different timeframes rarely align perfectly. This indicator continuously cross-references the active Fibo levels from the Major and Minor structures to find algorithmic overlaps.
Strict 0.1% Precision Tolerance: When a Major Fibonacci level and a Minor Fibonacci level converge within a strict 0.1% price margin, the system validates this as a "Cluster" and plots a precise "PRZ ±0.1%" label on the chart.
Visual Clarity & Chart Cleanliness: It prevents chart clutter by hiding hundreds of irrelevant Fibonacci lines. It only prints labels where the 0.1% tolerance condition is met—meaning both the macro and micro structures agree on the reversal point. Historical wave references are kept as subtle dotted lines.
Dynamic Customization: All ZigZag deviation parameters (Left/Right bars) and extended Fibonacci levels (1.272, 1.618, -0.618, etc.) can be fully customized via the settings menu to adapt to different asset volatilities.
How to Use:
When the "PRZ ±0.1%" label appears, it indicates that the current price action has reached both its macro and micro algorithmic targets. These specific zones provide asymmetric risk/reward opportunities, allowing traders to plan trend reversals, define take-profit areas, or execute counter-trend trades with extremely tight stop-loss margins.
Core Logic & Key Features:
Dual-Layer ZigZag Architecture: The system simultaneously tracks two different ZigZag structures on the chart. It calculates a "Major" wave (default 10-5) for higher timeframes (1D, 4H, 1H) and a "Minor" wave (default 6-3) for the active lower timeframe (e.g., 20m).
Fibonacci Cluster (Kissing) Detector: Fibonacci retracements and extensions from different timeframes rarely align perfectly. This indicator continuously cross-references the active Fibo levels from the Major and Minor structures to find algorithmic overlaps.
Strict 0.1% Precision Tolerance: When a Major Fibonacci level and a Minor Fibonacci level converge within a strict 0.1% price margin, the system validates this as a "Cluster" and plots a precise "PRZ ±0.1%" label on the chart.
Visual Clarity & Chart Cleanliness: It prevents chart clutter by hiding hundreds of irrelevant Fibonacci lines. It only prints labels where the 0.1% tolerance condition is met—meaning both the macro and micro structures agree on the reversal point. Historical wave references are kept as subtle dotted lines.
Dynamic Customization: All ZigZag deviation parameters (Left/Right bars) and extended Fibonacci levels (1.272, 1.618, -0.618, etc.) can be fully customized via the settings menu to adapt to different asset volatilities.
How to Use:
When the "PRZ ±0.1%" label appears, it indicates that the current price action has reached both its macro and micro algorithmic targets. These specific zones provide asymmetric risk/reward opportunities, allowing traders to plan trend reversals, define take-profit areas, or execute counter-trend trades with extremely tight stop-loss margins.
Release Note
Added 5m. analysisOptimised for better performance with less CPU usage
Release Note
Minor fix: Adjusted PRZ distance to FIBO lineRelease Note
Left To RightRight To left Adj.
Release Note
# ZigZag FIBO V3 — TradingView Description## What does this indicator do?
This indicator automatically draws Fibonacci retracement levels based on the most recent swing high and swing low across five different timeframes — Daily, 4H, 1H, 20-minute, and 5-minute — all on a single chart. You no longer need to manually draw Fibonacci levels for each timeframe. The indicator does it for you, in real time.
---
## How to use it
Simply add the indicator to any chart. Fibonacci levels for all selected timeframes will appear immediately. Each timeframe has its own color so you can tell them apart at a glance.
When multiple timeframes show a Fibonacci level at the same price, that area acts as a stronger support or resistance zone.
---
## Settings
**Fibo Direction**
Choose whether Fibonacci levels are drawn from left to right or right to left. This is purely a visual preference — the price levels remain the same either way.
**Data Source**
This is the most important setting. It controls how the indicator finds the current swing high and low:
- **Lookahead (Real-Time)** — The Fibonacci levels update live as price moves. When price makes a new high or low, the levels shift immediately. This matches how a trader would manually redraw Fibonacci on a live chart. Recommended for active trading.
- **Closed Candles (Non-Repainting)** — The Fibonacci levels only update after a swing point is fully confirmed by closed candles. Levels are more stable and will not move mid-candle. Recommended if you want consistent historical levels.
---
## Timeframe Settings (Daily, 4H, 1H, 20m, 5m)
Each timeframe can be turned on or off independently. You can also change the color, transparency, and line style (solid, dashed, dotted) for each one.
---
## ZigZag Settings
Controls how sensitive the swing point detection is. Higher values mean the indicator only picks up larger, more significant swings. Lower values make it more sensitive to smaller moves.
- **Major ZigZag** — Used for Daily, 4H, and 1H levels
- **Minor ZigZag** — Used for 20-minute levels
- **Micro ZigZag** — Used for 5-minute levels
---
## Extended Fibonacci Levels
The standard Fibonacci levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0) are always shown. Extended levels can be turned on separately:
**Extended (+)** — Levels beyond the 100% mark, useful for finding price targets above the swing high:
1.272 / 1.414 / 1.618 / 2.000 / 2.272 / 2.618
**Extended (−)** — Levels below the 0% mark, useful for finding support below the swing low:
−0.236 / −0.272 / −0.382 / −0.500 / −0.618 / −0.786 / −1.000
Each level has its own checkbox so you can show only the ones you actually use.
---
## What changed from V2?
- **Live Swing mode** now works as intended — Fibonacci levels follow price in real time, exactly as a trader would draw them by hand
- **Extended Fibonacci levels** have a cleaner, more organized layout in the settings panel
- Added **−0.272**, **−0.500**, **−0.786** to the negative extended levels
- Removed rarely-used levels 3.618 and 4.236 to keep things clean
- Each individual Fibonacci level can now be toggled on or off without affecting the others
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน