OPEN-SOURCE SCRIPT
Aufwärtstrend (EMA Crossover + Close > EMA20)

Aufwärtstrend (EMA Crossover + Close > EMA20)
📈 EMA Crossover Uptrend Indicator with Alert Function
This script identifies potential uptrends based on an EMA crossover strategy, and provides a simple way to set alerts for trend shifts.
🔍 Indicator Logic:
Two Exponential Moving Averages (EMAs) are calculated:
EMA 8 (fast)
EMA 20 (slow)
An uptrend is detected when:
EMA 8 crosses above EMA 20 (bullish crossover), and
the closing price is above EMA 20.
📌 Features:
Plots both EMAs on the chart (optional).
A green "↑" label is displayed below the bar when an uptrend is detected.
Alert conditions:
"Uptrend": When both crossover and close-above-EMA20 conditions are met.
"Downtrend": When those conditions are not met.
🔔 How to Use Alerts:
After adding the script to your chart, go to “Create Alert” and choose between the two alert conditions. The alert messages are:
"Uptrend detected: EMA8 crossed above EMA20 and Close is above EMA20"
"Downtrend detected: Uptrend conditions not met"
💡 Use Cases:
Early identification of bullish market conditions.
Useful for timing long entries.
Can be combined with other tools for trend confirmation.
📈 EMA Crossover Uptrend Indicator with Alert Function
This script identifies potential uptrends based on an EMA crossover strategy, and provides a simple way to set alerts for trend shifts.
🔍 Indicator Logic:
Two Exponential Moving Averages (EMAs) are calculated:
EMA 8 (fast)
EMA 20 (slow)
An uptrend is detected when:
EMA 8 crosses above EMA 20 (bullish crossover), and
the closing price is above EMA 20.
📌 Features:
Plots both EMAs on the chart (optional).
A green "↑" label is displayed below the bar when an uptrend is detected.
Alert conditions:
"Uptrend": When both crossover and close-above-EMA20 conditions are met.
"Downtrend": When those conditions are not met.
🔔 How to Use Alerts:
After adding the script to your chart, go to “Create Alert” and choose between the two alert conditions. The alert messages are:
"Uptrend detected: EMA8 crossed above EMA20 and Close is above EMA20"
"Downtrend detected: Uptrend conditions not met"
💡 Use Cases:
Early identification of bullish market conditions.
Useful for timing long entries.
Can be combined with other tools for trend confirmation.
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.