OPEN-SOURCE SCRIPT

Momentum Pulse

859
MOMENTUM PULSE v1.0 [FREE]
Next-Generation Adaptive Momentum Analysis

Blends three orthogonal momentum sources into a single Adaptive Momentum Composite (AMC), enhanced with multi-timeframe confluence scoring and automatic divergence detection. A comprehensive, real-time read on momentum across multiple dimensions — all in one clean, non-overlay panel.

Free and Open Source.

═══════════════════════════════════

THE CONCEPT: COMPOSITE MOMENTUM

Traditional momentum indicators measure one thing: RSI tracks mean-reversion, MACD tracks trend acceleration, ROC tracks raw velocity. Each has blind spots. A composite approach eliminates these blind spots by combining all three perspectives into a single normalized reading.

The Adaptive Momentum Composite (AMC) uses Z-score normalization to ensure each component contributes equally regardless of asset type or volatility level — it auto-calibrates to any market.

═══════════════════════════════════

CORE ENGINE: ADAPTIVE MOMENTUM COMPOSITE (AMC)

The signature engine combines three Z-score normalized momentum sources:

1. Rate of Change (ROC)
Raw price velocity over N bars. Catches sharp moves early.

2. RSI Deviation
Distance of RSI from the 50-line. Captures overbought/oversold pressure.

3. MACD Histogram
Trend acceleration. Captures the speed of the trend change.

Each component's weight is configurable. The composite is clamped to [-4, +4] to prevent extreme outlier distortion.

═══════════════════════════════════

TREND STRENGTH METER

Real-time regime classification using adaptive thresholds:

  • STRONG BULL — AMC above 1.8x its own standard deviation
  • BULL — AMC above 0.8x standard deviation
  • NEUTRAL — AMC near zero
  • BEAR — Mirror of bullish thresholds
  • STRONG BEAR — Mirror of bullish thresholds


Thresholds auto-calibrate to each asset and timeframe. A visual strength gauge (0–100%) shows momentum intensity at a glance.

═══════════════════════════════════

MULTI-TIMEFRAME CONFLUENCE

Polls AMC direction from up to 3 higher timeframes plus the current chart:

  • Score 4/4 — All timeframes aligned = high-conviction setup
  • Score 3/4 — Strong alignment with one dissenter = proceed with caution
  • Score 2/4 or less — Mixed signals = chop zone, reduce position size


Auto-selects appropriate higher timeframes based on your chart. Manual override available.

Auto-Selected Timeframes:
  • 1-3 min chart → 5 min / 15 min / 1 Hour
  • 5 min chart → 15 min / 1 Hour / 4 Hour
  • 15 min chart → 1 Hour / 4 Hour / Daily
  • 1 Hour chart → 4 Hour / Daily / Weekly
  • 4 Hour chart → Daily / Weekly / Monthly
  • Daily chart → Weekly / Monthly / 3M


═══════════════════════════════════

DIVERGENCE DETECTION

Automatic pivot-based detection of four divergence types:

  • Regular Bullish — Price makes lower low, AMC makes higher low → reversal up
  • Regular Bearish — Price makes higher high, AMC makes lower high → reversal down
  • Hidden Bullish — Price makes higher low, AMC makes lower low → trend continuation up
  • Hidden Bearish — Price makes lower high, AMC makes higher high → trend continuation down


Each divergence is labeled directly on the chart with color-coded markers. Configurable pivot lookback and maximum bar distance between pivots.

═══════════════════════════════════

MOMENTUM WAVE VISUALIZATION

Dynamic gradient histogram:

  • Rising Bullish — Bright cyan
  • Fading Bullish — Teal
  • Rising Bearish — Bright red-pink
  • Fading Bearish — Magenta
  • Signal Line — Smoothed AMC (EMA) for crossover timing
  • Zero-Line Crosses — Circle labels ("0+" / "0-")
  • Signal Crosses — Diamond markers for entry/exit timing


Background zones subtly shade the panel based on the current momentum regime.

═══════════════════════════════════

DASHBOARD

Compact dark-themed info panel displaying:

  • AMC — Current composite value with trend arrow
  • Regime — STRONG BULL / BULL / NEUTRAL / BEAR / STRONG BEAR with color coding
  • Strength — Visual gauge bar (0–100%) showing momentum intensity
  • Signal — Above / Below signal line status
  • MTF Confluence — Arrow alignment for all 4 timeframes with score (0-4)
  • Timeframes — Current + 3 higher TFs being monitored
  • Components — Individual Z-scores for ROC, RSI, MACD
  • RSI — Raw RSI value with Overbought/Oversold status


═══════════════════════════════════

ALERTS (10 CONDITIONS)

  • Zero Crosses: Bullish / Bearish
  • Signal Crosses: Bullish / Bearish
  • Regular Divergence: Bullish / Bearish
  • Hidden Divergence: Bullish / Bearish
  • Full MTF Confluence: Bullish / Bearish


═══════════════════════════════════

PRO VERSION

The PRO version adds:
  • Enhanced AMC Engine — Additional momentum components and advanced weighting algorithms
  • Extended Dashboard — More detailed analytics and component breakdown
  • Advanced Divergence — Multi-level divergence scoring with strength classification
  • Strategy Mode — Built-in backtestable strategy with entry/exit logic
  • Additional Alert Conditions — Regime change, momentum acceleration, and more


═══════════════════════════════════

NON-REPAINTING

The AMC is calculated from standard non-repainting indicators (ROC, RSI, MACD). Z-score normalization uses historical data only. MTF requests use lookahead_off to prevent future data leakage. Divergence detection requires confirmed pivots. No repainting.

═══════════════════════════════════

WORKS ON

Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Monthly.

═══════════════════════════════════

DISCLAIMER

This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. No indicator can predict market movements with certainty. Always implement proper risk management. Use this tool as one component of a comprehensive trading strategy, not as a standalone decision-making system.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.