Indicator

Indicator

[blackcat] L1 Multi-Oscillator Trend Navigator█ OVERVIEW
The Multi-Oscillator Trend Navigator (MOTN) is a comprehensive technical analysis indicator that combines multiple oscillator signals to identify trend direction, market strength, and optimal entry/exit points. By synthesizing data from price position, stochastic calculations, CCI values across multiple timeframes, and dynamic moving averages, this indicator provides a unified view of market momentum.
█ CONCEPTS
This indicator utilizes a multi-layered oscillator approach to identify trend conditions and potential reversal points.
Key Principles
• Price Position Analysis : Measures where current price sits within a 100-bar range to gauge relative strength
• Multi-Timeframe CCI : Combines CCI values from 21, 24, 34, and 90 periods for comprehensive momentum assessment
• Dynamic Weighting : Adapts signal sensitivity based on volume activity
• Composite Signal Generation : Merges four distinct momentum signals into unified DX and ZX lines
█ HOW TO USE
1 — Add the indicator to your chart from the indicators menu
2 — Observe the DX Line (red) and ZX Line interactions for trend confirmation
3 — Watch for Buy (B) and Sell (S) labels that appear when conditions are met
4 — Monitor the status table in the top-right corner for real-time signal information
Input Parameters
• Weak Market Threshold : Determines the level below which market is considered weak (default: 1.04). Lower values make buy signals more frequent in weak conditions.
• Show Status Table : Toggle the information panel display (default: enabled)
• Show Buy/Sell Labels : Toggle the B/S signal labels on the chart (default: enabled)
• Color Theme : Customize colors for uptrend/downtrend histograms, DX line, signal labels, and reference lines
█ SIGNALS
Visual Elements
• DX Line (Red) : Primary momentum oscillator - crossing above 0 or ZX line suggests bullish momentum
• Buy Level (Yellow) : Dynamic threshold that adjusts based on market strength (-5 in weak markets, -25 in strong markets)
• Sell Level (Yellow) : Appears at 115 when sell conditions are met, otherwise at -35
• Reference Lines : Dashed lines at 0, 80, and 100 levels for orientation
Signal Labels
• B (Green) : Buy signal - appears when DX crosses above ZX or 0 while market shows weakness in recent bars
• S (Orange) : Sell signal - appears when ZX crosses above DX and ZX is above 60
• GC (Green) : Golden Cross - fast DX line crosses above its previous value
• DC (Red) : Death Cross - fast DX line crosses below its previous value
Status Table Information
• Current trend direction (Uptrend/Downtrend)
• Real-time DX and ZX values
• Market strength status (Weak/Strong) with numerical value
• Active signal indication (BUY/SELL/None)
█ LIMITATIONS
• Best suited for trending markets; may produce false signals in strongly ranging/choppy conditions
• The 100-bar lookback period requires sufficient historical data for accurate calculations
• Signal effectiveness may vary across different asset classes and timeframes
• Past performance does not guarantee future results - always use with other confirmation tools
█ NOTES
• Default settings are optimized for general market conditions - adjust Weak Market Threshold based on your trading style
• The indicator includes built-in alerts for Buy, Sell, Golden Cross, and Death Cross signals
• For best results, combine with support/resistance analysis and volume confirmation
• Works on any timeframe but recommended for 15-minute charts and above
═════════════════════════════════════════════════════════════════════════
For questions or feedback, use comments section below.
Indicator

ueuito MACD Custom PROJust another MACD with something else...
Description
MACD Custom PRO is an advanced and highly configurable momentum indicator built around the classic Moving Average Convergence Divergence (MACD) concept. The indicator extends the traditional MACD framework by integrating additional filters, visual enhancements, and signal validation tools designed to help traders better interpret market momentum, volatility conditions, and trend alignment.
The indicator calculates the MACD line using the difference between two exponential moving averages of price: a fast EMA and a slow EMA. A signal line is then derived as an exponential moving average of the MACD line. The histogram represents the difference between the MACD line and the signal line and serves as a visual representation of momentum strength and direction.
The indicator introduces several configurable components that enhance the traditional MACD approach.
MACD Core Structure
The core of the indicator is the traditional MACD calculation:
Fast EMA – default length 12
Slow EMA – default length 26
Signal EMA – default length 9
The MACD line represents the difference between the fast and slow EMA. The signal line smooths the MACD values and helps identify crossovers. The histogram represents the distance between the two lines and visually highlights momentum expansion or contraction.
Histogram Visualization Modes
The histogram can be displayed using multiple color modes that provide different interpretations of momentum.
Classic MACD Mode
In the default configuration, the histogram uses four colors to represent momentum behavior relative to the zero line:
Positive and rising momentum
Positive but falling momentum
Negative but rising momentum
Negative and falling momentum
This visualization helps traders quickly identify momentum acceleration or deceleration.
Histogram Moving Average Mode
An optional moving average of the histogram can be enabled. This moving average can be calculated using one of four selectable methods:
EMA
SMA
WMA
RMA
When enabled, the histogram moving average acts as a smoothing layer that can help identify changes in momentum structure earlier than traditional MACD signals.
The histogram moving average can also dynamically change color depending on whether the histogram is above or below the average, helping traders visualize shifts in momentum direction.
Momentum Color Mode
A momentum-based color mode is available that classifies histogram bars relative to the histogram moving average and their direction of movement.
This produces four states of momentum:
Histogram above its average and rising (strong bullish momentum)
Histogram above its average but falling (momentum weakening)
Histogram below its average but rising (potential reversal or recovery)
Histogram below its average and falling (strong bearish momentum)
This mode can help traders identify early shifts in momentum before traditional MACD crossovers occur.
ATR Volatility Filter
The indicator includes an optional volatility filter based on the Average True Range (ATR).
ATR is used to determine whether market volatility is sufficient to validate trading signals. When the filter is enabled, signals will only be considered valid when the ATR exceeds a moving average of the ATR multiplied by a configurable threshold.
This helps reduce false signals during low-volatility market conditions where MACD crossovers often become unreliable.
Zero Line Filter
An optional zero-line filter can be applied to MACD signals.
When enabled:
Bullish signals are only valid when the MACD line is above zero.
Bearish signals are only valid when the MACD line is below zero.
This filter ensures that trades are aligned with the broader momentum direction.
Trend Filter Using EMA
The indicator can optionally incorporate a trend filter based on a long-term exponential moving average of price.
When enabled:
Bullish signals are allowed only when price is above the trend EMA.
Bearish signals are allowed only when price is below the trend EMA.
This feature helps align momentum signals with the broader market trend.
MACD Line Direction Coloring
The MACD line and signal line dynamically change color depending on whether they are rising or falling. This visual feedback provides an additional layer of momentum interpretation and allows traders to see shifts in direction more easily.
MACD Cross Markers
Optional visual markers can be displayed whenever the MACD line crosses the signal line.
The shape and color of these markers can be customized, allowing traders to highlight key crossover events directly on the indicator panel.
Histogram Moving Average Cross Signals
The indicator also detects crossovers between the histogram and its moving average. These events often occur earlier than MACD line crossovers and can provide early warnings of momentum shifts.
Alert conditions are included for these events, allowing users to create automated notifications when they occur.
Trend Background Visualization
A background coloring feature can be enabled to visually represent strong trend alignment.
The background turns bullish when:
MACD is above the signal line and
The histogram is above its moving average.
The background turns bearish when:
MACD is below the signal line and
The histogram is below its moving average.
This feature helps traders visually identify sustained momentum environments.
Possible Use Cases
This indicator can be applied in multiple trading approaches.
Momentum trading
Traders can use the histogram momentum coloring to detect strengthening or weakening momentum and enter trades during early momentum expansion.
Trend-following strategies
By enabling the trend filter and zero-line filter, the indicator can be used to identify MACD signals that align with broader market direction.
Volatility-aware trading
The ATR filter can help avoid entering trades during periods of insufficient volatility, improving signal quality.
Early momentum detection
Histogram moving average crossovers can serve as an early signal that momentum is shifting before traditional MACD crossovers occur.
Multi-filter signal confirmation
By combining ATR filtering, trend filtering, and zero-line filtering, traders can significantly reduce noise and focus on higher probability setups.
Timeframe flexibility
The indicator can be applied across multiple timeframes and markets including stocks, cryptocurrencies, forex, and indices.
Risk Disclaimer
Trading financial markets involves substantial risk and may not be suitable for all investors. Indicators and technical analysis tools are designed to assist in decision-making but they do not guarantee profitable results. Market conditions can change rapidly and no indicator can predict price movements with certainty. Traders should always apply proper risk management, conduct their own analysis, and understand that past performance does not guarantee future outcomes. Indicator

Indicator

Adaptive Volatility Squeeze [UkutaLabs]█ OVERVIEW
The **Adaptive Volatility Squeeze** is an advanced volatility compression indicator designed to identify when markets are storing energy before a potential breakout.
Periods of low volatility are often followed by rapid expansions in price movement. This indicator detects those compression phases by comparing **Bollinger Band width to Keltner Channel width**, allowing traders to quickly identify when the market is tightening and preparing for a move.
Unlike traditional squeeze indicators, the Adaptive Volatility Squeeze adds several improvements:
• Squeeze Strength Detection – Not all squeezes are equal. The indicator ranks compression from mild to extreme.
• Directional Pressure Momentum – Uses EMA pressure to estimate directional bias.
• Volume Expansion Highlighting – Breakouts with strong participation are emphasized.
• Squeeze Duration Tracking – Longer squeezes often produce larger moves.
Together, these elements help traders recognize when volatility is compressing, which direction pressure is building, and when a breakout is likely to occur.
█ HOW THE INDICATOR WORKS
The indicator displays two primary components:
1. Squeeze Cross – Located along the center line of the panel, these crosses represent volatility compression.
2. Directional Pressure Histogram – Displays bullish or bearish momentum pressure.
█ SQUEEZE CROSS
The crosses indicate when the market is entering a period of volatility compression.
Cross colors represent the strength of the squeeze :
• White – Normal volatility (no squeeze)
• Orange – Mild compression forming
• Red – Strong squeeze developing
• Purple – Extreme compression
The longer a squeeze persists, the more potential energy the market may be storing.
█ DIRECTIONAL PRESSURE HISTOGRAM
The histogram measures directional pressure using a fast and slow EMA comparison.
• Green bars – Bullish directional pressure
• Red bars – Bearish directional pressure
• Bright colors – Indicate increased volume participation
This helps traders determine the likely direction of a breakout once the squeeze releases.
█ HOW TO USE THIS INDICATOR
The indicator works best when traders follow the three-phase squeeze cycle :
1. Compression Phase
Crosses stop appearing as white and begin progressing from orange to red or purple.
During this stage the market is tightening and preparing for expansion. Traders should avoid early entries and instead watch for developing directional pressure.
2. Directional Bias
Observe the histogram while the squeeze is active.
• Rising green momentum suggests bullish pressure.
• Falling red momentum suggests bearish pressure.
This phase helps determine which direction the breakout is more likely to occur.
3. Release Phase
The breakout typically occurs when the squeeze ends and volatility begins expanding.
Many traders enter when:
• The squeeze cross disappear
• Momentum accelerates in the direction of the histogram
█ EXAMPLE LONG SETUP
1. Red or purple squeeze crosses persist for several bars
2. Histogram turns green and begins rising
3. The squeeze releases
This suggests volatility expansion to the upside may be beginning.
█ EXAMPLE SHORT SETUP
1. Red or purple squeeze crosses remain active
2. Histogram turns red and begins falling
3. The squeeze releases
This suggests volatility expansion to the downside may be beginning.
█ ADDITIONAL TRADING INSIGHTS
• Longer squeezes often produce larger breakouts
• Volume-confirmed momentum strengthens signals
• The first move after compression can be very fast
Because volatility expansions can happen quickly, many traders pair this indicator with structure levels, trend filters, or risk management tools.
█ RISK MANAGEMENT
No indicator guarantees future price movement. Traders should always apply proper risk management techniques, such as:
• Using stop losses
• Trading with defined risk
• Confirming signals with additional analysis
█ SUMMARY
The Adaptive Volatility Squeeze helps traders identify moments when the market is transitioning from low volatility to high volatility .
By combining squeeze strength detection, directional pressure analysis, and volume confirmation, the indicator provides a clear framework for recognizing high-potential breakout conditions.
Indicator

Valuation Multi-Asset [Open]Description
The Valuation Multi-Asset is a highly specialized Intermarket Analysis tool designed to determine the relative valuation of your chart's asset by comparing its performance against up to 6 global benchmarks simultaneously.
By releasing this V1.4 edition as an Open-Source tool, traders and Pine Script developers can study advanced concepts such as dynamic multi-timeframe (request.security) arrays, matrix-style data normalization, and complex real-time table drawing.
Underlying Concepts & Methodology
The script operates on the principle of asset correlation and historical mean reversion.
Ratio Calculation: It computes the pure price ratio between the Chart Asset and the selected Benchmark Assets (e.g., DXY, Gold, Bonds).
Smoothing & Normalization: It applies an Exponential Moving Average (EMA) to filter noise, and then normalizes the result over a long-term historical lookback period (default is 156 weeks/3 years).
Scoring (0-100): The normalized data is ranked into a Valuation Index.
< 15 (Green): Historically Undervalued (Cheap) relative to the benchmark.
> 85 (Red): Historically Overvalued (Expensive) relative to the benchmark.
Key Features
Expanded Capacity: Monitor up to 6 simultaneous assets on a single chart to build a complete macro correlation matrix.
MTF Dashboard: A built-in HUD summarizes the Valuation bias (Cheap/Neutral/Expensive) across Daily, Weekly, and Monthly timeframes.
ETF Reference Table: Includes a handy on-chart cheat sheet of major ETFs to use as benchmarks.
How to Use
Contextual Bias: Use the MTF dashboard to get a quick read. If 5 out of 6 comparisons say your asset is "Cheap" on the Weekly timeframe, the probability of a macro mean-reversion (Long trade) increases drastically.
To comply with House Rules regarding non-English UI, here is the translation of the script's settings menu:
1. Seleção de Ativos (Asset Selection)
Usar Timeframe Personalizado = Use Custom Timeframe
Mostrar Ativo (1-6) = Show Asset (Slots 1 to 6)
Símbolo = Symbol (Ticker)
2. Tabela de Referência de ETFs (ETF Reference Table)
Mostrar Tabela Ref. = Show Reference Table
Posição / Categoria = Table Position / Filter Category
3. Parâmetros do Índice (Index Parameters)
Comprimento EMA = Smoothing EMA Length
Comprimento R do VIndex = Valuation Index Lookback Period
4. Níveis de Valuation (Valuation Levels)
Sobrevaloração / Subvaloração = Overvaluation / Undervaluation (Thresholds)
Nível Neutro = Neutral Level
5. Configurações de Tabela (Table Settings)
Tamanho do Texto = Text Size
Tema = Theme (Dark/Light)
Usar Cores Personalizadas = Use Custom Colors
6. Análise Multi-Timeframe (MTF Analysis)
Mostrar D / W / M = Show Daily / Weekly / Monthly Columns
Descrição
O Valuation Multi-Asset agora é Open-Source! Esta ferramenta de Análise Intermercado calcula a correlação relativa do seu ativo contra até 6 benchmarks globais (como Dólar, Ouro, SP500).
Ele normaliza os dados históricos e cria um placar de 0 a 100 para te dizer estatisticamente se o seu ativo está "Caro" ou "Barato" em relação ao resto do mundo.
Funcionalidades
6 Slots de Ativos: Monitore uma cesta completa de correlações.
Painel MTF: Resumo de valuation para os tempos Diário, Semanal e Mensal em uma única tabela.
Código Aberto: Estude a manipulação avançada de tabelas e request.security. Indicator

AVANTI MASTER PRO FINALAVANTI MASTER PRO FINAL – Smart Intraday Trend & Breakout System
AVANTI MASTER PRO FINAL is an advanced intraday trading indicator designed to identify high-probability buy and sell opportunities using a combination of trend analysis, momentum strength, breakout scoring, and smart money behavior.
This indicator integrates multiple technical factors such as EMA trend structure, RSI momentum, breakout strength analysis, buildup detection, ADX trend strength filter, and multi-timeframe confirmation to help traders avoid sideways markets and focus on strong trending moves.
The system automatically generates entry signals and calculates risk-reward targets for different instruments.
Key Features
Trend Detection
Uses EMA 9, EMA 30, and EMA 200 to determine the overall market trend.
Multi-Timeframe Trend Filter
Signals are confirmed only when 5-minute and 15-minute trends align, improving trade accuracy.
Breakout Strength Score
A scoring system evaluates multiple bullish and bearish conditions to determine breakout probability.
RSI Momentum Confirmation
RSI is used to validate market momentum before generating signals.
ADX Trend Strength Filter
Signals are generated only when ADX > 23, helping to avoid sideways markets.
Buildup Analysis
Detects Long Buildup, Short Buildup, Short Covering, and Long Unwinding based on price and volume behavior.
Auto Target System
Automatically calculates Entry, TP1, TP2, TP3, and Stop Loss depending on the instrument.
Supported Instruments
Targets are optimized for:
• NIFTY
• Stock Options
• Crude Oil
• Natural Gas
Dashboard Information
The built-in dashboard displays key market insights such as:
• Trend status
• RSI momentum
• Breakout / Breakdown strength
• ADX trend strength
• Market buildup
• Trade zone indication
Best Use
This indicator is designed for intraday trading and trend continuation setups where strong momentum and trend confirmation are present.
Works best in trending markets.
Developed by AVANTI STOCKS – Satish D. Nakhate Indicator

Indicator

CUSUM Trend [AlgoPoint]The CUSUM Trend by AlgoPoint brings hedge-fund-level quantitative analysis directly to your charts. While standard moving averages suffer from lag and fakeouts, this script utilizes an advanced Cumulative Sum (CUSUM) algorithm, deeply re-engineered with adaptive volatility and volume-weighted metrics to identify true market regimes.
It is designed to protect traders from choppy markets and explicitly capture high-probability, volume-backed trend breakouts before they become obvious to the retail crowd.
🧠 Under the Hood: The Quant Mechanics
Instead of a basic price deviation model, the CUSUM Trend operates on four advanced pillars:
- Zero-Lag Kernel (Ehlers SuperSmoother): We replaced traditional MAs with John Ehlers' SuperSmoother filter to establish a mathematically zero-lag baseline.
- Volume-Weighted Residuals: Price deviations (residuals) only build up the CUSUM pressure pools if they are backed by institutional volume. Low-volume spikes are treated as noise and explicitly filtered out.
- Fractal Dimension (Adaptive Thresholds): By using a proxy for the Hurst Exponent, the engine "reads" the market state. In choppy conditions, the bands expand defensively to prevent fakeouts. In trending conditions, they tighten aggressively.
- Asymmetric Volatility: The algorithm calculates upside and downside variance independently, recognizing that market drops are often much sharper than rallies.
📊 How to Read the Chart
- The Dynamic Trend Cloud: The asymmetric bands represent the institutional pressure thresholds. When price breaks and confirms outside this zone, a regime change (Bull/Bear trend) is triggered.
- Gradient Candles: Candle colors dynamically shift based on the built-up CUSUM pressure. Bright green/red indicates extreme breakout momentum, while faded colors represent a stable trend or a ranging market.
- Trailing Stop: Once a trend is established, the opposite side of the threshold acts as a dynamic trailing stop line, allowing you to ride the trend to its mathematical exhaustion.
- Hybrid Dashboard: Monitor the internal breakout pressure, fractal regime, and exact trailing stop value in real-time without cluttering your main view.
⚙️ How to Use It
- Sensitivity Profiles: Choose between Fast (Day Trade), Balanced (Swing), or Slow (Trend) in the settings. The engine automatically recalculates all internal variance and fractal thresholds based on your choice.
- Automation Ready: Fully compatible with webhook automation (3Commas, PineConnector, etc.) via dynamic JSON alerts triggering on confirmed regime breakouts.
Disclaimer: This indicator is for educational and analytical purposes only. Past performance is not indicative of future results. Indicator

HMA-Kahlman Trend & TrendlinesHMA-Kahlman Trend & Trendlines
Pine Script™ v6 | Overlay Indicator
by NPR21
Publication Description
A professional-grade trend identification and dynamic trendline indicator that combines two powerful analytical modules into a single overlay. The HMA-Kahlman Trend Module applies an optional Kalman filter to the Hull Moving Average for ultra-smooth, low-lag trend detection. The Trendlines Module auto-detects pivot highs and lows, draws connecting support/resistance trendlines, and projects dashed extension lines into the future. Together, they deliver real-time trend direction, precise BUY/SELL crossover signals, and automatically drawn structural trendlines—all from one indicator.
Built for any liquid market—futures, forex, stocks, crypto, and commodities. Works on all timeframes from 1-minute scalping charts to daily swing setups.
What Makes This Indicator Unique
Most trend indicators force you to choose between responsiveness and smoothness. This indicator eliminates that tradeoff by layering a Kalman filter on top of the Hull Moving Average—a combination rarely seen in Pine Script. The Kalman filter is an adaptive smoothing algorithm originally developed for aerospace navigation that dynamically adjusts its output based on incoming price data, removing noise without introducing the lag typical of traditional moving averages.
Key Differentiators
•Dual-engine trend detection: Standard HMA (Line A) and a triple-weighted HMA3 variant (Line B) run simultaneously. Their crossovers generate high-confidence directional signals because each line processes price through a fundamentally different weighting scheme.
•Kalman-filtered smoothing: The optional Kalman filter with adjustable gain lets you dial in exactly how much noise reduction you want—from aggressive scalping responsiveness (high gain) to smooth swing-trade clarity (low gain).
•Auto-drawn structural trendlines: The Trendlines Module detects pivot highs and lows, connects the two most recent pivots with dashed resistance/support lines, and projects extension lines forward—giving you dynamic S/R levels without any manual drawing.
•Integrated signal + structure: Unlike stacking separate indicators, the HMA length parameter drives both the trend engine and the pivot detection, creating a unified analytical framework where signals and structure are inherently synchronized.
Significant Changes from the Original ThinkScript
This indicator was originally developed as a ThinkScript study for the ThinkorSwim platform (HMA-Kahlman concept by capissimo, ported by @bvaikunth; Trendlines Module by Joris Duyck). The Pine Script v6 conversion introduces substantial enhancements beyond a straight port:
Visual & UX Upgrades
•Professional BUY/SELL signal labels: Replaced the original single-character “B”/“S” bubbles with stacked directional labels (▲/BUY, SELL/▼) anchored at bar highs and lows for instant visual recognition.
•Fully customizable signal colors: Four new color inputs (Buy background, Buy text, Sell background, Sell text) give complete control over signal appearance. The original had hardcoded white labels.
•Live price balloon captions: HMA-Kahlman A and B lines each display a real-time balloon label in the expansion area showing the current value formatted with dollar sign and comma-separated thousands (e.g., $24,674.25). The original had no price readout.
•Extension bridge lines: A one-bar extension line projects each HMA line into the future so the plotted line seamlessly connects to its balloon label pointer—a polished visual touch absent from the original.
•Z-order signal priority: BUY/SELL labels render on top of all other plot elements (cloud, trendlines, candles) using explicit_plot_zorder, ensuring signals are always visible regardless of chart density.
•Adjustable label sizing: Five size presets (Tiny through Huge) accommodate different screen sizes and visual preferences. The original offered no size control.
Technical & Structural Improvements
•Pine Script v6 native architecture: Complete rewrite using Pine’s built-in ta.pivothigh()/ta.pivotlow() functions instead of ThinkScript’s manual fold-loop pivot detection—more efficient and maintainable.
•Global-scope ta.highest/ta.lowest: Extension clipping boundary calculations moved to global scope for Pine Script consistency compliance (eliminates the “extract from this scope” warning).
•Full color customization: Resistance, support, extension, and signal colors are all user-configurable inputs. The original used hardcoded colors throughout.
•Configurable trendline extensions: Extension length (bars), upper/lower clipping boundaries (%), and visibility toggles are all exposed as inputs. The original had fixed 20-bar extensions with 5% limits and no toggles.
•Built-in alert conditions: Two alertconditions (Buy Signal, Sell Signal) enable push notifications, email, or webhook triggers on crossovers—functionality the ThinkScript version did not include.
•Organized input groups with tooltips: All inputs are grouped into logical sections (HMA-Kahlman Trend, Trendlines) with descriptive tooltips explaining each parameter. The original had flat, unlabeled inputs.
•Optimized opacity defaults: HMA lines default to 90% opacity and the trend cloud to 30% opacity, providing clear visual hierarchy without obscuring price action.
How to Use This Indicator
Adding to Your Chart
1.Open any chart on PulseWire (works on all markets and timeframes).
2.Click Indicators and search for “HMA-Kahlman Trend & Trendlines.”
3.Add to chart. The indicator overlays directly on your candlestick/bar chart.
4.Open Settings (gear icon) to customize colors, lengths, and visibility toggles.
Reading the Trend
The indicator plots two HMA-Kahlman lines (A and B) with a shaded cloud between them. When Line B is above Line A, the trend is bullish and the cloud/lines turn aqua/green. When Line A is above Line B, the trend is bearish and everything shifts to red. The balloon labels in the expansion area show the real-time price of each line for quick reference.
Trading the Signals
•▲ BUY signal: Appears below the bar when Line B crosses above Line A (bullish crossover). This indicates momentum shifting to the upside.
•SELL ▼ signal: Appears above the bar when Line A crosses above Line B (bearish crossover). This indicates momentum shifting to the downside.
•Best practice: Use BUY/SELL signals in confluence with the auto-drawn trendlines. A BUY signal near a support trendline or extension carries higher conviction than a signal in open space. Similarly, a SELL signal near resistance reinforces the short bias.
Using the Trendlines
The indicator automatically detects the two most recent pivot highs and pivot lows, connects them with dashed trendlines (resistance in red, support in green by default), and projects dotted extension lines forward. These extensions act as dynamic support/resistance targets. Watch for price reactions at extension levels—bounces confirm the trendline, breaks suggest a structural shift.
Recommended Settings by Style
Trading Style HMA Length Kalman Gain Notes
Scalping (1–5 min) 8–14 0.7–1.0 Higher gain for faster response to micro moves
Day Trading (5–30 min) 14–22 0.5–0.7 Default settings optimized for this range
Swing Trading (1H–Daily) 22–50 0.3–0.5 Lower gain smooths out intraday noise
Setting Up Alerts
Right-click the indicator on your chart and select Add Alert. Two conditions are available: HMA-Kahlman Buy Signal and HMA-Kahlman Sell Signal. Configure for push notifications, email, webhook, or any combination to stay informed of crossover events in real time.
Disclaimer
This indicator is a technical analysis tool for educational and informational purposes. It does not constitute financial advice. No indicator guarantees future results. Always use proper risk management and combine signals with your own analysis and trading plan before entering any trade.
Credits
Original HMA-Kahlman Trend concept by capissimo, ThinkScript port by @bvaikunth. Trendlines Module by Joris Duyck. Pine Script v6 conversion, enhancements, and professional visual upgrades by NPR21. Indicator

Strategy

Indicator

Indicator

Aura Trend & Candlestick Matrix [Pineify]Aura Trend & Candlestick Matrix — EMA Trend Cloud with Trend-Aligned Candlestick Pattern Detection and Dynamic Support & Resistance
The Aura Trend & Candlestick Matrix is a multi-layered technical analysis indicator that fuses an EMA-based trend cloud, classic candlestick pattern recognition, and pivot-derived support and resistance levels into a single, cohesive overlay. Its core philosophy is confluence : rather than firing candlestick signals in isolation, every pattern must first pass through a directional trend filter before it reaches the chart. A Hammer is only displayed when the trend cloud confirms bullish momentum; a Shooting Star only appears when the cloud is bearish. This trend-alignment mechanism dramatically reduces noise and false signals, giving traders a cleaner, higher-probability view of potential reversal and continuation setups — all without leaving the price chart.
Key Features
Dual-EMA "Aura Cloud" that visually maps trend direction and strength through a color-coded filled region between a fast and slow exponential moving average
Three families of candlestick pattern detection — Hammer / Shooting Star, Bullish / Bearish Engulfing, and Morning Star / Evening Star — each identified using precise shadow-to-body ratio and multi-bar structural rules
Trend-alignment filter that only surfaces bullish patterns during confirmed uptrends and bearish patterns during confirmed downtrends, eliminating counter-trend noise
Dynamic pivot-based support and resistance levels that automatically update as new structural highs and lows are confirmed
Optional candle coloring that tints every bar green or red based on the prevailing trend for instant visual context
Built-in alert conditions for both bullish and bearish setups, enabling automated notification workflows without additional configuration
How It Works
The indicator is built on three independent analytical engines that feed into a unified signal pipeline.
Engine 1: The Aura Trend Cloud
Two exponential moving averages — a fast EMA (default 20 periods) and a slow EMA (default 50 periods) — are plotted on the chart. When the fast EMA is above the slow EMA, the trend is classified as bullish; when below, bearish. The region between the two EMAs is filled with a semi-transparent color (green for bullish, red for bearish), creating the "Aura Cloud." This cloud serves two purposes: it provides an immediate visual representation of trend direction and strength (a widening cloud suggests strengthening momentum), and it acts as the gatekeeper for all candlestick pattern signals.
Engine 2: Candlestick Pattern Detection
The pattern detection engine analyzes candle anatomy using shadow-to-body ratios and multi-bar structural relationships:
Hammer & Shooting Star — Single-candle patterns identified by comparing the lower shadow proportion, upper shadow proportion, and body proportion relative to the full candle range. A Hammer requires a lower shadow at least twice the body size, a body less than 50% of the range, an upper shadow under 15%, and a bullish close. The Shooting Star applies the mirror criteria with a bearish close. Doji candles (body < 10% of range) are excluded to avoid ambiguity.
Bullish & Bearish Engulfing — Two-candle patterns where the current candle's real body completely wraps the previous candle's body. An additional 120% size threshold ensures the engulfing candle demonstrates meaningful conviction beyond a marginal overlap.
Morning Star & Evening Star — Three-candle reversal patterns. A Morning Star requires a bearish candle two bars ago, a small-bodied middle candle (less than 50% of the prior body), and a bullish current candle that closes above the midpoint of the first candle's body. The Evening Star applies the inverse logic.
Engine 3: Dynamic Support & Resistance
The indicator uses Pine Script's pivot detection functions with a configurable lookback window (default 10 bars on each side). When a bar's high is confirmed as the highest within the lookback window, it becomes the current resistance level. When a bar's low is the lowest, it becomes the current support level. These levels persist on the chart as circle markers until a new pivot replaces them, providing a continuously updated structural reference frame.
Trading Ideas and Insights
Cloud Bounce + Pattern Confirmation — When price pulls back to the Aura Cloud boundary during an uptrend and a Hammer or Bullish Engulfing pattern fires at the cloud's edge, this represents a high-confluence long entry. The cloud acts as dynamic support, and the candlestick pattern provides the timing trigger.
Trend Reversal Detection — Watch for Morning Star or Evening Star patterns forming near pivot-based support or resistance levels just as the trend cloud begins to narrow. A narrowing cloud suggests weakening momentum, and a three-candle reversal pattern at a key structural level can signal an early trend change.
S/R Level Validation — Use the dynamic support and resistance levels to validate candlestick signals. A Bullish Engulfing pattern that forms precisely at the current support level carries more weight than one occurring at a random price point.
Trend Strength Assessment — The width of the Aura Cloud reflects the separation between the fast and slow EMAs. A wide, expanding cloud indicates strong trending conditions where trend-aligned patterns are most reliable. A narrow, contracting cloud suggests consolidation where signals should be treated with more caution.
Multi-Timeframe Confluence — Apply the indicator on a higher timeframe to establish the dominant trend direction, then switch to a lower timeframe to find trend-aligned candlestick entries. The cloud's direction on the higher timeframe provides the bias; the pattern signals on the lower timeframe provide the entry timing.
How Multiple Indicators Work Together
The Aura Trend & Candlestick Matrix integrates three distinct analytical techniques into a single decision-support system through a deliberate hierarchical architecture:
The EMA trend cloud establishes directional context, the candlestick pattern engine identifies potential reversal and continuation setups, and the pivot-based support and resistance levels provide structural price references — together forming a confluence-driven framework where signals must pass through multiple filters before reaching the chart.
The trend cloud sits at the top of the hierarchy as the primary directional filter. It answers the fundamental question: "Which side of the market should I be on right now?" By requiring all candlestick patterns to align with the cloud's direction, the indicator enforces a disciplined approach that avoids the common trap of trading counter-trend reversal patterns in strong trends.
The candlestick pattern engine operates as the timing mechanism within the trend context. Each pattern family captures a different market dynamic — Hammers and Shooting Stars detect single-bar rejection of price levels, Engulfing patterns identify momentum shifts through body-size dominance, and Morning/Evening Stars capture multi-bar sentiment transitions. By offering all three families simultaneously, the indicator provides multiple entry opportunities across different market conditions while maintaining the trend-alignment requirement.
The dynamic support and resistance engine adds a structural dimension that complements both the trend cloud and the pattern signals. While the cloud tells you the trend direction and the patterns tell you when to act, the S/R levels tell you where price is likely to react. Patterns forming at or near these pivot-derived levels carry inherently higher significance because they occur at prices where the market has previously demonstrated supply or demand.
Unique Aspects
Trend-gated pattern signals — Unlike standalone candlestick scanners that display every detected pattern regardless of context, this indicator enforces directional alignment. Bullish patterns are suppressed during downtrends and bearish patterns are suppressed during uptrends, producing a significantly cleaner signal set with higher expected reliability.
Ratio-based pattern detection with doji exclusion — Pattern identification uses proportional shadow-to-body ratios rather than fixed pip or point thresholds, making the detection logic adaptive across instruments and timeframes. The explicit doji exclusion prevents ambiguous candles from triggering false Hammer or Shooting Star signals.
120% engulfing threshold — The Engulfing pattern requires the current body to exceed the previous body by at least 20%, filtering out marginal engulfing candles that lack conviction and improving signal quality.
Three-engine confluence in a single overlay — By combining trend analysis, pattern recognition, and support/resistance detection in one indicator, traders avoid the visual clutter and potential conflicts of layering multiple separate tools on the same chart.
Distinct visual vocabulary — Each pattern family uses a unique shape (triangles for Engulfing, labeled markers for Hammers/Stars), allowing traders to instantly identify the pattern type without reading text labels.
How to Use
Add the Aura Trend & Candlestick Matrix to your chart. It overlays directly on the price chart, displaying the Aura Cloud, pattern signals, and S/R levels simultaneously.
Identify the current trend by observing the Aura Cloud color — a green cloud indicates a bullish trend (fast EMA above slow EMA), and a red cloud indicates a bearish trend. The cloud's width reflects trend strength.
Watch for candlestick pattern signals that appear on the chart. Green triangles (▲) below bars indicate Bullish Engulfing patterns; red triangles (▼) above bars indicate Bearish Engulfing. Labels marked "H", "S", "MS", and "ES" denote Hammer, Shooting Star, Morning Star, and Evening Star patterns respectively.
Cross-reference pattern signals with the dynamic S/R levels (green and red circle markers). Patterns occurring near support (for bullish) or resistance (for bearish) carry additional structural significance.
Use the candle coloring feature (enabled by default) for quick visual scanning — green candles confirm you are in a bullish trend zone, red candles confirm a bearish trend zone.
Set up alerts using the built-in "Bullish Setup" and "Bearish Setup" alert conditions to receive real-time notifications when a trend-aligned candlestick pattern is detected.
Combine with volume analysis or momentum oscillators for additional confirmation layers when entering trades based on the indicator's signals.
Customization
Fast EMA Length (default: 20) — Controls the responsiveness of the fast trend line. Lower values (10-15) make the cloud more reactive to recent price changes, suitable for shorter-term trading. Higher values (25-50) produce a smoother cloud for swing or position trading.
Slow EMA Length (default: 50) — Sets the anchor for the trend cloud. Common alternatives include 100 or 200 for longer-term trend identification. The gap between fast and slow lengths determines how quickly the cloud changes direction.
Color Candles Based on Trend (default: on) — Toggle candle coloring on or off. Disable if you prefer to use your chart's native candle colors or another coloring scheme.
Show Hammers / Shooting Stars (default: on) — Enable or disable single-candle reversal pattern detection. Disable if you prefer to focus only on multi-candle patterns.
Show Engulfing Patterns (default: on) — Enable or disable two-candle engulfing pattern detection.
Show Morning / Evening Stars (default: on) — Enable or disable three-candle star pattern detection.
Pivot Detection Length (default: 10) — Controls the lookback window for support and resistance detection. Lower values (3-7) detect more frequent, minor pivot levels; higher values (15-30) identify only major structural turning points.
Conclusion
The Aura Trend & Candlestick Matrix delivers a disciplined, confluence-based approach to technical analysis by requiring candlestick patterns to align with the prevailing EMA trend direction before they are displayed. By integrating a visual trend cloud, three families of rigorously defined candlestick patterns, and dynamic pivot-based support and resistance levels into a single overlay, this indicator provides traders with a comprehensive yet uncluttered analytical framework. Whether you are a day trader looking for precise trend-aligned reversal entries, a swing trader seeking high-probability pattern setups at key structural levels, or a position trader monitoring broad trend direction with candlestick confirmation, the Aura Trend & Candlestick Matrix offers a clean, systematic, and visually intuitive toolset for identifying where trend momentum and candlestick structure converge — the moments where trading opportunities are most compelling.
Indicator

Indicator

Momentum Lifecycle Detector [BullByte]Momentum Lifecycle Detector
An early trend detection oscillator that tracks momentum through five lifecycle phases - from birth to death - using DI spread acceleration analysis . Designed to identify momentum ignition before traditional ADX signals, and warn of trend exhaustion before it becomes obvious.
WHAT THIS INDICATOR DOES
The Momentum Lifecycle Detector (MLD) is a momentum oscillator with integrated trend phase classification. It answers the question every trend trader needs answered: "Where in its life is this momentum right now?"
Most trend strength indicators tell you a trend exists after the move is already underway. ADX crossing above 25 is a lagging confirmation. MLD solves this by detecting the birth of momentum at the earliest mathematically identifiable point, then tracking that momentum through five distinct lifecycle phases until it dies.
The indicator displays:
An ATR-normalized momentum oscillator (the main line you follow)
A signal line for crossover analysis
A histogram showing momentum-signal divergence
A colored lifecycle band showing the current phase
Consolidation zone boxes marking coiled energy before breakouts
A reversal atmosphere glow when momentum curvature suggests reversal
A dashboard summarizing momentum conditions at a glance
Adaptive dead zone and choppy market warnings
THE PROBLEM THIS SOLVES - WHY TRADERS NEED EARLY TREND DETECTION
Traditional ADX tells you a trend is strong when it crosses above 25. By that point, the optimal entry window has often closed. Conversely, ADX gives no clear warning when a trend is dying - it just slowly rolls over after the move has already reversed.
The core innovation in MLD is measuring the acceleration of the gap between +DI and -DI. Here is the mathematical logic:
Spread = |+DI minus -DI| - How far apart are bullish and bearish pressure?
Velocity = Spread minus Spread - Is that gap widening or narrowing?
Acceleration = Velocity minus Velocity - Is the widening itself speeding up?
When acceleration is positive and velocity is positive while ADX is still low, a new trend is actively forming. This is the mathematical fingerprint of momentum at birth - detectable bars before ADX would give any signal.
WHY THESE SPECIFIC COMPONENTS - JUSTIFICATION FOR THE INTEGRATION
This indicator combines several analytical methods into a unified lifecycle detection framework. Each component serves a specific, non-redundant purpose. Here is why each exists:
Zero-Lag EMA Momentum Oscillator
Purpose : The primary visual output traders watch and trade.
Method : Difference between fast ZLEMA (default 9) and slow ZLEMA (default 21), divided by ATR, multiplied by 100.
Why ZLEMA : Standard EMA lags behind price. ZLEMA compensates by adding the difference between the current price and its lagged value before smoothing. This produces earlier momentum readings without adding noise.
Why ATR normalization: Raw price differences are not comparable across instruments. A 5-point move means something different on a $10 stock versus Bitcoin. Dividing by ATR makes oscillator readings universal - a reading of +50 represents the same relative momentum strength on any chart, any timeframe.
Gaussian-Weighted Directional Indicators
Purpose : Feed responsive directional data into the lifecycle detection engine.
Method : Instead of standard Wilder smoothing for +DI and -DI, a Gaussian (bell-curve) decay function applies exponentially more weight to recent bars. The formula is exp(-(n/len)^2).
Why Gaussian weighting : Standard DI treats all bars in the lookback equally. A directional move from 14 bars ago counts the same as one happening now. Gaussian decay makes DI inherently more responsive to fresh moves without shortening the period (which would increase noise).
ZLEMA-Smoothed ADX
Purpose : Trend strength measurement for phase classification.
Method : DX calculated from Gaussian-weighted DI values, smoothed with ZLEMA instead of traditional Wilder smoothing.
Why ZLEMA-smoothed: Standard Wilder-smoothed ADX is deliberately sluggish by design. For lifecycle detection, we need ADX that responds faster to "waking up" and "rolling over" behaviors that define phase transitions.
DI Spread Acceleration Engine
Purpose : The core innovation - detects momentum birth before ADX confirms.
Method : Calculates the absolute spread between +DI and -DI, derives its velocity (first derivative) and acceleration (second derivative), smooths both with 3-period EMA.
Why this matters: This is what differentiates MLD from existing ADX-based tools. Acceleration of the DI spread is a leading indicator. By the time ADX crosses a threshold, spread acceleration has already been positive for multiple bars. This enables IGNITION detection before traditional signals fire.
Kaufman Efficiency Ratio
Purpose : Regime filter that warns when conditions are choppy.
Method : ER = net price movement divided by total price movement. Values near 1.0 mean efficient directional movement. Values near 0.0 mean price went back and forth without progress.
Why included: Momentum oscillators generate false signals in ranging markets. When ER is low, ADX is weak, and momentum sits inside the dead zone, the background turns gray - warning traders that conditions do not support directional strategies.
Momentum Curvature Analysis
Purpose : Early warning of potential reversals via oscillator curvature.
Method : Second derivative of momentum (how the slope is changing). When momentum is negative but curving upward (positive curvature with positive slope), bullish pressure is building from underneath before the trend visibly reverses. Strength is normalized against 30-bar standard deviation of curvature.
Important : This is purely mathematical curvature of the plotted oscillator. It does not use order flow, volume profile, bid/ask data, or any external source. The term "atmosphere" is a visual metaphor for the glow effect.
These components form an integrated pipeline - they are not independent indicators placed on the same pane. The oscillator provides visual momentum reading, Gaussian DI and ZLEMA ADX feed the lifecycle engine, spread acceleration detects phase transitions, ER provides regime context, and curvature adds reversal awareness. Each output feeds downstream components.
THE FIVE LIFECYCLE PHASES - DETECTION LOGIC EXPLAINED
The lifecycle band at the bottom displays one of five phases. Each has specific mathematical conditions that must all be true simultaneously. A state machine with configurable inertia prevents rapid flickering.
IGNITION - Cyan Band
Conditions : DI crossover within last N bars (default 4), spread acceleration above threshold (default 0.2), spread velocity above threshold (default 0.3), ADX rising for two consecutive bars.
Meaning : Momentum is being born. DI lines just crossed, the gap is accelerating open, ADX is waking. This is the earliest actionable signal. ADX may still be below 20.
State machine : IGNITION transitions instantly (1-bar inertia) because early detection speed matters.
THRUST - Green or Red Band (direction-coded)
Conditions : Past ignition window but within 3x that window, spread velocity above threshold (default 0.5), ADX surged more than threshold (default 1.5) over 3 bars.
Meaning : Young trend gaining real power. Spread velocity is high, ADX is confirming with a surge. The trend is no longer hypothesis - it is building strength.
State machine : THRUST transitions instantly.
PRIME - Deeper Green or Red Band (direction-coded)
Conditions : ADX above strong threshold (default 20), ADX either rising or above its signal line, DI spread above minimum (default 10).
Meaning : Mature, established trend. Maximum directional strength. Most productive phase - but also where exhaustion can begin. Use trailing stops.
State machine : Requires configured inertia (default 2 bars) before transition.
FADING - Orange Band
Conditions : ADX above strong threshold BUT falling AND below its signal line, OR ADX strong but spread velocity sharply negative (below -0.5).
Meaning : Trend is dying. ADX rolling over, DI gap closing. Time to tighten stops, take partials, prepare for next cycle.
State machine: Requires configured inertia before transition.
DEAD - Dark Gray Band
Conditions : None of the above active.
Meaning : No meaningful directional momentum. Market ranging, consolidating, or in transition. Directional strategies unlikely to perform well.
HOW TO READ THE OSCILLATOR PLOT
Momentum Line (thick, color-coded)
Bright green : Momentum positive and rising (bullish, strengthening)
Faded green : Momentum positive but falling (bullish, weakening)
Bright red: Momentum negative and falling (bearish, strengthening)
Faded red : Momentum negative but rising (bearish, weakening)
Gray : Momentum inside dead zone (noise, not signal)
Signal Line (thin orange)
EMA of momentum. Crossovers between momentum and signal highlight directional shifts, similar to MACD signal line usage.
Momentum-Signal Fill (shaded area between the two lines)
Teal shading: Momentum above signal (bullish bias)
Maroon shading: Momentum below signal (bearish bias)
This fill provides instant visual recognition of which line is dominant.
Histogram (vertical columns at zero line)
Shows the gap between momentum and signal.
Bright columns: Gap expanding (momentum pulling away, trend strengthening)
Faded columns: Gap contracting (momentum converging, trend weakening)
Green: Momentum above signal. Red: Momentum below signal.
Dead Zone (gray horizontal band around zero)
Dynamically calculated as a multiple (default 0.5x) of momentum's 50-bar standard deviation.
When momentum is inside this zone, directional signals are unreliable - the reading is within normal noise range.
Zero Line (dotted horizontal)
Momentum above zero: Net bullish pressure
Momentum below zero: Net bearish pressure
Zero line crosses represent directional bias shifts.
CONSOLIDATION ZONES - COILED ENERGY BEFORE BREAKOUTS
Yellow boxes appear on the oscillator when momentum energy is coiling - a potential precursor to a strong directional move.
Detection Logic
Two conditions must be simultaneously true:
Histogram (momentum-signal gap) is unusually tight relative to its recent 50-bar standard deviation.
Momentum slope is unusually flat relative to its recent 50-bar standard deviation.
Both thresholds are adaptive - they automatically adjust to each instrument's typical behavior. This means the indicator detects relative consolidation, not absolute levels, making it equally effective on volatile crypto and stable bonds.
Zone Lifecycle
New zone starts as dotted-border, light yellow box.
If it persists for minimum bar count (default 5), it upgrades to solid-border, brighter yellow - a validated zone.
If momentum drifts too far from where zone started (exceeds drift tolerance relative to zone height), the zone is invalidated and deleted. This prevents slow trends from being falsely labeled as consolidation.
When zone breaks (convergence conditions end), box color changes based on breakout direction: teal for bullish breakout, maroon for bearish breakout.
Only one active zone exists at a time to keep the chart clean.
How to Trade It
Validated consolidation zones (solid border) represent coiled momentum. Breakouts from these zones, especially when accompanied by IGNITION or THRUST phase, often produce strong directional moves. The breakout color immediately tells you the direction.
REVERSAL ATMOSPHERE - CURVATURE-BASED REVERSAL WARNING
A soft colored glow appears around the momentum line when mathematical curvature suggests a reversal is forming.
How It Works
The indicator calculates the second derivative of momentum (curvature - how the slope itself is changing).
Bullish reversal detection: Momentum is below zero (bearish), but slope has turned positive (rising), and curvature is positive (the rise is accelerating). This is the mathematical signature of a bottom forming - momentum is still negative but fighting back.
Bearish reversal detection: Mirror image. Momentum is above zero, but slope is negative and curvature is negative. A top is forming.
Visual Output
Green glow: Bullish reversal pressure building
Red glow: Bearish reversal pressure building
Glow intensity increases with curvature strength, normalized against 30-bar standard deviation
Glow width is configurable (default 8 units)
Important Clarification
This is purely mathematical analysis of the oscillator's own curvature. It does not incorporate order flow data, market depth, bid/ask spreads, or any external data source. The term "atmosphere" is a visual metaphor describing the glow effect, not a claim about market microstructure.
CHOPPY MARKET BACKGROUND - REGIME WARNING
When three conditions are all simultaneously true, the pane background turns gray:
Efficiency Ratio below choppy threshold (default 0.30)
ADX below choppy threshold (default 18)
Momentum inside dead zone
This gray background is a visual warning: "Market conditions are choppy. Momentum signals here are statistically less reliable. Consider waiting for cleaner conditions."
DASHBOARD - THE MOMENTUM WEATHER REPORT
A compact panel (position and size configurable) displaying five key readings:
PHASE
Current lifecycle phase name in corresponding color. Instantly shows where momentum is in its lifecycle.
BIRTH
DI spread acceleration status - is new momentum being created?
ACCELERATING (cyan) : Strong positive acceleration, momentum actively being born
BUILDING (green) : Moderate positive acceleration
QUIET (gray): No significant acceleration
DECELERATING (red): Negative acceleration, momentum creation slowing or reversing
FLOW
Directional bias with magnitude.
BULL : Bullish DI dominance. Number is DI spread (gap between +DI and -DI)
BEAR : Bearish DI dominance
FLAT : Momentum in dead zone, no meaningful directional bias
WEATHER
Overall assessment combining phase and vitality.
FAVORABLE (green): Active phase (IGNITION/THRUST/PRIME) with momentum outside dead zone. Conditions support directional trading.
CAUTION (orange): FADING phase, or PRIME with negative spread velocity. Trend may be exhausting.
UNFAVORABLE (red): DEAD phase or momentum in dead zone. Avoid directional strategies.
PRESSURE
Reversal pressure from curvature analysis.
BULLISH REV (green): Strong bullish reversal curvature
BEARISH REV (red): Strong bearish reversal curvature
BUILDING (cyan): Moderate reversal curvature forming
NONE (gray): No significant reversal pressure
COMPLETE SETTINGS REFERENCE
Core Momentum Oscillator
Fast ZLEMA Length (default 9): Fast moving average responsiveness. Lower = faster, noisier.
Slow ZLEMA Length (default 21): Baseline moving average. Gap between fast and slow produces momentum.
Signal Line Length (default 5): Smoothing period for signal line.
Momentum Smoothing (default 3): Additional noise reduction on raw momentum.
ATR Period (default 14): Normalization period for cross-instrument comparability.
Consolidation Zones
Show Consolidation Zones (default true): Toggle zone detection.
Histogram Sensitivity (default 1.0): How tight momentum-signal gap must be. Lower = stricter.
Slope Sensitivity (default 1.0): How flat momentum must be. Lower = stricter.
Minimum Bars (default 5): Shortest valid consolidation duration.
Drift Tolerance (default 0.4): Maximum directional drift before zone invalidation.
Regime Detection
Efficiency Ratio Period (default 10): Lookback for price efficiency calculation.
ER Smoothing (default 5): Smoothing to prevent rapid regime flipping.
Trend Threshold (default 0.4): ER above this = trending market.
Dead Zone Multiplier (default 0.5): Standard deviations defining the noise band.
Choppy ER Threshold (default 0.30): ER below this contributes to choppy warning.
Choppy ADX Threshold (default 18): ADX below this contributes to choppy warning.
Momentum Lifecycle
Show Lifecycle Band (default true): Toggle the colored phase band.
DI Calculation Length (default 14): Period for Gaussian-weighted +DI/-DI.
ADX Smoothing (default 14): ZLEMA smoothing on DX.
ADX Signal Length (default 5): EMA of ADX for crossover detection.
Ignition Window (default 4): Bars after DI cross qualifying for IGNITION.
State Inertia (default 2): Bars a phase must persist before official transition.
Ignition Accel Threshold (default 0.2): Minimum spread acceleration for IGNITION.
Ignition Velocity Threshold (default 0.3): Minimum spread velocity for IGNITION.
Thrust Velocity Threshold (default 0.5): Minimum spread velocity for THRUST.
ADX Surge Threshold (default 1.5): Minimum ADX rise over 3 bars for THRUST.
ADX Strong Threshold (default 20): ADX above this = strong trend (PRIME/FADING).
DI Spread Minimum (default 10): Minimum DI gap for PRIME confirmation.
Reversal Atmosphere
Show Reversal Atmosphere (default true): Toggle the curvature glow effect.
Glow Width (default 8): Visual width of atmospheric glow. Cosmetic only.
Display
Show Histogram (default true): Toggle momentum-signal histogram.
Show Momentum-Signal Fill (default true): Toggle shaded area between lines.
Show Choppy Background (default true): Toggle gray background warning.
Dashboard
Show Dashboard (default true): Toggle the weather report panel.
Dashboard Position (default Top Right): Panel location on chart.
Dashboard Size (default Small): Text size in panel.
Alerts
Alert on Ignition (default true): Notify when entering IGNITION phase.
Alert on Fading (default true): Notify when entering FADING phase.
Confirm on Bar Close (default true): Wait for bar close before firing alerts. Prevents false signals from intra-bar noise.
ALERTS
Two alert conditions target the most actionable lifecycle transitions:
IGNITION Onset
Fires when lifecycle enters IGNITION phase. Alert message includes directional bias (Bullish/Bearish), current ADX value, and how many bars since DI cross.
FADING Onset
Fires when lifecycle enters FADING phase. Alert message includes ADX value and current spread velocity.
Bar Close Confirmation
When enabled (default), alerts only fire after the bar closes. This prevents false alerts triggered by intra-bar price spikes that later reverse. Recommended to keep enabled for reliable signals.
RECOMMENDED TIMEFRAMES AND INSTRUMENTS
MLD works across all timeframes and instruments due to ATR normalization.
Default settings optimized for: Daily and 4-hour charts.
For lower timeframes (15m, 5m): Consider increasing Momentum Smoothing to 5 and State Inertia to 3 to filter noise.
For weekly charts: Default settings work without adjustment.
For highly volatile instruments (crypto, small caps): The adaptive thresholds automatically adjust. No manual tuning typically required.
For low-volatility instruments (bonds, some forex pairs): Consider reducing Dead Zone Multiplier to 0.3 for more sensitivity.
PRACTICAL EXAMPLE - MOMENTUM LIFECYCLE IN ACTION
Consider a stock range-bound for weeks. ADX reads 12. Traditional trend tools show nothing actionable.
Then +DI crosses above -DI. ADX is still 12. No traditional signal. But MLD detects that the DI spread is accelerating - the gap is not just opening, it is opening faster each bar. ADX has risen for two consecutive bars (waking up). The lifecycle band turns cyan: IGNITION. The dashboard shows BIRTH: ACCELERATING, WEATHER: FAVORABLE.
Over the next few bars, spread velocity increases. ADX surges upward. The band turns green: THRUST. The trend is confirmed and building.
ADX crosses above 20, continues rising, spread stays wide. Band turns deeper green: PRIME. This is the productive phase.
Eventually ADX peaks, starts falling, drops below its signal line. Spread velocity turns negative. Band turns orange: FADING. Dashboard shows WEATHER: CAUTION. Time to trail stops tightly.
ADX falls back below 20, momentum enters dead zone. Band turns gray: DEAD. The lifecycle is complete.
The value: MLD flagged IGNITION several bars before ADX would have signaled anything. It flagged FADING while ADX was still technically strong but deteriorating. This is the early detection advantage.
Chart Example 1:
BTC/USDT 5-minute is showing a classic FADING lifecycle : a bullish thrust peaked around 13:00–14:00, entered a validated consolidation zone, and is now visibly breaking down. The momentum line is curving sharply downward inside the yellow box, the band is orange (FADING), and FLOW has flipped to BEAR 17.9 : confirming the consolidation resolved bearishly, not bullishly. The earlier cyan IGNITION flash (~14:30) failed to sustain, overwhelmed by the dominant fading structure. The dashboard reads WEATHER: CAUTION, PRESSURE: NONE : no reversal energy building yet.
Chart Example 2:
BTC/USDT 15-minute is in DEAD phase with WEATHER: UNFAVORABLE : no tradeable momentum present. The dashboard tells the complete story: FLOW is FLAT meaning neither bulls nor bears have directional control, and PRESSURE is NONE meaning no reversal energy is building beneath the surface either. Despite BIRTH showing ACCELERATING, without flow direction or reversal pressure to back it up, the acceleration has no confirmed destination yet. Stand aside and wait for the lifecycle band to shift out of DEAD before committing.
WHAT MAKES THIS INDICATOR ORIGINAL
The originality lies in three specific innovations not present in standard ADX/DI implementations or common momentum oscillators:
DI Spread Acceleration Analysis
Standard tools measure the DI spread itself or track ADX thresholds. MLD applies derivative analysis - velocity and acceleration - to the spread, transforming a traditionally lagging measurement into a leading indicator of trend formation.
Gaussian-Weighted DI Calculation
Standard DI uses Wilder smoothing with equal weight to all bars. Gaussian decay weighting makes DI inherently more responsive to recent directional moves without the noise penalty of shorter periods.
Five-Phase Lifecycle Classification with Inertia-Gated State Machine
Rather than binary trend/no-trend output, MLD maps momentum onto a lifecycle model with distinct phases and specific mathematical criteria. The state machine prevents flickering while allowing speed-critical states (IGNITION, THRUST) to transition immediately.
These are integrated innovations, not independent indicators on the same pane. Each feeds into the lifecycle engine or provides context for its output.
DISCLAIMER
This indicator performs mathematical calculations on price data (open, high, low, close) only. It does not use order flow data, volume profile, market depth, bid/ask information, institutional positioning data, or any external data source.
Terms like "momentum birth," "reversal atmosphere," "weather," and " lifecycle " are descriptive metaphors for mathematical concepts (derivatives, curvature, efficiency ratios, state classification). They are not claims about market microstructure or participant behavior.
No indicator predicts future price movement. MLD identifies mathematical conditions historically associated with specific momentum behaviors. These conditions may or may not produce expected outcomes in any given instance.
This tool supplements - it does not replace - a complete trading plan including risk management, position sizing, and multiple forms of analysis. Always use proper risk management. Past indicator behavior does not guarantee future results. Indicator

Double Commodity Channel Index - DCCI | TR🎯 Overview
Double Commodity Channel Index - DCCI | TR is an advanced oscillator developed by Tiagorocha1989 that enhances the classic Commodity Channel Index (CCI) by applying the CCI formula twice. This “double CCI” approach amplifies trend signals, reduces lag, and helps traders identify acceleration, deceleration, and potential turning points earlier than traditional CCI. With dual‑mode operation (zero‑line or moving‑average crossovers), an extensive selection of moving average types, and comprehensive visual customization, DCCI provides a powerful tool for momentum and reversal analysis.
🔧 How It Works
The standard CCI measures the current price level relative to an average price over a given period, normalized by the mean deviation. Double CCI applies this same logic to the CCI values themselves, creating a “momentum of momentum” effect that highlights changes in the underlying CCI’s behaviour.
Core Calculation Logic:
First CCI:
CCI = (Typical Price - SMA of Typical Price) / (0.015 × Mean Deviation)
where the period is user‑defined Length DCCI and the source is Source DCCI.
Double CCI (DCCI):
DCCI = 2 × CCI - ta.cci(CCI, Length_DCCI)
i.e., the current CCI minus the CCI of CCI (applied to the CCI series) and then doubled, effectively smoothing and amplifying changes in CCI.
Reference Line (Entry_DCCI):
The indicator compares DCCI to a reference line that can be either:
Zero Line (classic mode) – signals occur when DCCI crosses above or below zero.
DCCI MA (enhanced mode) – the reference line becomes a moving average of DCCI itself, providing smoother, filtered signals.
The moving average type and length are fully customizable, with support for 12 different MA variants (see Key Features).
The resulting oscillator oscillates around the chosen reference line:
DCCI above reference → upward acceleration in CCI (bullish momentum)
DCCI below reference → downward acceleration in CCI (bearish momentum)
Magnitude indicates the strength of the acceleration. Values above/below the traditional ±100 or ±200 levels often signal strong momentum, but DCCI is unbounded.
✨ Key Features
🔹 Dual Operating Modes
Zero Line Mode: Classic signals when DCCI crosses above or below zero – simple and intuitive.
DCCI MA Mode: Smoother signals when DCCI crosses its own moving average – reduces whipsaws in choppy markets.
🔹 Extensive Moving Average Selection
Choose from 12 MA types for the DCCI MA line, each with its own characteristics:
EMA, SMA, RMA, WMA, VWMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, T3.
The T3 MA includes an adjustable T3 Factor for fine‑tuning smoothness.
🔹 Customizable CCI Parameters
Length DCCI: Lookback period for both CCI calculations (default 55).
Source DCCI: Price source for the first CCI (default Close).
(The typical price used in CCI is internally derived from high, low, close.)
🔹 Extended Range Visualization
Gradient fills are drawn between DCCI and the reference line, with fixed bounds at +300 and -300. These zones help visualise extreme readings, referencing classic CCI overbought/oversold levels while accommodating DCCI’s unbounded nature.
🔹 Customizable Color Themes
Eight distinct color schemes to match your chart aesthetics:
Classic, Modern, Robust, Accented, Monochrome, Moderate, Aqua, Cosmic
Each theme defines separate colors for bullish and bearish states.
🔹 Comprehensive Visual Feedback
Colored DCCI Line: Changes colour based on its position relative to the reference line.
Signal Line: Yellow line representing the zero or MA reference.
Gradient Fill Zones: Semi‑transparent fills showing extreme momentum areas (overbought/oversold zones).
Dynamic Zone Fills: Additional fill between DCCI and the reference line, coloured by the prevailing bias.
Color‑Coded Candles: Bars reflect the current DCCI bias (above or below reference).
Signal Markers: Triangle up/down symbols at crossover points.
Live Value Display: Current DCCI value shown in a floating label near the last bar.
Trend Table: Bullish/Bearish status displayed in a table on the chart.
🔹 Ready‑to‑Use Alerts
Built‑in alert conditions trigger LONG when the DCCI is above the reference line (bullish bias) and SHORT when below the reference line (bearish bias), for both operating modes.
⚙️ Settings Summary
Setting Description Default
Color Choice Select from eight visual themes Classic
Length DCCI Lookback period for both CCI calculations 55
Source DCCI Price source for the first CCI Close
Entry/Exit Signal Choose between zero‑line or DCCI MA mode 0
Length MA Moving average period for DCCI MA mode 365
Moving Average Type of moving average for the signal line (12 options) EMA
T3 Factor Factor for T3 moving average (0–1) 0.7
📈 Practical Applications
🔹 Trend Acceleration Detection
The slope and position of DCCI relative to the reference line quickly reveal whether CCI momentum is accelerating or decelerating. Steeply rising DCCI indicates bullish acceleration; steeply falling DCCI signals bearish acceleration.
🔹 Zero‑Line Crossovers
In Zero Line mode, crossovers provide clear signals:
Crossover above zero → bullish acceleration, potential trend reversal up.
Crossunder below zero → bearish acceleration, potential trend reversal down.
🔹 Signal‑Line Crossovers
In DCCI MA mode, crossovers between DCCI and its moving average generate filtered signals:
DCCI crosses above its MA → bullish signal.
DCCI crosses below its MA → bearish signal.
These signals work well in trending markets by reducing false entries.
🔹 Overbought / Oversold Conditions
Although DCCI is unbounded, traditional CCI levels (e.g., +100, -100, +200, -200) can be referenced. Extreme DCCI readings (above +300 or below -300) often coincide with strong momentum and may precede reversals or pullbacks.
🔹 Divergence Trading
Double CCI is excellent for spotting divergences:
Bullish Divergence: Price makes a lower low while DCCI forms a higher low → possible upside reversal.
Bearish Divergence: Price makes a higher high while DCCI forms a lower high → possible downside reversal.
Divergences are most reliable after extended trends or when DCCI is at extreme levels.
🔹 Momentum Confirmation
The magnitude of DCCI confirms trend strength:
Large positive values → strong bullish acceleration.
Large negative values → strong bearish acceleration.
Values nearing the reference line → momentum slowing, potential trend change.
🔹 Centerline Rejections
When DCCI approaches the reference line (zero or MA) but reverses before crossing, it can signal trend continuation – a common pattern in strong trends.
🔹 Multiple Timeframe Analysis
Compare DCCI readings across timeframes: higher‑timeframe DCCI defines the primary trend, while lower‑timeframe DCCI helps pinpoint entry and exit timing.
🎯 Ideal For
✅ CCI Enthusiasts looking for a more responsive, smoothed version of the classic indicator.
✅ Trend Traders seeking confirmation of trend strength and direction.
✅ Momentum Traders wanting an early view of acceleration and deceleration.
✅ Divergence Traders looking for leading reversal signals.
✅ Swing Traders capturing medium‑term momentum shifts.
✅ System Developers needing a robust, customisable crossover‑based strategy.
✅ Beginner Traders who appreciate clear visual signals and multiple learning modes.
📌 Key Takeaways
Double CCI Logic: Applying the CCI formula twice amplifies trend signals and reduces lag compared to standard CCI.
Dual‑Mode Flexibility: Choose zero‑line simplicity for clear entries or MA‑smoothed signals for filtered trades.
Unbounded Nature: DCCI has no fixed upper/lower limits, making it suitable for strongly trending instruments; traditional levels (e.g., ±100, ±200, ±300) serve as useful reference zones.
Extensive MA Options: 12 moving average types give you complete control over the smoothness and responsiveness of the signal line.
Rich Visuals: Colour themes, gradient fills for extreme zones, candle colouring, and live value labels provide immediate market context.
Divergence Capability: The double calculation often reveals divergences earlier than simple CCI.
Alert‑Ready: Pre‑built alerts for both LONG and SHORT signals based on bias.
⚠️ Important Notes
Because DCCI is unbounded, its scale can vary significantly between instruments and timeframes. The gradient fills at ±300 are arbitrary reference points derived from classic CCI overbought/oversold levels; they may not represent actual extreme conditions for all instruments.
The default Length DCCI of 55 offers a medium‑term perspective. Shorter lengths (e.g., 20) produce more responsive signals, while longer lengths (e.g., 100) are better for identifying major trends.
The default Length MA of 365 in DCCI MA mode is designed for a long‑term context on daily charts; adjust it to match your trading horizon.
Divergences are most reliable when they occur after extended trends and are confirmed by other tools.
Always combine Double CCI with proper risk management and additional confirmation before live deployment.
Disclaimer: This indicator is provided for educational and informational purposes only. Past performance does not guarantee future results. Always test thoroughly and align with your personal risk management strategy. Indicator

Double Momentum - DMOM | TR🎯 Overview
Double Momentum - DMOM | TR is an advanced momentum oscillator developed by Tiagorocha1989 that builds upon the classic momentum concept by applying the momentum calculation twice. This “momentum of momentum” approach amplifies trend signals, reduces lag, and helps traders identify acceleration and deceleration phases with greater clarity. The indicator offers dual‑mode operation (zero‑line or moving‑average crossovers), an extensive selection of moving average types, and rich visual customization to suit any trading style.
🔧 How It Works
Double Momentum enhances the standard momentum formula by taking the momentum of the momentum itself. This double calculation emphasises changes in the rate of price change, making it particularly effective for spotting trend strength and potential reversals early.
Core Calculation Logic:
First Momentum (MOM):
MOM = Current Price - Price n-periods ago
where n is the user-defined Length DMOM.
Double Momentum (DMOM):
DMOM = 2 × MOM - MOM of MOM
(i.e., DMOM = 2 × MOM - ta.mom(MOM, Length_DMOM))
This formula is reminiscent of a double exponential smoothing step—it reacts faster to changes in momentum while smoothing out noise.
Reference Line (Entry_DMOM):
The indicator compares DMOM to a reference line that can be either:
Zero Line (classic mode) – signals occur when DMOM crosses above or below zero.
DMOM MA (enhanced mode) – the reference line becomes a moving average of DMOM itself, providing smoother, filtered signals.
The moving average type and length are fully customizable, with support for 12 different MA variants (see Key Features).
The resulting oscillator oscillates around the chosen reference line:
DMOM above reference → upward acceleration (bullish momentum)
DMOM below reference → downward acceleration (bearish momentum)
Magnitude indicates the strength of the acceleration.
✨ Key Features
🔹 Dual Operating Modes
Zero Line Mode: Classic signals when DMOM crosses above or below zero – simple and intuitive.
DMOM MA Mode: Smoother signals when DMOM crosses its own moving average – reduces whipsaws in choppy markets.
🔹 Extensive Moving Average Selection
Choose from 12 MA types for the DMOM MA line, each with its own characteristics:
EMA, SMA, RMA, WMA, VWMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, T3.
The T3 MA includes an adjustable T3 Factor for fine‑tuning smoothness.
🔹 Customizable Momentum Parameters
Length DMOM: Lookback period for both momentum calculations (default 36).
Source DMOM: Price source for the initial momentum (default Close).
🔹 Extended Range Visualization
Gradient fills are drawn between DMOM and the reference line, with fixed bounds at +30000 and -30000. These zones help visualise extreme readings, regardless of the instrument’s typical price level.
🔹 Customizable Color Themes
Eight distinct color schemes to match your chart aesthetics:
Classic, Modern, Robust, Accented, Monochrome, Moderate, Aqua, Cosmic
Each theme defines separate colors for bullish and bearish states.
🔹 Comprehensive Visual Feedback
Colored DMOM Line: Changes colour based on its position relative to the reference line.
Signal Line: Yellow line representing the zero or MA reference.
Gradient Fill Zones: Semi‑transparent fills showing extreme momentum areas.
Dynamic Zone Fills: Additional fill between DMOM and the reference line, coloured by the prevailing bias.
Color‑Coded Candles: Bars reflect the current DMOM bias (above or below reference).
Signal Markers: Triangle up/down symbols at crossover points.
Live Value Display: Current DMOM value shown in a floating label near the last bar.
Trend Table: Bullish/Bearish status displayed in a table on the chart.
🔹 Ready‑to‑Use Alerts
Built‑in alert conditions trigger LONG on bullish crossovers and SHORT on bearish crossunders, for both operating modes.
⚙️ Settings Summary
Setting Description Default
Color Choice Select from eight visual themes Classic
Length DMOM Lookback period for momentum calculations 36
Source DMOM Price source for momentum Close
Entry/Exit Signal Choose between zero‑line or DMOM MA mode 0
Length MA Moving average period for DMOM MA mode 365
Moving Average Type of moving average for the signal line (12 options) EMA
T3 Factor Factor for T3 moving average (0–1) 0.7
📈 Practical Applications
🔹 Trend Acceleration Detection
The slope and position of DMOM relative to the reference line quickly reveal whether price momentum is accelerating or decelerating. Steeply rising DMOM indicates strong bullish acceleration; steeply falling DMOM signals bearish acceleration.
🔹 Zero‑Line Crossovers
In Zero Line mode, crossovers provide clear signals:
Crossover above zero → bullish acceleration, potential trend reversal up.
Crossunder below zero → bearish acceleration, potential trend reversal down.
🔹 Signal‑Line Crossovers
In DMOM MA mode, crossovers between DMOM and its moving average generate filtered signals that work well in trending markets:
DMOM crosses above its MA → bullish signal.
DMOM crosses below its MA → bearish signal.
🔹 Divergence Trading
Double Momentum is excellent for spotting divergences:
Bullish Divergence: Price makes a lower low while DMOM forms a higher low → possible upside reversal.
Bearish Divergence: Price makes a higher high while DMOM forms a lower high → possible downside reversal.
Divergences are most reliable after extended trends or at extreme levels.
🔹 Momentum Confirmation
The magnitude of DMOM confirms trend strength:
Large positive values → strong bullish acceleration.
Large negative values → strong bearish acceleration.
Values nearing the reference line → momentum slowing, potential trend change.
🔹 Centerline Rejections
When DMOM approaches the reference line (zero or MA) but reverses before crossing, it can signal trend continuation – a common pattern in strong trends.
🔹 Multiple Timeframe Analysis
Compare DMOM readings across timeframes: higher‑timeframe DMOM defines the primary trend, while lower‑timeframe DMOM helps pinpoint entry and exit timing.
🎯 Ideal For
✅ Trend Traders seeking confirmation of trend strength and direction.
✅ Momentum Traders wanting an early view of acceleration and deceleration.
✅ Divergence Traders looking for leading reversal signals.
✅ Swing Traders capturing medium‑term momentum shifts.
✅ System Developers needing a robust, customisable crossover‑based strategy.
✅ Beginner Traders who appreciate clear visual signals and multiple learning modes.
📌 Key Takeaways
Double Momentum Logic: Applying momentum twice amplifies trend signals and reduces lag compared to standard momentum.
Dual‑Mode Flexibility: Choose zero‑line simplicity for clear entries or MA‑smoothed signals for filtered trades.
Unbounded Nature: Like standard momentum, DMOM has no upper/lower limits, making it suitable for strongly trending instruments.
Extensive MA Options: 12 moving average types give you complete control over the smoothness and responsiveness of the signal line.
Rich Visuals: Colour themes, gradient fills for extreme zones, candle colouring, and live value labels provide immediate market context.
Divergence Capability: The double calculation often reveals divergences earlier than simple momentum.
Alert‑Ready: Pre‑built alerts for both LONG and SHORT signals across both operating modes.
⚠️ Important Notes
Because DMOM is unbounded, its scale can vary significantly between instruments and timeframes. The gradient fills at ±30000 are arbitrary reference points and may not represent actual overbought/oversold conditions for all instruments.
The default Length DMOM of 36 offers a medium‑term perspective. Shorter lengths (9–14) produce more responsive signals, while longer lengths (e.g., 50–100) are better for identifying major trends.
The default Length MA of 365 in DMOM MA mode is designed for a long‑term context on daily charts; adjust it to match your trading horizon.
Divergences are most reliable when they occur after extended trends and are confirmed by other tools.
Always combine Double Momentum with proper risk management and additional confirmation before live deployment.
Disclaimer: This indicator is provided for educational and informational purposes only. Past performance does not guarantee future results. Always test thoroughly and align with your personal risk management strategy. Indicator

Schaff Trend Cycle - STC | TR🎯 Overview
Schaff Trend Cycle – STC | TR is a sophisticated technical indicator developed by Doug Schaff that combines elements of MACD and stochastic to identify trend direction, cycle phases, and potential turning points. This enhanced version, created by Tiagorocha1989, offers extensive customization – including twelve moving average types, eight color themes, and comprehensive visual feedback. The STC oscillator oscillates between 0 and 100, helping traders spot overbought/oversold conditions, trend strength, and cycle completions with exceptional clarity.
🔧 How It Works
The Schaff Trend Cycle (STC) is a multi‑stage indicator that first computes a MACD line (the difference between two moving averages of the price), then applies a double stochastic smoothing process to this MACD line. This unique approach filters out market noise and highlights the underlying cyclical trend.
Core Logic (Conceptual)
MACD Calculation: A fast and a slow moving average are applied to the price source. Their difference forms a MACD line, representing momentum.
First Stochastic Smoothing: The MACD line is normalized using a stochastic formula over a specified cycle length, producing a value between 0 and 100. This step identifies where the current MACD value stands within its recent range.
First Smoothing: The resulting stochastic value is smoothed with a moving average.
Second Stochastic Smoothing: The smoothed value is again normalized using the same cycle length, then smoothed once more.
Final STC Value: The result is a bounded oscillator (0–100) that reflects the position of the price within its cyclical trend.
Readings above the overbought level (default 75) suggest that the uptrend may be mature and a reversal or pullback could occur.
Readings below the oversold level (default 25) suggest that the downtrend may be exhausted and a bounce or reversal could be imminent.
The 50 level acts as a neutral zone or centerline.
✨ Key Features
🔹 Dual‑Stage Stochastic Smoothing
The double stochastic process on the MACD line effectively filters out random price movements, making the STC particularly effective in trending and cyclical markets.
🔹 Flexible Moving Average Selection
Twelve moving average types are available for both the initial MACD calculation and the smoothing stages:
EMA, SMA, RMA, WMA, VWMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, T3 (with adjustable factor).
🔹 Customizable Parameters
Fast Length – Period for the fast moving average (default 12).
Slow Length – Period for the slow moving average (default 26).
Cycle Length – Lookback period for the stochastic calculations (default 28).
1st Smoothing Length – Smoothing applied after the first stochastic (default 3).
2nd Smoothing Length – Smoothing applied after the second stochastic (default 3).
Overbought Level – Upper threshold (default 75, adjustable 20–100).
Oversold Level – Lower threshold (default 25, adjustable 0–80).
Source – Price data used for the moving averages (default close).
MA Type – The moving average method for all calculations.
T3 Factor – Specific factor for the T3 moving average (default 0.7).
🔹 Eight Distinct Color Themes
Identical to the companion CMO | TR indicator, ensuring visual consistency across your charts:
Classic – Green/Red
Modern – White/Purple
Robust – Amber/Maroon
Accented – Violet/Pink
Monochrome – Light gray/Dark gray
Moderate – Green/Red
Aqua – Blue/Orange
Cosmic – Pink/Purple
🔹 Comprehensive Visual Feedback
Colored STC Line: Changes color based on its zone: green/theme color above overbought, red/theme color below oversold, gray in the neutral zone.
Overbought & Oversold Lines: Horizontal lines at the user‑defined levels, semi‑transparent.
Midline: A faint line at 50 for reference.
Gradient Fill Zones:
Overbought Fill: Gradient from the STC line down to the overbought level when STC is above it.
Oversold Fill: Gradient from the STC line up to the oversold level when STC is below it.
Dynamic Fill: Additional fill that highlights the area between the STC line and the midline, coloured according to the prevailing zone.
Background Fill: A subtle gray fill between the overbought and oversold lines.
Color‑Coded Candles: Candles on the price chart take the bullish/bearish color when STC is above overbought or below oversold, providing a clear visual cue of extreme conditions.
Signal Markers: Triangle up/down symbols appear when STC crosses above the overbought level (bearish signal, “SHORT”) or below the oversold level (bullish signal, “LONG”).
Live Value Display: A floating label near the last bar shows the current STC value, color‑coded by zone.
Trend Table: A table on the chart displays “⬆️ Bullish” or “⬇️ Bearish” based on whether STC is above overbought or below oversold.
🔹 Ready‑to‑Use Alerts
Built‑in alert conditions trigger on:
LONG signals when STC crosses below the oversold level (bullish reversal).
SHORT signals when STC crosses above the overbought level (bearish reversal).
⚙️ Settings Summary
Setting Description Default
Color Choice Select from eight visual themes Classic
Fast Length Period for fast MA (MACD component) 12
Slow Length Period for slow MA (MACD component) 26
Cycle Length Lookback for stochastic calculations 28
1st Smoothing Len Smoothing after first stochastic 3
2nd Smoothing Len Smoothing after second stochastic 3
Overbought Level Upper threshold (20–100) 75
Oversold Level Lower threshold (0–80) 25
Source Price source for moving averages Close
MA Type Moving average method (12 options) EMA
T3 Factor Factor for T3 moving average 0.7
📈 Practical Applications
🔹 Overbought / Oversold Detection
STC values above the overbought level indicate that the uptrend may be overextended, warning of a possible reversal or pullback.
STC values below the oversold level suggest the downtrend is exhausted, hinting at a potential bounce or reversal.
Gradient fills make these extreme zones instantly recognizable.
🔹 Crossover Signals
Bullish Signal: When STC crosses below the oversold level and then turns upward, it can signal the start of a new uptrend. The indicator plots a “LONG” triangle below the bar.
Bearish Signal: When STC crosses above the overbought level and then turns downward, it can signal the start of a new downtrend. A “SHORT” triangle appears above the bar.
These signals are plotted only once per crossing to avoid clutter.
🔹 Trend Confirmation
STC staying above the overbought level for an extended period confirms a strong uptrend.
STC staying below the oversold level confirms a strong downtrend.
When STC oscillates between the two thresholds, the market is likely range‑bound.
🔹 Divergence Trading
Bullish Divergence: Price makes a lower low, but STC makes a higher low (especially near or below oversold) → potential upside reversal.
Bearish Divergence: Price makes a higher high, but STC makes a lower high (especially near or above overbought) → potential downside reversal.
Divergences are most reliable when they occur at extreme levels.
🔹 Cycle Identification
The STC is specifically designed to identify cyclical turning points. By adjusting the cycle length, traders can adapt the indicator to different market rhythms (short‑term, medium‑term, or long‑term cycles).
🔹 Multiple Timeframe Analysis
Compare STC readings across timeframes to align trades with the larger trend. For example, a bullish signal on a lower timeframe carries more weight if the higher‑timeframe STC is also bullish (above oversold or rising).
🎯 Ideal For
Cycle Traders seeking to capitalize on recurring market rhythms.
Momentum Traders wanting a clean, filtered view of trend strength.
Mean Reversion Traders looking for overbought/oversold opportunities.
Swing Traders capturing medium‑term trend shifts.
System Developers needing a bounded, reliable oscillator for strategy building.
Traders familiar with MACD & Stochastic who appreciate a hybrid approach.
📌 Key Takeaways
Bounded Range: STC oscillates between 0 and 100, providing clear overbought/oversold levels at 75/25 (user‑adjustable).
Noise Reduction: The double stochastic smoothing filters out market noise, making signals more reliable than raw MACD or single stochastic.
Customizable Smoothing: Twelve moving average types allow fine‑tuning for any trading style.
Comprehensive Visualization: Color themes, gradient fills, candle coloring, and live labels offer immediate market insight.
Signal Clarity: Triangle markers appear only at significant crossovers, reducing visual clutter.
Divergence Capability: Excellent for spotting both regular and hidden divergences.
Alert‑Ready: Built‑in alerts for long/short signals.
⚠️ Important Notes
The default parameters (12, 26, 28) are inspired by the classic MACD and stochastic settings, but they can be adjusted to suit different timeframes and market conditions. Shorter cycle lengths make the indicator more responsive but may increase false signals; longer lengths provide smoother readings. The overbought/oversold levels (75/25) are guidelines – in strongly trending markets, STC can remain in extreme zones for extended periods. Divergences are most reliable when they occur at extreme readings. Always combine with proper risk management and additional confirmation for best results.
Disclaimer: This indicator is provided for educational and informational purposes only. Past performance is not indicative of future results. Always conduct thorough testing and align with your risk management strategy before live deployment. Indicator

Relative Strength Beta-AdjustedBETA-ADJUSTED RELATIVE STRENGTH INDICATOR
This indicator removes broad market influence from a stock's returns to reveal its true, standalone performance over time.
WHAT IT TRACKS:
• Idiosyncratic Return (True RS): The portion of a stock's daily return that cannot be explained by its Beta exposure to the benchmark.
• Cumulative RS Line: A running total of these residual returns, starting at 100, showing the stock's pure alpha trend.
HOW IT WORKS:
The indicator calculates a rolling Beta between your chart symbol and a benchmark (default: SPY), then computes the "expected return" — what the stock should have done based on market movement alone. The difference between the actual return and expected return is the idiosyncratic return. These residuals are accumulated bar by bar into a cumulative line, with a moving average overlay (EMA or SMA).
When the RS line is above the MA, the area fills to indicate positive alpha momentum. When below, the fill shifts to signal deteriorating stock-specific strength.
SETTINGS:
• Benchmark Symbol: Index or ETF to measure against (default: SPY)
• Beta Length: Rolling window for Beta calculation (default: 60)
• MA Type: EMA or SMA (default: EMA)
• MA Length: Smoothing period for the moving average (default: 21)
• Colors: Fully customizable RS line, MA line, and fill colors
USAGE:
Use this to separate genuine stock performance from market noise. A rising line means the stock is generating real alpha. A falling line means it is underperforming what its market sensitivity alone would predict.
The MA crossover helps identify shifts in alpha momentum:
• RS above MA: Stock-specific strength is trending positive — favorable for long positions
• RS below MA: Stock-specific strength is fading — exercise caution or look elsewhere
• Rising line in a falling market: Stock is holding up on its own merits despite broad weakness
• Falling line in a rising market: Stock is being masked by market tailwinds — underlying weakness present
Other potential uses to explore:
• Stock picking: Find stocks generating genuine alpha versus those simply riding a bull market
• Rotation signals: Spot turning points in true relative strength before they show on the price chart
• Sector comparison: Apply to sector ETFs to identify fundamental leaders versus laggers
• Risk management: Reduce exposure when the RS line rolls over, even if price looks stable
• Pair analysis: Compare RS lines across related stocks to find the strongest name in a group
• Other Markets: Such as Crypto Markets set Bitcoin as the benchmark and any altcoin as the chart symbol to measure true relative performance against BTC — useful for identifying altcoins generating genuine strength versus those simply following Bitcoin's momentum
Experiment with different Beta lengths and MA settings to match your trading timeframe and style.
If you discover effective ways to use this indicator, please share in the comments below — your insights could help other traders! Indicator

Indicator

Indicator
