OPEN-SOURCE SCRIPT
Aggiornato Moving Average Convergence Divergence (with Fade Alert)

• Adds a new alertcondition() called “MACD Histogram Fading”.
• This alert triggers whenever the histogram bar is shrinking, regardless of direction.
• You can now set your alert on TradingView using that condition.
• This alert triggers whenever the histogram bar is shrinking, regardless of direction.
• You can now set your alert on TradingView using that condition.
Note di rilascio
✅ PurposeThe indicator checks two key conditions that match your MONZ strategy entry rules:
1. MACD Histogram is fading → Momentum is weakening
2. RSI is between 44 and 56 → Price is in the “neutral zone” (not overbought or oversold)
When both happen at the same time, the script triggers an alert.
⸻
🧠 How It Works (Internally)
1. MACD Calculation
• It calculates MACD the usual way:
• MACD line = EMA(12) - EMA(26)
• Signal line = EMA(9) of MACD line
• Histogram = MACD - Signal
2. MACD Fading Detection
• It checks if the current histogram bar is smaller in magnitude than the previous one.
• For example:
• Yesterday: green bar = +0.015
• Today: green bar = +0.008
→ ✅ This is fading upward momentum
• It works for both sides (bullish and bearish fade)
3. RSI Range Detection
• It calculates the RSI (14) and checks
4. Combined Alert Logic
• It only triggers when both conditions are true
🔔 Alerts
You get:
• ✅ Alert if MACD is fading
• ✅ Alert if MACD is fading AND RSI is 44–56 ← your main entry alert
• (Optional): Alerts for histogram flipping direction (rising→falling or vice versa)
⸻
📊 Visuals on the Chart
• Histogram columns: green/red with lighter/darker colors based on strength
• MACD and signal lines
• A horizontal line at zero for reference
⸻
🧩 Summary in One Line:
🔔 This script alerts you only when momentum is weakening (MACD fade) and RSI is in the ideal decision zone (44–56)
Note di rilascio
When setting alerts in TradingView:• Choose "GREEN Fading + RSI 44–56" if you want only weakening bullish momentum (e.g., for short entries).
• Choose "RED Fading + RSI 44–56" if you want only weakening bearish momentum (e.g., for long entries).
• You can also use "ANY Fade + RSI 44–56" if you want to catch both.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.