OPEN-SOURCE SCRIPT

Sri_Momentum

573
Sri_Momentum - Advanced Oscillator for Market Trends
Description
The Sri_Momentum is a powerful momentum-based oscillator that helps traders analyze price trends and market strength. This indicator utilizes two simple moving averages (SMA) to calculate the Awesome Oscillator (AO) and a signal line for trend confirmation. The histogram dynamically changes color based on the crossover between AO and the signal line, providing clear bullish and bearish signals.

✅ Awesome Oscillator (AO) Calculation - Measures market momentum using a fast and slow SMA.
✅ Signal Line for Confirmation - A smoothed moving average of AO to help traders identify trend shifts.
✅ Dynamic Histogram Color Coding - Easy-to-interpret histogram with four colors indicating trend strength and direction.
✅ Custom Sensitivity Input - Adjusts the AO calculation to fine-tune responsiveness.
✅ Zero Line Reference - A baseline to differentiate bullish and bearish momentum.

How It Works
Fast SMA (default: 5-period) and Slow SMA (default: 34-period) are calculated based on the average of high and low prices.
AO (Awesome Oscillator) = (Fast SMA - Slow SMA) * Sensitivity
Signal Line = Smoothed AO using a 7-period SMA
Histogram Color Logic:
🔵 Strong Bullish → AO > Signal & AO ≥ 0 (Green)
🔴 Weak Bullish → AO > Signal & AO < 0 (Light Red)
🟢 Weak Bearish → AO < Signal & AO ≥ 0 (Light Green)
🔥 Strong Bearish → AO < Signal & AO < 0 (Dark Red)
How to Use the Sri_Momentum Indicator
📌 Bullish Momentum → When AO crosses above the Signal Line, and the histogram turns green.
📌 Bearish Momentum → When AO crosses below the Signal Line, and the histogram turns red.
📌 Trend Strength → Darker colors indicate stronger trends; lighter colors suggest weaker trends.
📌 Zero Line Crossover → If AO moves above zero, it suggests bullish strength; if below zero, bearish control.

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.