OPEN-SOURCE SCRIPT

Moving Avarage Momentum [db]

128
Overview

The Moving Average Momentum [db] indicator is a powerful hybrid tool that combines classic moving average crossovers with dynamic momentum and smoothing logic.
It enhances the traditional SMA crossover system by adding momentum flip detection, visual markers, and multiple smoothing modes (including Bollinger Bands).

This indicator helps you identify trend direction, momentum shifts, and potential reversals in a single, visually intuitive overlay.



⚙️ Key Features

🔹 1. Dual SMA Framework
  • Uses two configurable Simple Moving Averages (SMA 1 & SMA 2) to measure short-term and long-term trend bias.
  • The color of each SMA dynamically reflects momentum direction (green = rising, gray = flat, red = falling).


🔹 2. Multi-Type Smoothing Options

Choose how you want to smooth the MAs for better signal clarity:
  • None — raw SMA crossovers
  • SMA — classic smoothing
  • SMA + Bollinger Bands — volatility-based envelope with dynamic bands
  • EMA, SMMA (RMA), WMA, VWMA — adaptive smoothing styles to suit your trading preference


Each smoothing method can be customized with a separate length and Bollinger Band multiplier (if selected).

🔹 3. Visual Markers for Crossover Events

The indicator highlights bullish and bearish crossovers between the two moving averages:


🔹 4. Momentum Flip Detection

Detects when short-term momentum shifts direction based on the slope of the faster MA:
  • Up Momentum Flip = Momentum changes from negative to positive
  • Down Momentum Flip = Momentum changes from positive to negative


These flips are marked on the chart for early momentum signals — often appearing before a full crossover occurs.

🔹 5. Bollinger Band Mode

When “SMA + Bollinger Bands” is selected:
  • The indicator adds upper and lower volatility envelopes around the smoothed SMA.
  • The area between them is shaded to help visualize contraction and expansion phases.


🔹 6. Trend Fill

A shaded region between SMA1 and SMA2 visually distinguishes the active trend.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.