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. اقرأ المزيد في شروط الاستخدام.