OPEN-SOURCE SCRIPT
Обновлено Multi-Indicator Dashboard

# Multi-Indicator Dashboard v3.7
## What Makes This Script Original?
This dashboard is **not a simple indicator mashup**. It implements a **unique multi-layer decision system** that combines three distinct methodologies into a unified framework:
1. **Ehlers' Laguerre Mathematics** - 18 weighted Laguerre filters with consensus voting
2. **Minervini's Trend Template** - Structural trend analysis using SMA relationships
3. **Defensive Voting System** - A 7-jury protection mechanism to prevent false signals
The key innovation is the **layered signal override architecture**: each layer can downgrade (but never upgrade) signals from the previous layer, creating a "safety net" that catches bull traps and false breakouts.
---
## How It Works: The 5-Layer Protection System
### Layer 1: Laguerre Consensus (Signal Generation)
The script calculates 18 Laguerre filters with gamma values from 0.10 to 0.95. Each filter "votes" bullish or bearish based on:
- Price position relative to filter
- Filter direction (rising/falling)
Votes are weighted by gamma (slower filters = higher weight). The **Effective Consensus** percentage determines the base signal strength.
### Layer 2: Market Filter (Macro Protection)
```
IF Reference Index (SPY/QQQ) < 200-day SMA
THEN Market = Bearish → Block ENTER signals
```
This prevents new entries during bear markets, regardless of individual stock strength.
### Layer 3: Regime Filter (Market Condition)
The script detects three market regimes using 7 criteria:
- ADX level (trend strength)
- DI+ vs DI- spread
- RSI position
- SMA convergence
- Volatility contraction
- Laguerre spread
**Choppy or Sideways regime** → Downgrade TREND/ENTER to CAUTION
### Layer 4: Protection Score (7-Jury System)
Seven independent "juries" vote on structural health:
| Jury | Condition | Meaning |
|------|-----------|---------|
| Laguerre | Close < Lag01 | Fast support broken |
| MACD | Histogram < 0 | Momentum negative |
| OBV | Trend = -1 | Volume selling |
| SMA20 | Close < SMA20 | Short-term trend broken |
| EMA Structure | EMA10 < SMA20 | Trend structure damaged |
| RS Line | RS < RS SMA50 | Underperforming index |
| Net Momentum | RSC < 50 | Sellers stronger than buyers |
**Scoring:**
- 0-1 points: Normal
- 2 points: Yellow Alert (TREND → WAIT)
- 3+ points: Red Alert (→ CAUTION)
### Layer 5: RSI Divergence Alert (Visual Warning)
When price approaches a 60-day high but RSI is 5+ points lower than at the previous peak, a warning icon (⚠️) appears. This **does not change signals** - it's informational only.
---
## Signal Interpretation
| Signal | Code | Meaning | Action |
|--------|------|---------|--------|
| 🟢 ENTER | 5 | Strong setup, all layers confirm | Consider entry |
| 🟢 TREND | 4 | Trend continues, structure intact | Hold position |
| 🟠 CAUTION | 3 | Warning signs present | Avoid new entries |
| 🟡 WATCH | 2 | Developing, too early | Monitor closely |
| ⚪ WAIT | 1 | Conditions unfavorable | Stay in cash |
---
## Key Indicators Explained
### RSC (Relative Strength of Change)
```
RSC = Sum of Positive Changes / Total Changes × 100
```
- RSC > 50: Buyers creating larger moves
- RSC < 50: Sellers creating larger moves
### Effective Consensus
Weighted average of 18 Laguerre filter votes. Higher gamma filters (slower, more reliable) have 2x weight compared to fast filters.
### LaRSI (Laguerre RSI)
Ehlers' smoothed RSI variant. Key zones:
- Below 0.20: Oversold (potential bottom)
- 0.30-0.55: Pullback zone (entry opportunity if turning up)
- Above 0.80: Overbought (caution)
---
## How to Use
1. **Check FINAL SIGNAL** - This is the output after all 5 layers process
2. **Read Status Row** - Shows which filter is currently active (if any)
3. **Monitor RSI Alert** - Orange color with ⚠️ means divergence detected
4. **Use Data Window** - Right-click chart → Data Window for all raw values
### Settings
- **Reference Index**: SPY for US stocks, BTCUSD for crypto
- **RS Lookback**: Period for relative strength calculation (default 50)
- **Filters can be toggled** on/off based on your strategy
---
## Important Disclaimers
- This indicator does not guarantee profits
- Past performance ≠ future results
- ENTER signal ≠ "buy immediately" - always confirm with your own analysis
- Risk management remains your responsibility
---
## Credits & Methodology Sources
- **Laguerre Filters**: John Ehlers, "Cybernetic Analysis for Stocks and Futures"
- **Trend Template**: Mark Minervini, "Trade Like a Stock Market Wizard"
- **CANSLIM**: William O'Neil, "How to Make Money in Stocks"
---
## What Makes This Script Original?
This dashboard is **not a simple indicator mashup**. It implements a **unique multi-layer decision system** that combines three distinct methodologies into a unified framework:
1. **Ehlers' Laguerre Mathematics** - 18 weighted Laguerre filters with consensus voting
2. **Minervini's Trend Template** - Structural trend analysis using SMA relationships
3. **Defensive Voting System** - A 7-jury protection mechanism to prevent false signals
The key innovation is the **layered signal override architecture**: each layer can downgrade (but never upgrade) signals from the previous layer, creating a "safety net" that catches bull traps and false breakouts.
---
## How It Works: The 5-Layer Protection System
### Layer 1: Laguerre Consensus (Signal Generation)
The script calculates 18 Laguerre filters with gamma values from 0.10 to 0.95. Each filter "votes" bullish or bearish based on:
- Price position relative to filter
- Filter direction (rising/falling)
Votes are weighted by gamma (slower filters = higher weight). The **Effective Consensus** percentage determines the base signal strength.
### Layer 2: Market Filter (Macro Protection)
```
IF Reference Index (SPY/QQQ) < 200-day SMA
THEN Market = Bearish → Block ENTER signals
```
This prevents new entries during bear markets, regardless of individual stock strength.
### Layer 3: Regime Filter (Market Condition)
The script detects three market regimes using 7 criteria:
- ADX level (trend strength)
- DI+ vs DI- spread
- RSI position
- SMA convergence
- Volatility contraction
- Laguerre spread
**Choppy or Sideways regime** → Downgrade TREND/ENTER to CAUTION
### Layer 4: Protection Score (7-Jury System)
Seven independent "juries" vote on structural health:
| Jury | Condition | Meaning |
|------|-----------|---------|
| Laguerre | Close < Lag01 | Fast support broken |
| MACD | Histogram < 0 | Momentum negative |
| OBV | Trend = -1 | Volume selling |
| SMA20 | Close < SMA20 | Short-term trend broken |
| EMA Structure | EMA10 < SMA20 | Trend structure damaged |
| RS Line | RS < RS SMA50 | Underperforming index |
| Net Momentum | RSC < 50 | Sellers stronger than buyers |
**Scoring:**
- 0-1 points: Normal
- 2 points: Yellow Alert (TREND → WAIT)
- 3+ points: Red Alert (→ CAUTION)
### Layer 5: RSI Divergence Alert (Visual Warning)
When price approaches a 60-day high but RSI is 5+ points lower than at the previous peak, a warning icon (⚠️) appears. This **does not change signals** - it's informational only.
---
## Signal Interpretation
| Signal | Code | Meaning | Action |
|--------|------|---------|--------|
| 🟢 ENTER | 5 | Strong setup, all layers confirm | Consider entry |
| 🟢 TREND | 4 | Trend continues, structure intact | Hold position |
| 🟠 CAUTION | 3 | Warning signs present | Avoid new entries |
| 🟡 WATCH | 2 | Developing, too early | Monitor closely |
| ⚪ WAIT | 1 | Conditions unfavorable | Stay in cash |
---
## Key Indicators Explained
### RSC (Relative Strength of Change)
```
RSC = Sum of Positive Changes / Total Changes × 100
```
- RSC > 50: Buyers creating larger moves
- RSC < 50: Sellers creating larger moves
### Effective Consensus
Weighted average of 18 Laguerre filter votes. Higher gamma filters (slower, more reliable) have 2x weight compared to fast filters.
### LaRSI (Laguerre RSI)
Ehlers' smoothed RSI variant. Key zones:
- Below 0.20: Oversold (potential bottom)
- 0.30-0.55: Pullback zone (entry opportunity if turning up)
- Above 0.80: Overbought (caution)
---
## How to Use
1. **Check FINAL SIGNAL** - This is the output after all 5 layers process
2. **Read Status Row** - Shows which filter is currently active (if any)
3. **Monitor RSI Alert** - Orange color with ⚠️ means divergence detected
4. **Use Data Window** - Right-click chart → Data Window for all raw values
### Settings
- **Reference Index**: SPY for US stocks, BTCUSD for crypto
- **RS Lookback**: Period for relative strength calculation (default 50)
- **Filters can be toggled** on/off based on your strategy
---
## Important Disclaimers
- This indicator does not guarantee profits
- Past performance ≠ future results
- ENTER signal ≠ "buy immediately" - always confirm with your own analysis
- Risk management remains your responsibility
---
## Credits & Methodology Sources
- **Laguerre Filters**: John Ehlers, "Cybernetic Analysis for Stocks and Futures"
- **Trend Template**: Mark Minervini, "Trade Like a Stock Market Wizard"
- **CANSLIM**: William O'Neil, "How to Make Money in Stocks"
---
Информация о релизе
Multi-Indicator Dashboard v4 - Update NotesNew Features
1. Perfect Stack Detection
System now detects "Perfect Stack" condition: SMA20 > SMA50 > SMA150 > SMA200
When Perfect Stack is active with healthy indicators (RSI 45-75, MACD > Signal, OBV rising), the trend is classified as "Strong Trend"
2. Early Warning System
7 independent warning signals that work even during strong trends:
RSI Bearish Divergence (price rising, RSI falling)
MACD Histogram Weakening (positive but declining 3+ days)
DI+ Weakening (DI+ falling while DI- rising)
Volume Dry-Up (5-day avg < 70% of 20-day avg)
Laguerre Cross-Down (green to red transition) - weighted 2x
Laguerre Sustained Red (2+ consecutive days below Laguerre)
Effective Consensus Dropping (falls below 0.5)
Warning triggers when total score reaches 2 or more
3. Hybrid Opacity System
Protection and Caution markers now use dynamic opacity
During Strong Trend without warnings: 80% transparent (faded background)
During breakdowns or when Early Warning active: 0% transparent (fully visible)
RSI Divergence marker completely hidden during Strong Trend, only shows when Early Warning is active
4. Improved Protection Voting
Protection votes are now trend-aware
Laguerre breaks, MACD weakness, and OBV declines are tolerated during Strong Trend (treated as normal pullbacks)
SMA20 and EMA10/SMA20 structure checks remain always active
New "Early Warning" vote added to protection score
Dashboard Status Updates
New status: "STRONG TREND" - Perfect Stack with healthy indicators
New status: "EARLY WARN" - Early warning signals detected
New status: "STACK OK" - Perfect Stack without full health confirmation
Technical Changes
Removed redundant data window plots (Index Close, Index SMA200, RS Line, RS SMA) to stay within TradingView's 64 plot limit
Total active plots: 59 (plus dynamic opacity overhead)
Purpose
These changes address the issue of excessive warning signals during healthy trend continuation periods (e.g., November 2023 - April 2024 SPX rally) while maintaining sensitivity to genuine trend breakdowns (e.g., August 2023 SPX top when Laguerre turned red).
Информация о релизе
No update, just for chart visual purposeИнформация о релизе
## Multi-Indicator Dashboard v4.1 - Update Notes### Chart Marker Redesign
- Protection Warning (score >= 4): Changed from orange circle to red exclamation mark
- Caution Signal (score == 3): Changed from yellow exclamation with background to orange circle
- Protection now uses `plotchar` instead of `plotshape` (clean icon, no background fill)
### Text Display Options
- Added toggle: "Show BUY Text" - enables/disables BUY label on ENTER signals
- Added toggle: "Show SET Text" - enables/disables SET label on SETUP signals
- Text color changed from white to black for better visibility
### Protection Score Thresholds Updated
- Caution (Orange Circle): score == 2 → score == 3
- Protection (Red Exclamation): score >= 3 → score >= 4
- Result: Less sensitive, fewer false alarms
### Laguerre Logic Update
- Changed from price breakout to Laguerre direction
- Old: `close < lag_01` (price below Laguerre line)
- New: `lag_01 < lag_01[1]` (Laguerre falling/red)
- Laguerre Green = rising, Laguerre Red = falling
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.