OPEN-SOURCE SCRIPT
Atualizado 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.
Notas de Lançamento
* Fixed MACD settings group and added tool tips for percentage-type inputs.Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Sometimes I'm profitable and then there are the other times...
the.oldschool.engineer
the.oldschool.engineer
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Sometimes I'm profitable and then there are the other times...
the.oldschool.engineer
the.oldschool.engineer
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.