OPEN-SOURCE SCRIPT
已更新

DuoBlocks - ICT Order Block detector

192
DuoBlocks (ICT Order Block Detector)
(An ICT(Inner Circle Trading)-style Order Block(OB) tool that highlights only the most relevant and recent Demand/Supply zones using FVG and Engulfing based OB sources.)

Overview
DuoBlocks is an ICT-inspired Order Block detector that uses the mostly used two major order block types: FVG(Fair Value Gap) or Engulfing. There are many Order Block indicators out there, but I couldn’t find one that consistently highlights the most relevant, most recent OB relative to the current price without making the chart a mess and that's why so I built this script.

快照

FVG-based OB (FVG-OB): OBs derived from 3-candle fair value gap logic.

Engulfing-based OB (Engulfing-OB): OBs derived from strong 2-candle reversal/displacement (engulf) logic.

Usage

快照

FVG-OB (Fair Value Gap Order Blocks)
This script finds bullish/bearish FVGs and draws an Order Block zone from the candle that created the move. Think of these zones as your potential next support (bullish) and resistance (bearish) levels.

Engulfing-OB (Engulfing Order Blocks)
This script also finds strong bullish/bearish engulfing candles and draws an Order Block zone from the candle that got engulfed.
Same idea: treat them as potential next support (bullish) and resistance (bearish) levels.

**Use these zones like “next level” support/resistance areas. Don’t blindly buy/sell—wait for your own confirmation and manage risk properly.

Settings

Show FVG-OB
Toggle display of the selected FVG-based bullish/bearish OB (one per side).

Show Engulfing-OB
Toggle display of the selected Engulfing-based bullish/bearish OB (one per side).

Max Invalidation Attempts (FVG OB or Engulf OB)

Controls how many separate breach events a stored OB can absorb before it is marked invalid (discarded). The counting happens when either of below occurs.

Bullish OB: price prints a low below the OB bottom.
Bearish OB: price prints a high above the OB top.
Each time this happens, the OB’s invalidation counter increments by +1.

Once the counter reaches your Max Attempts, that OB is flagged as no longer live, so it will stop being eligible for selection. Then the script automatically falls through to the next best/next nearest valid OB in memory.

Right Extend (bars)
How far to extend the selected OB boxes to the right.

Lookback bars
Maximum historical bars scanned for detection. Lower values = faster/cleaner, higher values = more history retained.

Max stored OB per side
Maximum stored bullish and bearish OBs in memory (per source).

Bullish/Bearish OB Color
Controls border/midline coloring for bullish and bearish zones.

Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice or investment recommendations. Trading cryptocurrencies and other financial instruments involves significant risk, and you are solely responsible for your own decisions based on your financial situation, objectives, and risk tolerance. The author assumes no liability for losses arising from the use of this indicator.
發行說明
.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。