OPEN-SOURCE SCRIPT
ที่อัปเดต: 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.
เอกสารเผยแพร่
* Fixed MACD settings group and added tool tips for percentage-type inputs.สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
Sometimes I'm profitable and then there are the other times...
the.oldschool.engineer
the.oldschool.engineer
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
Sometimes I'm profitable and then there are the other times...
the.oldschool.engineer
the.oldschool.engineer
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน