OPEN-SOURCE SCRIPT

T3 [DCAUT]

96
█ T3 [DCAUT]

📊 INDICATOR OVERVIEW

The T3 Moving Average is a smoothing indicator developed by Tim Tillson and published in Technical Analysis of Stocks & Commodities magazine (January 1998). The algorithm applies Generalized DEMA (Double Exponential Moving Average) recursively three times, creating a six-pole filtering effect that aims to balance noise reduction with responsiveness while minimizing lag relative to price changes.

📐 MATHEMATICAL FOUNDATION

Generalized DEMA (GD) Function:
The core building block is the Generalized DEMA function, which combines two exponential moving averages with weights controlled by the volume factor:

GD(input, v) = EMA(input) × (1 + v) - EMA(EMA(input)) × v

Where v is the volume factor parameter (default 0.7). This weighted combination reduces lag while maintaining smoothness by extrapolating beyond the first EMA using the double-smoothed EMA as a reference.

T3 Calculation Process:
T3 applies the GD function three times recursively:

T3 = GD(GD(GD(Price, v), v), v)

This triple nesting creates a six-pole smoothing effect (each GD applies two EMA operations, resulting in 2 × 3 = 6 total EMA calculations). The cascading refinement progressively filters noise while preserving trend information.

Step-by-Step Breakdown:
  1. First GD application: GD1 = EMA(Price) × (1 + v) - EMA(EMA(Price)) × v - Creates initial smoothed series with lag reduction
  2. Second GD application: GD2 = EMA(GD1) × (1 + v) - EMA(EMA(GD1)) × v - Further refines the smoothing while maintaining responsiveness
  3. Third GD application: T3 = EMA(GD2) × (1 + v) - EMA(EMA(GD2)) × v - Final refinement produces the T3 output


Volume Factor Impact:
The volume factor (v) is the key parameter controlling the balance between smoothness and responsiveness. Tim Tillson recommended v = 0.7 as the optimal default value.

Lower volume factors (v closer to 0.0): Increase the extrapolation effect, making T3 more responsive to price changes but potentially more sensitive to noise.

Higher volume factors (v closer to 1.0): Reduce the extrapolation effect, producing smoother output with less sensitivity to short-term fluctuations but slightly more lag.

The recursive application of the volume factor through three GD stages creates a nonlinear filtering effect that achieves superior lag reduction compared to traditional moving averages of equivalent smoothness.

📊 SIGNAL INTERPRETATION

Trend Direction Signals:
  • Green Line (T3 Rising): Smoothed trend line is rising, may indicate uptrend, consider bullish opportunities when confirmed by other factors
  • Red Line (T3 Falling): Smoothed trend line is falling, may indicate downtrend, consider bearish opportunities when confirmed by other factors
  • Gray Line (T3 Flat): Smoothed trend line is flat, indicates unclear trend or consolidation phase


Price Crossover Signals:
  • Price Crosses Above T3: Price breaks above smoothed trend line, may be bullish signal, requires confirmation from other indicators
  • Price Crosses Below T3: Price breaks below smoothed trend line, may be bearish signal, requires confirmation from other indicators
  • Price Position Relative to T3: Price sustained above T3 may indicate uptrend, sustained below may indicate downtrend


Supporting Analysis Signals:
  • T3 Slope Angle: Steeper slopes indicate stronger trend momentum, flatter slopes suggest weakening trends
  • Price Deviation: Significant price separation from T3 may indicate overextension, watch for pullback or reversal
  • Dynamic Support/Resistance: T3 line can serve as dynamic support (in uptrends) or resistance (in downtrends) reference


🎯 STRATEGIC APPLICATIONS

Common Usage Patterns:
The T3 Moving Average can be incorporated into trading analysis in various ways. These represent common approaches used by market participants, though effectiveness varies by market conditions and requires individual testing:

Trend Filtering:
T3 can be used as a trend filter by observing the relationship between price and the T3 line. The color-coded slope (green for rising, red for falling, gray for sideways) provides visual feedback about the current trend direction of the smoothed series.

Price Crossover Analysis:
Some traders monitor crossovers between price and the T3 line as potential indication points. When price crosses the T3 line, it may suggest a change in the relationship between current price action and the smoothed trend.

Multi-Timeframe Observation:
T3 can be applied to multiple timeframes simultaneously. Observing alignment or divergence between different timeframe T3 indicators may provide context about trend consistency across time scales.

Dynamic Reference Level:
The T3 line can serve as a dynamic reference level for price action analysis. Price distance from T3, price reactions when approaching T3, and the behavior of price relative to the T3 line can all be incorporated into market analysis frameworks.

Application Considerations:
  • Any trading application should be thoroughly tested on historical data before implementation
  • T3 performance characteristics vary across different market conditions and asset types
  • The indicator provides smoothed trend information but does not predict future price movements
  • Combining T3 with other analytical tools and market context improves analysis quality
  • Risk management practices remain essential regardless of the analytical approach used


📋 DETAILED PARAMETER CONFIGURATION

Source Selection:
  • Close Price (Default): Standard choice for end-of-period trend analysis, reduces intrabar noise
  • HL2 (High+Low)/2: Provides balanced view of price action, considers full bar range
  • HLC3 or OHLC4: Incorporates more price information, may provide smoother results
  • Selection Impact: Different sources affect signal timing and smoothness characteristics


Length Configuration:
  • Shorter periods: More responsive, faster reaction, frequent signals, but higher false signal risk in choppy markets
  • Longer periods: Smoother output, fewer signals, better for long-term trends, but slower response
  • Default 14 periods is a common baseline, but optimal length varies by asset, timeframe, and market conditions
  • Parameter selection should be determined through backtesting rather than general recommendations


Volume Factor Configuration:
  • Lower values (closer to 0.0): Increase responsiveness but also noise sensitivity
  • Higher values (closer to 1.0): Increase smoothness but slightly more lag
  • Default 0.7 (Tim Tillson's recommendation) provides good balance for most applications
  • Optimal value depends on signal frequency versus reliability preference, test for specific use case


Parameter Optimization Approach:
  • There are no universal "best" parameter values - optimal settings depend on the specific asset, timeframe, market regime, and trading strategy
  • Start with default values (Length: 14, Volume Factor: 0.7) and adjust based on observed performance in your target market
  • Conduct systematic backtesting across different market conditions to evaluate parameter sensitivity
  • Consider that parameters optimized for historical data may not perform identically in future market conditions
  • Monitor performance and be prepared to adjust parameters as market characteristics evolve


📈 DESIGN FEATURES & MARKET ADAPTATION

Algorithm Design Features:
  • Simple Moving Average (SMA): Equal weighting across lookback period
  • Exponential Moving Average (EMA): Exponentially decreasing weights on historical prices
  • T3 Moving Average: Recursive Generalized DEMA with adjustable volume factor


Market Condition Adaptation:
  • Trending markets: Smoothed indicators generally align more closely with sustained directional movement
  • Ranging markets: All moving averages may generate more crossover signals during non-trending periods
  • Volatile conditions: Higher smoothing parameters reduce short-term sensitivity but increase lag
  • Indicator behavior relative to market conditions should be evaluated for specific applications


USAGE NOTES

This indicator is designed for technical analysis and educational purposes. The T3 Moving Average has limitations and should not be used as the sole basis for trading decisions. Like all trend-following indicators, its performance varies with market conditions, and past signal characteristics do not guarantee future results.

Key Points:
  • T3 is a lagging indicator that responds to price changes rather than predicting future movements
  • Signals should be confirmed with other technical tools and market context
  • Parameters should be optimized for specific market and timeframe
  • Risk management and position sizing are essential
  • Market regime changes can affect indicator effectiveness
  • Test strategies thoroughly on historical data before live implementation
  • Consider broader market context and fundamental factors

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。