PROTECTED SOURCE SCRIPT
已更新 MOEX Swing Pro

# 🇷🇺 MOEX Swing Pro
*Intelligent Swing Analyzer for Moscow Exchange Stocks with Liquidity, Session & Dividend Filters*
---
## 🔥 Why This Indicator?
Most indicators are built for Western markets and **ignore the realities of the Moscow Exchange (MOEX)**: morning auctions, dividend cutoffs, low liquidity in second-tier stocks, and the impact of the ruble exchange rate.
**MOEX Swing Pro** is the first indicator fully adapted for the Russian market. It doesn't just draw swings — it **filters out noise** and shows **only significant moves** worth trading.
---
## ✅ Key Features
### 📊 Smart Swing Analysis
- Automatic detection of **swing highs** and **swing lows** using confirmed pivots (`pivothigh`/`pivotlow`)
- Future movement projection based on **historical percentage moves**
- 3 calculation methods: **Average**, **Median**, **Mode** — choose what fits your trading style
### 🇷🇺 Built for Moscow Exchange
- **Session filter**: works only during main session (10:00–18:40 MSK), with optional morning (9:00–10:00) and evening (19:00–23:50) sessions
- **Liquidity check**: ignores stocks below your volume threshold (in RUB!)
- **Dividend protection**: automatically disables signals 3 days before ex-dividend date
- **USD/RUB adjustment**: for oil/gas and banking stocks, projections factor in ruble exchange rate movements
### 🎯 Optimized Entry Signals
- Signals trigger **only with confirmation**:
- ✅ Candle closes outside the swing zone
- ✅ Volume 20% above 20-bar average
- ✅ Momentum confirmation (`close > open` and `close > close[2]`)
- **Cooldown timer** between signals — prevents overtrading noise
- Toggle alerts for long/short entries
### 🔔 Smart Alerts
- Basic alerts on every new swing
- **Size filter**: alerts only for swings larger than your threshold (e.g., ≥2.5%)
- Multi-timeframe confluence alerts (all 4 timeframes aligned)
### 📈 Visual Feedback
- Swing zone boxes with **color gradient based on swing strength**
- Triangles ▲/▼ marking confirmed swing points
- Dashed projection lines with percentage labels
- Dashboard showing liquidity status, gaps, dividends, and USD/RUB rate
---
## 💡 How to Trade with This Indicator
### For Intraday Trading (M15):
1. Enable **morning session** to trade opening volatility
2. Set: `Length = 20`, `Cooldown = 10`
3. Wait for **signal + confluence** (background turns green/red)
4. Entry: on candle close outside the swing zone
5. Stop: below/above the swing zone
6. Take profit: at projection level (percentage label)
### For Swing Trading (H1/D1):
1. Disable morning/evening sessions
2. Set: `Length = 50`, `Min. Swing = 2.5%`
3. Trade **only with confluence** and above-average volume
4. Hold position 1–3 days until next swing forms
> 💡 **Golden rule**: *"Wait for the candle to close outside the zone!"* — this confirms the market truly broke the level, not just "touched" it.
---
## ⚠️ Important Notes
- **Avoid trading during dividend periods** — the indicator disables signals automatically, but extra caution is recommended
- **Skip low-liquidity stocks** — even if a signal appears
- **On gap days (>2%)** zones automatically expand — this is intentional behavior
- This is an **analytical tool** — use signals as a filter, not as 100% movement guarantees
---
## 📜 License & Attribution
- **Author**: © BigBeluga (enhanced for Moscow Exchange)
- **License**: [Creative Commons BY-NC-SA 4.0](creativecommons.org/licenses/by-nc-sa/4.0/)
- **Usage**: Free for personal use. Commercial resale prohibited.
---
## 🚀 Start Trading Smarter Today!
1. Add the indicator to any MOEX stock chart (`SBER`, `GAZP`, `LKOH`, `TATN`, etc.)
2. Set **minimum liquidity** according to your portfolio
3. Enable **alerts** for entry signals
4. Follow the rule: *"Wait for the candle to close outside the zone"*
> 💬 *"Better to miss 10 false signals than catch 1 losing trade"* — the philosophy behind this indicator
---
### 🔍 Tags
`#MOEX` `#stocks` `#swings` `#technicalanalysis` `#trading` `#Russia` `#dividends` `#liquidity` `#signals` `#beginners`
*Intelligent Swing Analyzer for Moscow Exchange Stocks with Liquidity, Session & Dividend Filters*
---
## 🔥 Why This Indicator?
Most indicators are built for Western markets and **ignore the realities of the Moscow Exchange (MOEX)**: morning auctions, dividend cutoffs, low liquidity in second-tier stocks, and the impact of the ruble exchange rate.
**MOEX Swing Pro** is the first indicator fully adapted for the Russian market. It doesn't just draw swings — it **filters out noise** and shows **only significant moves** worth trading.
---
## ✅ Key Features
### 📊 Smart Swing Analysis
- Automatic detection of **swing highs** and **swing lows** using confirmed pivots (`pivothigh`/`pivotlow`)
- Future movement projection based on **historical percentage moves**
- 3 calculation methods: **Average**, **Median**, **Mode** — choose what fits your trading style
### 🇷🇺 Built for Moscow Exchange
- **Session filter**: works only during main session (10:00–18:40 MSK), with optional morning (9:00–10:00) and evening (19:00–23:50) sessions
- **Liquidity check**: ignores stocks below your volume threshold (in RUB!)
- **Dividend protection**: automatically disables signals 3 days before ex-dividend date
- **USD/RUB adjustment**: for oil/gas and banking stocks, projections factor in ruble exchange rate movements
### 🎯 Optimized Entry Signals
- Signals trigger **only with confirmation**:
- ✅ Candle closes outside the swing zone
- ✅ Volume 20% above 20-bar average
- ✅ Momentum confirmation (`close > open` and `close > close[2]`)
- **Cooldown timer** between signals — prevents overtrading noise
- Toggle alerts for long/short entries
### 🔔 Smart Alerts
- Basic alerts on every new swing
- **Size filter**: alerts only for swings larger than your threshold (e.g., ≥2.5%)
- Multi-timeframe confluence alerts (all 4 timeframes aligned)
### 📈 Visual Feedback
- Swing zone boxes with **color gradient based on swing strength**
- Triangles ▲/▼ marking confirmed swing points
- Dashed projection lines with percentage labels
- Dashboard showing liquidity status, gaps, dividends, and USD/RUB rate
---
## 💡 How to Trade with This Indicator
### For Intraday Trading (M15):
1. Enable **morning session** to trade opening volatility
2. Set: `Length = 20`, `Cooldown = 10`
3. Wait for **signal + confluence** (background turns green/red)
4. Entry: on candle close outside the swing zone
5. Stop: below/above the swing zone
6. Take profit: at projection level (percentage label)
### For Swing Trading (H1/D1):
1. Disable morning/evening sessions
2. Set: `Length = 50`, `Min. Swing = 2.5%`
3. Trade **only with confluence** and above-average volume
4. Hold position 1–3 days until next swing forms
> 💡 **Golden rule**: *"Wait for the candle to close outside the zone!"* — this confirms the market truly broke the level, not just "touched" it.
---
## ⚠️ Important Notes
- **Avoid trading during dividend periods** — the indicator disables signals automatically, but extra caution is recommended
- **Skip low-liquidity stocks** — even if a signal appears
- **On gap days (>2%)** zones automatically expand — this is intentional behavior
- This is an **analytical tool** — use signals as a filter, not as 100% movement guarantees
---
## 📜 License & Attribution
- **Author**: © BigBeluga (enhanced for Moscow Exchange)
- **License**: [Creative Commons BY-NC-SA 4.0](creativecommons.org/licenses/by-nc-sa/4.0/)
- **Usage**: Free for personal use. Commercial resale prohibited.
---
## 🚀 Start Trading Smarter Today!
1. Add the indicator to any MOEX stock chart (`SBER`, `GAZP`, `LKOH`, `TATN`, etc.)
2. Set **minimum liquidity** according to your portfolio
3. Enable **alerts** for entry signals
4. Follow the rule: *"Wait for the candle to close outside the zone"*
> 💬 *"Better to miss 10 false signals than catch 1 losing trade"* — the philosophy behind this indicator
---
### 🔍 Tags
`#MOEX` `#stocks` `#swings` `#technicalanalysis` `#trading` `#Russia` `#dividends` `#liquidity` `#signals` `#beginners`
版本注释
Bag fix版本注释
Volumes for different types of trade have been added.版本注释
Bag fix受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。