OPEN-SOURCE SCRIPT
RSI-Adaptive T3 [ChartPrime]

The RSI-Adaptive T3 is a precision trend-following tool built around the legendary T3 smoothing algorithm developed by Tim Tillson, designed to enhance responsiveness while reducing lag compared to traditional moving averages. Current implementation takes it a step further by dynamically adapting the smoothing length based on real-time RSI conditions — allowing the T3 to “breathe” with market volatility. This dynamic length makes the curve faster in trending moves and smoother during consolidations.
To help traders visualize volatility and directional momentum, adaptive volatility bands are plotted around the T3 line, with visual crossover markers and a dynamic info panel on the chart. It’s ideal for identifying trend shifts, spotting momentum surges, and adapting strategy execution to the pace of the market.
HOIW IT WORKS
At its core, this indicator fuses two ideas:
The result: an evolving trend line that adapts to market tempo in real-time.
KEY FEATURES
⯁ RSI-Based Adaptive Smoothing
⯁ T3 Calculation (Tim Tillson Method)
⯁ Visual Trend Direction & Transitions
⯁ Adaptive Volatility Bands
⯁ Dynamic Info Table
HOW TO USE
CONCLUSION
RSI-Adaptive T3 [ChartPrime] modernizes one of the most elegant smoothing algorithms in technical analysis with intelligent RSI responsiveness and built-in volatility bands. It gives traders a cleaner read on trend health, directional shifts, and expansion dynamics — all in a visually efficient package. Perfect for scalpers, swing traders, and algorithmic modelers alike, it delivers advanced logic in a plug-and-play format.
To help traders visualize volatility and directional momentum, adaptive volatility bands are plotted around the T3 line, with visual crossover markers and a dynamic info panel on the chart. It’s ideal for identifying trend shifts, spotting momentum surges, and adapting strategy execution to the pace of the market.
HOIW IT WORKS
At its core, this indicator fuses two ideas:
- The T3 Moving Average — a 6-stage recursively smoothed exponential average created by Tim Tillson, designed to reduce lag without sacrificing smoothness. It uses a volume factor to control curvature.
- A Dynamic Length Engine — powered by the RSI. When RSI is low (market oversold), the T3 becomes shorter and more reactive. When RSI is high (overbought), the T3 becomes longer and smoother. This creates a feedback loop between price momentum and trend sensitivity.
Pine Script® // Step 1: Adaptive length via RSI rsi = ta.rsi(src, rsiLen) rsi_scale = 1 - rsi / 100 len = math.round(minLen + (maxLen - minLen) * rsi_scale) pine_ema(src, length) => alpha = 2 / (length + 1) sum = 0.0 sum := na(sum[1]) ? src : alpha * src + (1 - alpha) * nz(sum[1]) sum // Step 2: T3 with adaptive length e1 = pine_ema(src, len) e2 = pine_ema(e1, len) e3 = pine_ema(e2, len) e4 = pine_ema(e3, len) e5 = pine_ema(e4, len) e6 = pine_ema(e5, len) c1 = -v * v * v c2 = 3 * v * v + 3 * v * v * v c3 = -6 * v * v - 3 * v - 3 * v * v * v c4 = 1 + 3 * v + v * v * v + 3 * v * v t3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3
The result: an evolving trend line that adapts to market tempo in real-time.
KEY FEATURES
⯁ RSI-Based Adaptive Smoothing
- The length of the T3 calculation dynamically adjusts between a Min Length and Max Length, based on the current RSI.
- When RSI is low → the T3 shortens, tracking reversals faster.
- When RSI is high → the T3 stretches, filtering out noise during euphoria phases.
- Displayed length is shown in a floating table, colored on a gradient between min/max values.
⯁ T3 Calculation (Tim Tillson Method)
- The script uses a 6-stage EMA cascade with a customizable Volume Factor (v), as designed by Tillson (1998).
- Formula:
Pine Script® T3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3 - This technique gives smoother yet faster curves than EMAs or DEMA/Triple EMA.
⯁ Visual Trend Direction & Transitions
- The T3 line changes color dynamically:
- Color Up (default: blue) → bullish curvature
- Color Down (default: orange) → bearish curvature
- Plot fill between T3 and delayed T3 creates a gradient ribbon to show momentum expansion/contraction.
- Directional shift markers (“🞛”) are plotted when T3 crosses its own delayed value — helping traders spot trend flips or pullback entries.
⯁ Adaptive Volatility Bands
- Optional upper/lower bands are plotted around the T3 line using a user-defined volatility window (default: 100).
- Bands widen when volatility rises, and contract during compression — similar to Bollinger logic but centered on the adaptive T3.
- Shaded band zones help frame breakout setups or mean-reversion zones.
⯁ Dynamic Info Table
- A live stats panel shows:
- Current adaptive length
- Maximum smoothing (▲ MaxLen)
- Minimum smoothing (▼ MinLen)
- All values update in real time and are color-coded to match trend direction.
HOW TO USE
- Use T3 crossovers to detect trend transitions, especially during periods of volatility compression.
- Watch for volatility contraction in the bands — breakouts from narrow band periods often precede trend bursts.
- The adaptive smoothing length can also be used to assess current market tempo — tighter = faster; wider = slower.
CONCLUSION
RSI-Adaptive T3 [ChartPrime] modernizes one of the most elegant smoothing algorithms in technical analysis with intelligent RSI responsiveness and built-in volatility bands. It gives traders a cleaner read on trend health, directional shifts, and expansion dynamics — all in a visually efficient package. Perfect for scalpers, swing traders, and algorithmic modelers alike, it delivers advanced logic in a plug-and-play format.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。