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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.