Trend Momentum Channel Viprasol## Overview
The Adaptive Trend Momentum Channel (ATMC) is a comprehensive trend-following overlay that measures not just trend direction, but trend velocity — how fast and aggressively price is moving in a given direction. Unlike simple moving average crossovers that only tell you "up or down," ATMC quantifies the acceleration of a trend and adapts its sensitivity to current market conditions.
Designed for swing traders and intraday traders across all markets (stocks, crypto, forex, futures), this indicator combines an adaptive momentum engine with a visual channel, multi-timeframe dashboard, divergence detection, volume confirmation, and risk management overlay — all in a single tool.
## How It Works
### Core Methodology: Momentum Measurement
ATMC measures the gap between a fast-reacting double-smoothed average and a slower exponential average, then normalizes this gap by the Average True Range (ATR). This produces a volatility-adjusted momentum reading that is comparable across different assets and timeframes.
- When the fast line pulls away from the slow line, the trend is accelerating
- When the gap compresses, the trend is losing energy (potential reversal ahead)
- The momentum reading is mapped to a 0-100% strength scale relative to recent history
### Adaptive Period Engine
Rather than using fixed smoothing periods, ATMC employs the Kaufman Efficiency Ratio to measure how "clean" the current price movement is:
- In strong directional trends (high efficiency): the indicator uses shorter periods for faster response
- In choppy/ranging markets (low efficiency): it automatically switches to longer periods to filter noise
- This dramatically reduces whipsaw signals in sideways markets while maintaining responsiveness in trends
### Channel Construction
The channel is asymmetric by design:
- Inner edge: the fast double-smoothed line (leading price estimate)
- Outer edge: the slow average pushed outward by ATR-scaled padding
- Channel width represents trend strength — wider channels = stronger trends
- A three-layer graduated fill provides visual depth
### Volume Confirmation
An optional volume filter suppresses trend signals that occur on below-average volume. This is critical for avoiding false breakouts in thin markets. When enabled, signals require volume to be at or above the user-defined threshold before confirming.
### Divergence Detection
The indicator automatically scans for disagreements between price and momentum:
- Bullish divergence: price makes a lower low, but momentum makes a higher low (early reversal warning)
- Bearish divergence: price makes a higher high, but momentum makes a lower high (trend exhaustion warning)
Divergences appear as labeled markers on the chart.
### Reversal Level System
When a trend flip occurs, the indicator records the price level where the flip happened and draws a dashed line forward. It then monitors for retests of these levels — when price returns to within 0.25 ATR of a reversal level, a "Retest" marker appears. Levels are automatically removed if price invalidates them by moving too far beyond.
## Key Features
- Adaptive smoothing engine (auto-adjusts to market conditions)
- Volatility-normalized momentum measurement (works on any asset/timeframe)
- Visual momentum glow that pulses with trend strength
- Volume confirmation filter to reduce false signals
- Bullish and bearish divergence detection
- Reversal level tracking with retest monitoring
- Multi-timeframe dashboard showing trend state across 5 timeframes
- Risk management overlay with SL/TP visualization (3 stop methods: Channel Edge, ATR Multiple, Swing High/Low)
- 8 distinct alert conditions with detailed dynamic messages
- Fully customizable colors, toggles for every visual element
- Clean, organized input groups with explanatory tooltips
## How to Use
### Trend Following
1. Look for a confirmed trend flip signal (LONG/SHORT label)
2. Check the MTF dashboard — stronger signals align with higher timeframes
3. Enter in the direction of the signal, using the channel edge as your dynamic stop
### Momentum Fading
- When momentum strength reaches >85% (Peak Momentum alert), the trend may be near exhaustion
- Look for divergences as confirmation of a potential reversal
- Consider tightening stops or taking partial profits at peak momentum
### Reversal Trading
- Watch for reversal levels to be retested
- A retest of a level combined with a divergence signal is a high-confluence setup
### Signal Quality Assessment
- "LONG/SHORT Vol OK" = Full confirmation (trend + volume)
- "Weak Bull/Bear" = Trend flipped but volume did not confirm — proceed with caution
## Settings
### Core Settings
- **Price Source**: Close (default). Recommended for most use cases
- **Base Smoothing Period** (18): Primary period for the fast average. Lower = more responsive
- **Momentum Smoothing** (5): Smoothing on the momentum reading
- **Volatility Period** (14): ATR period for normalization
### Adaptive Engine
- **Enable Adaptive Period**: Toggle auto-adjustment on/off
- **Adaptive Min/Max Period** (8/40): Range for the adaptive engine
- **Efficiency Lookback** (10): Kaufman efficiency calculation period
### Volume Filter
- **Enable Volume Filter**: Toggle volume confirmation
- **Volume Threshold** (1.0x): Minimum volume relative to average
### Divergence Detection
- **Pivot Lookback** (5): Sensitivity for finding price pivots
- **Max Bars Between Pivots** (60): Maximum gap for valid divergences
### Risk Management
- **Stop-Loss Method**: Channel Edge (dynamic), ATR Multiple (fixed), or Swing High/Low
- **Target Risk:Reward** (2.0): Take-profit as multiple of stop distance
## Alerts
1. **Bullish Trend Flip** — Confirmed bullish trend change
2. **Bearish Trend Flip** — Confirmed bearish trend change
3. **Peak Momentum** — Momentum strength exceeds 85% (potential exhaustion)
4. **Momentum Fading** — Momentum drops below 15% (trend losing energy)
5. **Bullish Divergence** — Price vs momentum disagreement (bullish)
6. **Bearish Divergence** — Price vs momentum disagreement (bearish)
7. **Any Trend Flip** — Either direction (for automation/webhooks)
8. **MTF Alignment** — Multiple higher timeframes confirm current trend
All alerts include ticker, price, and timeframe in the message for webhook/bot compatibility.
## Limitations and Disclaimer
- Like all trend-following indicators, ATMC will lag actual turning points. The adaptive engine reduces this but cannot eliminate it
- Divergence detection works with a delay equal to the pivot lookback period
- Volume data may not be available or reliable on all instruments (especially forex spot)
- The MTF dashboard uses end-of-bar data from higher timeframes and may not update intra-bar
- This indicator is a tool for analysis, not a standalone trading system. Always use proper risk management
- Past performance does not guarantee future results. This is not financial advice
## Credits
This indicator builds upon the trend velocity channel concept originally explored by BackQuant. The Viprasol version significantly extends the original with an adaptive period engine, multi-timeframe analysis, divergence detection, volume confirmation, and risk management overlay.
---
(c) Viprasol
viprasol.com
אינדיקטור Pine Script®






















