OPEN-SOURCE SCRIPT
EMA 3 vs EMA 21 % Difference Adjustable

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.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.