PROTECTED SOURCE SCRIPT
Telah dikemas kini UNITY [ALGO] PO3

Only Use if you Know ALGOTRADING Model po3 Based in Clear Goals.
Nota Keluaran
Patch, update bias color in candle based when made Fail wing in both sides.Nota Keluaran
New Function to SFP Reseted after Break Dol LineNota Keluaran
Core Features & Functionality1. Swing Failure Pattern (SFP) Detection (Current Timeframe)
The indicator's primary engine identifies SFPs on the chart's active timeframe with two layers of logic:
Standard SFP: Detects a classic liquidity sweep where the current candle's wick takes out the high or low of the previous candle and the body closes back within the previous candle's range.
Outside Bar SFP Logic: Intelligently analyzes engulfing candles that sweep both the high and low of the previous candle. A valid signal is only generated if the candle has a clear directional close:
Bullish Signal: If the outside bar closes higher than its open.
Bearish Signal: If the outside bar closes lower than its open.
Neutral (doji-like) outside bars are ignored to filter for indecision.
2. Comprehensive On-Chart SFP Markings
When a valid SFP is detected, a full suite of dynamic drawings appears on the chart:
Failure Line: A dashed line (red for bearish, green for bullish) marking the precise price level of the liquidity sweep.
PREMIUM ZONE (SFP Candle Wick): A transparent, colored rectangle highlighting the rejection wick of the signal candle (the upper wick for bearish SFPs, the lower wick for bullish SFPs). This zone automatically extends to the right, following the current price, until the DOL is hit.
CRT BOX (Reference Candle): A transparent box with a colored border drawn around the entire range of the candle that was swept (Candle 1). This highlights the full liquidity zone and also extends dynamically until the DOL is hit.
Dynamic Target Line: A blue dashed line marking the primary objective (the low of the signal candle for shorts, the high for longs).
The line begins with a "⏳ Target" label and extends with the current price.
Upon being touched by price, the line freezes, and its label permanently changes to "✅ Target".
Dynamic DOL (Draw on Liquidity) Line: An orange dashed line marking the invalidation level, defined as the opposite extremity of the swept candle (Candle 1).
It begins with a "⏳ dol" label and extends with the price.
Upon being touched, it freezes, and its label changes to "✅ dol".
3. Multi-Session Killzone Liquidity Levels (H4 Analysis)
The indicator automatically analyzes the H4 timeframe in the background to identify and plot key liquidity levels from three major trading sessions, based on their UTC opening times.
1am Killzone (London Lunch): Tracks the high/low of the 05:00 UTC H4 candle.
5am Killzone (London Open): Tracks the high/low of the 09:00 UTC H4 candle.
9am Killzone (NY Open): Tracks the high/low of the 13:00 UTC H4 candle.
For each of these Killzones, the indicator provides two types of analysis:
Last KZ Lines: Plots the high and low of the most recent qualifying Killzone candle. These lines are dynamic, extending with price and showing a ⏳/✅ status when touched.
Fresh Zones: A powerful feature that scans the entire available history of Killzones to find and display the closest untouched high (above the current price) and the closest untouched low (below the current price). These "Fresh" lines are also fully dynamic and provide a real-time view of the most relevant nearby liquidity targets.
4. Advanced User Settings & Chart Management
The indicator is designed for a clean and user-centric experience with powerful customization:
Show Only Last SFP: Keeps the chart clean by automatically deleting the previous SFP setup when a new one appears.
Hide SFP on DOL Reset: When checked, automatically removes all drawings related to an SFP setup the moment its invalidation level (DOL line) is touched. This leaves only active, valid setups on the chart.
Hide Consumed KZ: When checked, automatically removes any Killzone or Fresh Zone line from the chart as soon as it is touched by the price.
Independent Toggles: Every visual element—SFP signals, each of the three Killzones, and their respective "Fresh" zone counterparts—can be turned on or off independently from the settings menu for complete control over the visual display.
Z-Order Priority: All indicator drawings are rendered in front of the chart candles, ensuring they are always clearly visible and never hidden from view.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.