OPEN-SOURCE SCRIPT
Trend Absorption Pro

Trend Absorption Pro is a price action indicator designed to identify high-probability absorption zones — candles where smart money is likely absorbing supply or demand — within the context of a confirmed trend, using a multi-confluence scoring system.
How it works
The indicator uses a Keltner Channel + EMA structure to define trend context and pullback zones. A buy signal requires price to be in an uptrend (lower band above the EMA) and to pull back into or beyond the Keltner bands. A sell signal mirrors this logic on the downside. Within that context, each candle is scored across up to 12 confluence factors:
Anomalous volume (mandatory or optional)
Rejection wick size (lower or upper)
Close position within the candle range
Bullish or bearish candle body
Compressed range relative to ATR
Estimated delta (buy/sell pressure approximation)
Liquidity sweep (spring/upthrust detection)
Pullback depth bonus (reaching the Keltner midline or beyond)
Optional real delta from a lower timeframe
Only candles that meet the minimum confluence threshold are marked. Signals are displayed as color-coded bubbles, sized dynamically by relative volume, with optional volume and score labels.
Optional Filters (independent on/off switches)
Stochastic Filter — Restricts buy signals to oversold readings and sell signals to overbought readings. Period, smoothing, and threshold levels are fully configurable (default 10, 3, 3).
Divergence Filter — Adapted from the widely used "Divergence for Many Indicators" framework. Requires a confirmed bullish divergence (on any selected indicator) within a configurable lookback window before a buy signal is accepted, and a bearish divergence before a sell. Supports Regular, Hidden, or both divergence types across up to 11 indicators: MACD, MACD Histogram, RSI, Stochastic, CCI, Momentum, OBV, VW-MACD, Chaikin Money Flow, Money Flow Index, and an optional external source.
Both filters are fully independent — use none, one, or both simultaneously depending on your strategy.
Resumption Trigger
Once an absorption candle is confirmed with sufficient confluence, the indicator watches for a breakout beyond the signal candle's high or low and plots a triangle arrow to mark the resumption of the move.
Fully Configurable
Every parameter is editable: trend periods, scoring thresholds, visual style (bubble or classic arrow label), bubble size, colors, transparency, max history, and alert sensitivity.
Best used on liquid instruments with reliable volume data. The Divergence Filter requires a pivot period to confirm, which introduces a natural lag — use the "Don't Wait for Confirmation" option to reduce it.
How it works
The indicator uses a Keltner Channel + EMA structure to define trend context and pullback zones. A buy signal requires price to be in an uptrend (lower band above the EMA) and to pull back into or beyond the Keltner bands. A sell signal mirrors this logic on the downside. Within that context, each candle is scored across up to 12 confluence factors:
Anomalous volume (mandatory or optional)
Rejection wick size (lower or upper)
Close position within the candle range
Bullish or bearish candle body
Compressed range relative to ATR
Estimated delta (buy/sell pressure approximation)
Liquidity sweep (spring/upthrust detection)
Pullback depth bonus (reaching the Keltner midline or beyond)
Optional real delta from a lower timeframe
Only candles that meet the minimum confluence threshold are marked. Signals are displayed as color-coded bubbles, sized dynamically by relative volume, with optional volume and score labels.
Optional Filters (independent on/off switches)
Stochastic Filter — Restricts buy signals to oversold readings and sell signals to overbought readings. Period, smoothing, and threshold levels are fully configurable (default 10, 3, 3).
Divergence Filter — Adapted from the widely used "Divergence for Many Indicators" framework. Requires a confirmed bullish divergence (on any selected indicator) within a configurable lookback window before a buy signal is accepted, and a bearish divergence before a sell. Supports Regular, Hidden, or both divergence types across up to 11 indicators: MACD, MACD Histogram, RSI, Stochastic, CCI, Momentum, OBV, VW-MACD, Chaikin Money Flow, Money Flow Index, and an optional external source.
Both filters are fully independent — use none, one, or both simultaneously depending on your strategy.
Resumption Trigger
Once an absorption candle is confirmed with sufficient confluence, the indicator watches for a breakout beyond the signal candle's high or low and plots a triangle arrow to mark the resumption of the move.
Fully Configurable
Every parameter is editable: trend periods, scoring thresholds, visual style (bubble or classic arrow label), bubble size, colors, transparency, max history, and alert sensitivity.
Best used on liquid instruments with reliable volume data. The Divergence Filter requires a pivot period to confirm, which introduces a natural lag — use the "Don't Wait for Confirmation" option to reduce it.
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.