PROTECTED SOURCE SCRIPT
Trend Warning / Direction (EMA20/50)

This indicator visualizes trend changes and consolidation phases using the 20 EMA and 50 EMA.
๐น Trend Signals
โข Green triangle (โฒ): EMA 20 crosses above EMA 50 โ bullish trend signal
โข Red triangle (โผ): EMA 20 crosses below EMA 50 โ bearish trend signal
โข Crosses are confirmed on candle close to avoid false signals.
๐น EMA Distance Warning
The indicator highlights low-momentum / squeeze zones when the distance between EMA 20 and EMA 50 falls below a configurable threshold.
โข Yellow triangle with number:
Displays the current EMA distance in percent (without the % symbol).
โข The warning threshold can be configured individually for each timeframe:
โข 1m, 5m, 15m, 30m
โข 1h, 4h, 8h
โข 1D, 1W
โข The active chart timeframe automatically determines which threshold is applied.
๐น Customization
โข Enable or disable EMA distance warnings via settings
โข Adjust distance thresholds per timeframe
โข Option to limit warning labels to one per bar
โข Works on all markets and timeframes
๐น Use Cases
โข Trend identification
โข Momentum exhaustion and consolidation detection
โข Early warning before potential breakouts
โข Trade confirmation in combination with other indicators
This indicator is non-repainting, lightweight, and designed for clean, actionable chart signals.
๐น Trend Signals
โข Green triangle (โฒ): EMA 20 crosses above EMA 50 โ bullish trend signal
โข Red triangle (โผ): EMA 20 crosses below EMA 50 โ bearish trend signal
โข Crosses are confirmed on candle close to avoid false signals.
๐น EMA Distance Warning
The indicator highlights low-momentum / squeeze zones when the distance between EMA 20 and EMA 50 falls below a configurable threshold.
โข Yellow triangle with number:
Displays the current EMA distance in percent (without the % symbol).
โข The warning threshold can be configured individually for each timeframe:
โข 1m, 5m, 15m, 30m
โข 1h, 4h, 8h
โข 1D, 1W
โข The active chart timeframe automatically determines which threshold is applied.
๐น Customization
โข Enable or disable EMA distance warnings via settings
โข Adjust distance thresholds per timeframe
โข Option to limit warning labels to one per bar
โข Works on all markets and timeframes
๐น Use Cases
โข Trend identification
โข Momentum exhaustion and consolidation detection
โข Early warning before potential breakouts
โข Trade confirmation in combination with other indicators
This indicator is non-repainting, lightweight, and designed for clean, actionable chart signals.
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun โ pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, Anda dapat menggunakannya dengan bebas dan tanpa batasan apa pun โ pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.