OPEN-SOURCE SCRIPT

Aufwärtstrend (EMA Crossover + Close > EMA20)

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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.