OPEN-SOURCE SCRIPT
Aktualisiert Continuation Index [DCAUT]

█ Continuation Index [DCAUT]
📊 OVERVIEW
Continuation Index (CI) is an advanced trend analysis indicator developed by John F. Ehlers. This indicator provides early warning signals for trend onset, continuation, and exhaustion, with values oscillating between -1 and +1 to offer clear trend state identification for traders.
Based on the article TASC 2025.09 "Trend Onset And Trend Exhaustion - The Continuation Index" by John F. Ehlers.
💡 CORE VALUE
Unlike traditional trend indicators, the Continuation Index provides:
- Advanced dual-filter architecture (Ultimate Smoother + Laguerre Filter)
- Inverse Fisher Transform for enhanced signal-to-noise ratio
- Adaptive gamma parameter allowing market-specific tuning
- Binary state output (+1/-1) eliminating interpretation ambiguity
🎯 CONCEPTS
Signal Interpretation
Primary Applications
📋 PARAMETER SETUP
📊 COLOR CODING
📊 OVERVIEW
Continuation Index (CI) is an advanced trend analysis indicator developed by John F. Ehlers. This indicator provides early warning signals for trend onset, continuation, and exhaustion, with values oscillating between -1 and +1 to offer clear trend state identification for traders.
Based on the article TASC 2025.09 "Trend Onset And Trend Exhaustion - The Continuation Index" by John F. Ehlers.
💡 CORE VALUE
Unlike traditional trend indicators, the Continuation Index provides:
- Advanced dual-filter architecture (Ultimate Smoother + Laguerre Filter)
- Inverse Fisher Transform for enhanced signal-to-noise ratio
- Adaptive gamma parameter allowing market-specific tuning
- Binary state output (+1/-1) eliminating interpretation ambiguity
🎯 CONCEPTS
Signal Interpretation
- CI > 0.5: Strong bullish trend continuation - consider holding/adding long positions
- CI = +1: Maximum bullish signal - strong uptrend in progress
- CI < -0.5: Strong bearish trend continuation - consider holding/adding short positions
- CI = -1: Maximum bearish signal - strong downtrend in progress
- CI near 0: Neutral zone - trend uncertain, wait for clear signals
- Brief pullbacks from extreme states: Potential reentry opportunities in trend direction
Primary Applications
- Trend Onset Detection: Early warning signals for trend initiation
- Trend Exhaustion Signals: Identify potential trend reversals
- Position Management: Clear binary states for entry/exit decisions
- Market Timing: Adaptive filtering reduces false signals
📋 PARAMETER SETUP
- Source: Data source for calculation (default: close)
- Length: The calculation length for the filters (default: 40, min: 1)
- Gamma: Controls the phase response of the Laguerre filter. Smaller values increase responsiveness (default: 0.8, range: 0.0-1.0)
- Laguerre Order: The order of the Laguerre filter, which directly affects its lag (default: 8, range: 1-10)
📊 COLOR CODING
- Green: CI > 0.5 - Bullish trend continuation
- Red: CI < -0.5 - Bearish trend continuation
- Gray: Neutral zone - Trend unclear
Versionshinweise
📌 ADDITIONAL INFORMATIONMathematical Foundation:
The Continuation Index employs a sophisticated multi-stage signal processing architecture developed by John F. Ehlers:
Core Algorithm:
1. Ultimate Smoother: Initial noise reduction through two-pole Butterworth filter
2. Laguerre Filter: Adaptive phase-based filtering with controllable gamma (0.0-1.0) and order (1-10) parameters
3. Inverse Fisher Transform: Maps filtered values to bounded range [-1, +1] for clear binary state transitions
Calculation Process:
• Step 1: Apply Ultimate Smoother to raw price data
• Step 2: Process through Laguerre filter with specified gamma and order
• Step 3: Apply Inverse Fisher Transform to normalize output
• Step 4: Result oscillates between -1 (maximum bearish) and +1 (maximum bullish)
Originality & Technical Innovation:
The Continuation Index represents a significant advancement in trend analysis by combining three sophisticated signal processing techniques. Unlike traditional trend indicators relying on simple moving averages, this employs Ehlers' advanced filtering methodology for earlier and more reliable trend signals. The dual-filter architecture effectively removes market noise while maintaining phase integrity, and the Inverse Fisher Transform creates clear binary states eliminating interpretation ambiguity.
The adaptive gamma parameter allows tuning the indicator's responsiveness to match specific market characteristics. The bounded output range [-1, +1] provides intuitive signal interpretation compared to unbounded oscillators.
Advanced Signal Recognition:
• Trend Initiation: Sharp transitions from neutral zone (near 0) to extreme values (±0.5 or beyond) indicate strong trend onset
• Trend Strength: Values near ±1 indicate maximum trend strength with high confidence
• Trend Exhaustion: Failure to maintain extreme values or divergence with price suggests weakening momentum
• Reentry Opportunities: Brief pullbacks from extreme states (e.g., from +1 to +0.7) may offer favorable reentry points
• False Signal Filtering: Dual-filter architecture significantly reduces whipsaws compared to single-stage indicators
Strategic Application Methods:
Trend Following:
• Enter long when CI crosses above 0.5; short when below -0.5
• Hold positions while CI maintains extreme values (>0.5 or <-0.5)
• Exit when CI crosses back through 0 or shows price divergence
Position Management:
• Full position when CI first crosses threshold with confirmation
• Add to position on brief pullbacks that don't cross into neutral zone
• Reduce by 50% when CI pulls back to 0.3 from extreme
• Close entirely when CI crosses 0 or enters opposite extreme
Multi-Timeframe Coordination:
• Use daily/weekly for primary trend direction (CI > 0.5 = bullish bias)
• Use hourly/4-hour for tactical entry/exit timing
• Only trade when CI aligns across multiple timeframes
• Divergence between timeframes suggests caution
Divergence Analysis:
• Bullish: Price makes lower low but CI forms higher low
• Bearish: Price makes higher high but CI forms lower high
• Wait for CI to cross threshold before acting on divergence
Parameter Configuration:
Length (Default: 40):
• Determines lookback period for Ultimate Smoother and calculation window
• Shorter (20-30): Increases responsiveness but may produce more false signals
• Longer (50-80): Provides smoother signals but increases lag
• Recommendation: Use shorter for volatile markets, longer for stable trends
Gamma (Default: 0.8):
• Controls Laguerre filter's phase response and adaptability (0.0-1.0)
• Lower values (0.5-0.7): Maximum responsiveness for fast-moving markets
• Higher values (0.85-0.95): Maximum smoothing for noisy markets
• Critical: Lower gamma makes indicator more reactive to short-term changes
Laguerre Order (Default: 8):
• Defines filter's polynomial degree and lag characteristics (1-10)
• Lower orders (4-6): Minimal lag but less noise reduction
• Higher orders (9-10): Maximum smoothing but increased lag
• Tradeoff: Higher orders reduce false signals but delay genuine trend detection
Parameter Interaction:
• Decreasing both gamma and order creates highly responsive but potentially noisy indicator
• Increasing both creates very smooth but lagging indicator
• Optimal: Moderate gamma (0.7-0.8) with moderate order (7-9) for most applications
Optimization Strategy:
• Backtest different combinations on representative historical data
• Validate parameter robustness across different market periods
• Consider different parameters for high vs. low volatility regimes
• Shorter timeframes may benefit from reduced length and gamma
• Avoid optimizing to perfectly fit historical data
Performance Characteristics:
Core Advantages:
• Advanced signal processing provides clearer trend identification than traditional indicators
• Bounded output [-1, +1] eliminates interpretation ambiguity
• Adaptive filtering reduces false signals in ranging markets
• Binary state transitions provide clear entry/exit points
• Suitable for various instruments and timeframes with proper tuning
Comparison with Traditional Indicators:
• vs. MACD: Provides bounded output and clearer binary states
• vs. RSI: Focuses on trend continuation rather than overbought/oversold
• vs. Moving Averages: Superior noise reduction through dual-filter architecture
• vs. ADX: Provides directional bias in addition to trend strength
Limitations:
• Inherent lag exists in all smoothing processes despite advanced filtering
• Performance varies significantly with gamma and order settings
• May produce conflicting signals during extended consolidation periods
• Confirms trends rather than predicting future price movements
• Should be combined with price action analysis and support/resistance levels
Best Application Scenarios:
• Markets: Trending markets with clear directional bias and moderate volatility
• Timeframes: Daily charts with default parameters; adjust for shorter timeframes
• Instruments: Stocks and futures (excellent); forex major pairs (good); cryptocurrencies (suitable with lower gamma 0.6-0.7)
• Not Recommended: Very short timeframes (<5 minutes) or extremely low-liquidity instruments
Usage Guidelines:
This indicator is designed for technical analysis and educational purposes, based on methodologies developed by John F. Ehlers. The Continuation Index helps identify trend states but should not be used as the sole basis for trading decisions. Performance varies with parameter settings, market conditions, and instrument characteristics. Past performance does not guarantee future results. Always combine with proper risk management, price action analysis, and fundamental considerations. Conduct thorough backtesting and paper trading before live implementation.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.