OPEN-SOURCE SCRIPT

Aufwärtstrend (EMA Crossover + Close > EMA20)

89
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.

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.