OPEN-SOURCE SCRIPT

EMA 3 vs EMA 21 % Difference Adjustable

78
Title: EMA 3 vs EMA 21 % Difference with Adjustable Labels

Description:
This script calculates the percentage difference between EMA 3 and EMA 21 and displays it directly on the chart as a label. Labels are shown only when the difference exceeds a user-defined threshold, helping traders easily spot significant deviations.

Features:

Calculates EMA 3 and EMA 21.

Displays percentage difference as labels above or below candles.

Adjustable label style and size.

User-defined percentage threshold for label visibility.

Plots EMA lines for visual reference.

Ideal for traders who want to monitor short-term EMA divergence relative to a longer-term trend in a clean and customizable way.

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.