OPEN-SOURCE SCRIPT
Cập nhật Stock Relative Strength Rotation Graph

🔄 Visualizing Market Rotation & Momentum (Stock RSRG)
📜 Credits & Disclaimer
📊 How It Works (The Math)
🧩 The 4 Market Quadrants
✨ Significant Improvements
This open-source version adds unique features not found in standard rotation scripts:
🛠️ How to Use
- This tool visualizes the sector rotation of your watchlist on a single graph. Instead of checking 40 different charts, you can see the entire market cycle in one view. It plots Relative Strength (Trend) vs. Momentum (Velocity) to identify which assets are leading the market and which are lagging.
📜 Credits & Disclaimer
- Original Code: Adapted from the open-source "Relative Strength Scatter Plot" by LuxAlgo.
- Trademark: This tool is inspired by Relative Rotation Graphs®. Relative Rotation Graphs® is a registered trademark of JOOS Holdings B.V. This script is neither endorsed, nor sponsored, nor affiliated with them.
📊 How It Works (The Math)
- The script calculates two metrics for every symbol against a benchmark (Default: SPX):
- X-Axis (RS-Ratio): Is the trend stronger than the benchmark? (>100 = Yes)
- Y-Axis (RS-Momentum): Is the trend accelerating? (>100 = Yes)
🧩 The 4 Market Quadrants
- 🟩 Leading (Top-Right): Strong Trend + Accelerating. (Best for holding).
- 🟦 Improving (Top-Left): Weak Trend + Accelerating. (Best for entries).
- ⬜ Weakening (Bottom-Right): Strong Trend + Decelerating. (Watch for exits).
- 🟥 Lagging (Bottom-Left): Weak Trend + Decelerating. (Avoid).
✨ Significant Improvements
This open-source version adds unique features not found in standard rotation scripts:
- 📝 Quick-Input Engine: Paste up to 40 symbols as a single comma-separated list (e.g., NVDA, AMD, TSLA). No more individual input boxes.
- 🎯 Quadrant Filtering: You can now hide specific quadrants (like "Lagging") to clear the noise and focus only on actionable setups.
- 🐛 Trajectory Trails: Visualizes the historical path of the rotation so you can see the direction of momentum.
🛠️ How to Use
- Paste Watchlist: Go to settings and paste your symbols (e.g., US Sectors: XLK, XLF, XLE...).
- Find Entries: Look for tails moving from Improving ➔ Leading.
- Find Exits: Be cautious when tails move from Leading ➔ Weakening.
- Zoom: Use the "Scatter Plot Resolution" setting to zoom in or out if dots are bunched up.
Phát hành các Ghi chú
update the chart imageMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.