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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations โ learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations โ learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.