PROTECTED SOURCE SCRIPT
Engulfing Logic Candle Consolidation

<Overview>
The "Engulfing Logic Candle Consolidation" indicator is designed to visualize price zones where multiple candlesticks are engulfing each other. When candles meet specific engulfing conditions, the script merges them into a single "virtual" range and displays it using semi-transparent boxes on the chart.
<Features>
- Engulfing Range Logic: Automatically detects and consolidates groups of candles that are fully engulfed by others, forming clear structural zones.
- Multi-Session Time Highlights: Marks major trading sessions (Asia, Europe, U.S.) with customizable colors and visibility settings, helping traders identify time-based market rhythms.
<Logic>
The indicator uses two engulfing conditions to form virtual zones:
1、Short-after-Long (right-side engulfing): If the current candle is engulfed by the previous candle, a virtual box begins from that pair.
2、Long-after-Short (left-side engulfing): If the current candle engulfs one or more previous candles (looping backward), it triggers zone formation.
The zone grows as long as new candles are completely inside the range of prior ones. When engulfing ends, the range is boxed and preserved visually.
<Use Case>
This tool is ideal for traders who focus on price structure. By consolidating engulfing candles into zones, it filters out noise and emphasizes meaningful price behavior. Works well when combined with trendlines, support/resistance, and volume indicators.
---
中文
<概述>
結合律 K 線整理指標用於視覺化市場中具有「吞噬行為」的價格結構。當多根 K 線出現互相包含的情況時,指標會將它們合併成一個虛擬區間,並以半透明區塊方式在圖表中標示出來。
<功能>
- 吞噬區間邏輯:自動判斷多根 K 線是否符合「包容」邏輯,將其歸納為單一整理區。
- 多時區背景提示:標示亞洲、歐洲、美國主要交易時段,並可自由設定顏色與開關,強化交易節奏感知。
<邏輯說明>
此指標使用兩種吞噬條件建立整理區:
短後長(右側包容):若當前 K 線被前一根吞噬,將該兩根視為起點。
長後短(左側包容):若當前 K 線吞噬一或多根前方 K 線,則回頭形成區間。
只要後續 K 線繼續落在區間內,就會不斷擴展。直到不再符合條件,該區間會被框選並視覺化標示。
<使用情境>
適合用於進行價格行為結構分析的交易者。它能簡化雜訊,聚焦在關鍵轉折與延續區。可與趨勢線、支撐壓力、成交量指標等搭配使用,提高 K 線策略的判讀效率。
The "Engulfing Logic Candle Consolidation" indicator is designed to visualize price zones where multiple candlesticks are engulfing each other. When candles meet specific engulfing conditions, the script merges them into a single "virtual" range and displays it using semi-transparent boxes on the chart.
<Features>
- Engulfing Range Logic: Automatically detects and consolidates groups of candles that are fully engulfed by others, forming clear structural zones.
- Multi-Session Time Highlights: Marks major trading sessions (Asia, Europe, U.S.) with customizable colors and visibility settings, helping traders identify time-based market rhythms.
<Logic>
The indicator uses two engulfing conditions to form virtual zones:
1、Short-after-Long (right-side engulfing): If the current candle is engulfed by the previous candle, a virtual box begins from that pair.
2、Long-after-Short (left-side engulfing): If the current candle engulfs one or more previous candles (looping backward), it triggers zone formation.
The zone grows as long as new candles are completely inside the range of prior ones. When engulfing ends, the range is boxed and preserved visually.
<Use Case>
This tool is ideal for traders who focus on price structure. By consolidating engulfing candles into zones, it filters out noise and emphasizes meaningful price behavior. Works well when combined with trendlines, support/resistance, and volume indicators.
---
中文
<概述>
結合律 K 線整理指標用於視覺化市場中具有「吞噬行為」的價格結構。當多根 K 線出現互相包含的情況時,指標會將它們合併成一個虛擬區間,並以半透明區塊方式在圖表中標示出來。
<功能>
- 吞噬區間邏輯:自動判斷多根 K 線是否符合「包容」邏輯,將其歸納為單一整理區。
- 多時區背景提示:標示亞洲、歐洲、美國主要交易時段,並可自由設定顏色與開關,強化交易節奏感知。
<邏輯說明>
此指標使用兩種吞噬條件建立整理區:
短後長(右側包容):若當前 K 線被前一根吞噬,將該兩根視為起點。
長後短(左側包容):若當前 K 線吞噬一或多根前方 K 線,則回頭形成區間。
只要後續 K 線繼續落在區間內,就會不斷擴展。直到不再符合條件,該區間會被框選並視覺化標示。
<使用情境>
適合用於進行價格行為結構分析的交易者。它能簡化雜訊,聚焦在關鍵轉折與延續區。可與趨勢線、支撐壓力、成交量指標等搭配使用,提高 K 線策略的判讀效率。
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.