OPEN-SOURCE SCRIPT
Cập nhật Delta Heiken Ashi - Reversals

This indicator identifies significant delta pressure reversals on Heiken Ashi candles, marking where sustained buying or selling runs exhaust and flip.
Built on the same delta-colored Heiken Ashi engine as the original indicator, this version adds filtered reversal markers designed to catch meaningful intraday turning points rather than bar-by-bar momentum reads.
How it works:
The indicator tracks "runs" — consecutive periods where estimated delta stays on one side of zero (net buying or net selling). When a run ends and delta flips, the completed run is evaluated against multiple filters. Only significant reversals get marked.
Three filters must all pass:
Run Duration — The prior run must last a minimum number of bars. Brief delta spikes don't count.
Swing Size — Peak delta during the run must exceed a threshold relative to recent delta activity. Weak, indecisive runs are filtered out.
Run Volume — The run's average volume per bar must meet a minimum fraction of the overall average volume. This naturally filters thin overnight sessions where delta is noisy and unreliable.
Separate RTH and OVN settings — Regular Trading Hours and overnight sessions have independent thresholds for run duration, swing size, and volume requirements. OVN moves develop slower and on thinner volume, so they need different parameters. Each session can be toggled on or off independently.
⚠️ Important: This is not true delta. Delta is approximated by attributing each bar's volume based on where price closed within its range. This is directionally useful but it is not actual order flow from Level 2 data.
Pairs well with support/resistance levels, market structure indicators, or any framework where knowing when a move is exhausting adds edge.
Built on the same delta-colored Heiken Ashi engine as the original indicator, this version adds filtered reversal markers designed to catch meaningful intraday turning points rather than bar-by-bar momentum reads.
How it works:
The indicator tracks "runs" — consecutive periods where estimated delta stays on one side of zero (net buying or net selling). When a run ends and delta flips, the completed run is evaluated against multiple filters. Only significant reversals get marked.
Three filters must all pass:
Run Duration — The prior run must last a minimum number of bars. Brief delta spikes don't count.
Swing Size — Peak delta during the run must exceed a threshold relative to recent delta activity. Weak, indecisive runs are filtered out.
Run Volume — The run's average volume per bar must meet a minimum fraction of the overall average volume. This naturally filters thin overnight sessions where delta is noisy and unreliable.
Separate RTH and OVN settings — Regular Trading Hours and overnight sessions have independent thresholds for run duration, swing size, and volume requirements. OVN moves develop slower and on thinner volume, so they need different parameters. Each session can be toggled on or off independently.
⚠️ Important: This is not true delta. Delta is approximated by attributing each bar's volume based on where price closed within its range. This is directionally useful but it is not actual order flow from Level 2 data.
Pairs well with support/resistance levels, market structure indicators, or any framework where knowing when a move is exhausting adds edge.
Phát hành các Ghi chú
Added "Wait for Bar Close" (default off) right below "Show Reversal Markers." 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.
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.
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.