OPEN-SOURCE SCRIPT
Aggiornato Momentum Indicators

Momentum Indicators - Advanced Technical Analysis Tool
Overview
A comprehensive Pine Script indicator designed to identify and visualize momentum shifts, trend sequences, and key reversal signals directly on your chart. This multi-faceted tool combines traditional momentum indicators with advanced pattern recognition to provide clear visual cues for market dynamics.
Key Features
๐ MOMO Signal (Primary Momentum Detector)
The core feature identifies high-probability momentum events when all conditions align simultaneously:
- Price increase exceeds configurable threshold (default 5%)
- Fast EMA (9) diverging above Slow EMA (20)
- VWAP trending upward with acceleration
- Volume spike above 5x average (50-period lookback)
- MACD line above signal line
When all criteria are met, a green "MOMO!" triangle appears above the candle, signaling strong bullish momentum.
๐ Bull & Bear Run Detection
Automatically identifies and visualizes consecutive trending sequences:
- Bull Runs: Green trend rays extending from sequence start with "BULLS!" labels
- Bear Runs: Red trend rays extending from sequence start with "BEARS!" labels
- Configurable minimum sequence length (default 3 candles)
- Optional strict color requirements (green candles only for bull runs, red for bear runs)
- Sequence length displayed at run completion
โ ๏ธ Reversal Warning Signals
"TAILS!" flags mark potential trend exhaustion:
- Topping tails on bull runs (upper wicks โฅ50% of candle body)
- Bottoming tails on bear runs (lower wicks โฅ50% of candle body)
๐ MACD Cross Alerts
Clear visual indicators for MACD momentum shifts:
- Blue "MACD Open" arrows when MACD crosses above signal line
- Orange "MACD Closed" arrows when MACD crosses below signal line
Customization Options
MACD Settings
- Fast EMA Length (default: 12)
- Slow EMA Length (default: 26)
- Signal Length (default: 9)
Momentum Thresholds
- Price change threshold (default: 5%)
- Volume multiplier (default: 5.0x)
- Volume average lookback period (default: 50)
Trend Analysis
- Minimum candles for trend establishment (default: 3)
- Maximum sequences to display (default: 5)
- Historical lookback range (default: 100 bars)
- Wick percentage threshold for reversal warnings (default: 50%)
Visual Elements
- Toggle controls for each feature set
- Color-coded trend rays that extend to current price action
- Multiple label styles for different signal types
- Optimized performance with efficient array management
Best Use Cases
- Swing trading entry/exit confirmation
- Momentum breakout identification
- Trend continuation vs. reversal analysis
- Multi-timeframe confluence when combined with higher timeframe analysis
This indicator excels at highlighting high-probability momentum shifts while providing context through trend sequence analysis and early reversal warnings.
Note di rilascio
* Fixed MACD settings group and added tool tips for percentage-type inputs.Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalitร . Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice รจ soggetta al nostro Regolamento.
Sometimes I'm profitable and then there are the other times...
the.oldschool.engineer
the.oldschool.engineer
Declinazione di responsabilitร
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalitร . Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice รจ soggetta al nostro Regolamento.
Sometimes I'm profitable and then there are the other times...
the.oldschool.engineer
the.oldschool.engineer
Declinazione di responsabilitร
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.