OPEN-SOURCE SCRIPT
CandelaCharts - Order Blocks

📝 Overview
The CandelaCharts - Order Blocks indicator identifies high-probability supply and demand zones based on ICT (Inner Circle Trader) and Smart Money Concepts (SMC). An ICT Order Block represents the specific candle where institutional liquidity was injected to reverse the market, acting as a magnet for future price action. This indicator not only highlights these crucial institutional footprints but dynamically tracks how deeply they have been mitigated by future price action.
📦 Features
⚙️ Settings
⚡️ Showcase
Order Blocks

Mitigation

Mean Line

🚨 Alerts
The indicator includes fully integrated dynamic alerts that can be captured using the "Any alert() function call" condition, as well as standard alert conditions:
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
The CandelaCharts - Order Blocks indicator identifies high-probability supply and demand zones based on ICT (Inner Circle Trader) and Smart Money Concepts (SMC). An ICT Order Block represents the specific candle where institutional liquidity was injected to reverse the market, acting as a magnet for future price action. This indicator not only highlights these crucial institutional footprints but dynamically tracks how deeply they have been mitigated by future price action.
📦 Features
- Precision Detection: Identifies both Bullish and Bearish Order Blocks using advanced pivot tracking and multi-timeframe logic.
- Dynamic Mitigation Tracking: Displays the precise percentage of the unmitigated zone remaining. The block visually updates as price pierces deeper into the zone, leaving a solid background on the unmitigated portion and a faded background where price has already traded.
- Wick vs Close Logic: Customize exactly how mitigation is calculated. Choose to invalidate and measure mitigation depth using candle wicks or strict candle closes.
- Clean Chart Mechanics: Built-in filtering removes overlapping blocks, keeping your chart tidy and focusing on the most relevant levels.
- Customizable Aesthetics: Full control over block borders, mean lines (mid-lines), text formatting, and alignment settings (Full, Middle, Accurate, Precise, Sequence).
⚙️ Settings
- Show: Toggles the visibility of the entire indicator.
- History: Adjust the maximum number of historical Order Blocks to display simultaneously.
- Alignment: Controls how the top and bottom bounds of the block are calculated (e.g., Full Candle, Accurate, Precise, Sequence).
- Mitigation Toggle & Mode: Enable or disable the visual percentage display. Choose Wick or Close to determine how mitigation depth and block invalidation are calculated.
- Timeframe: Lock the Order Blocks to a specific timeframe, or leave it dynamic.
- Show Border: Toggle borders and customize their style/width.
- Show Mean: Toggle the mean line (midline) of the blocks and customize its style/width.
- Text Size: Toggle the text display and choose the desired text size. When toggled off, the block type label is hidden, but the mitigation percentage cleanly aligns to the right.
- Hide Overlap: When enabled, removes redundant order blocks that share the same price region.
⚡️ Showcase
Order Blocks
Mitigation
Mean Line
🚨 Alerts
The indicator includes fully integrated dynamic alerts that can be captured using the "Any alert() function call" condition, as well as standard alert conditions:
- New Bullish/Bearish Order Block: Triggers the moment a new valid order block is confirmed.
- Order Block Touch: Triggers when a candle pierces or enters an active, unmitigated order block.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
🔵 Tools that give you the edge: candelacharts.com/.
🔵 Join our free discord for updates: candelacharts.com/community
🔵 Join our free discord for updates: candelacharts.com/community
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
🔵 Tools that give you the edge: candelacharts.com/.
🔵 Join our free discord for updates: candelacharts.com/community
🔵 Join our free discord for updates: candelacharts.com/community
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.