OPEN-SOURCE SCRIPT
EMA Distance Meter (14 vs 50)

This is an EMA Distance Meter.
Its only job is to show you how far the 14 EMA is from the 50 EMA, both:
✔ As a percentage
✔ As a raw point difference
✔ With color-coded trend strength
✔ With a small on-chart table showing current values
This kind of tool is meant to help you confirm trend vs chop without guessing.
✅ Main Concept
It measures the distance between the fast EMA (14) and slow EMA (50).
When the 14 EMA is above the 50 → bullish distance
When the 14 EMA is below the 50 → bearish distance
Bigger distance = stronger trend
Tiny distance = chop/consolidation
🔧 How It Works (Step-by-Step)
1. Inputs
You can change:
Fast EMA length (default 14)
Slow EMA length (default 50)
Source (close by default)
Thresholds for:
Trend strength
Choppy/no-trend zone
These thresholds are percentages.
Example:
Trend threshold = 0.20 → trend when EMAs differ by ≥ 0.20%
Chop threshold = 0.10 → chop when EMAs differ by ≤ 0.10%
Its only job is to show you how far the 14 EMA is from the 50 EMA, both:
✔ As a percentage
✔ As a raw point difference
✔ With color-coded trend strength
✔ With a small on-chart table showing current values
This kind of tool is meant to help you confirm trend vs chop without guessing.
✅ Main Concept
It measures the distance between the fast EMA (14) and slow EMA (50).
When the 14 EMA is above the 50 → bullish distance
When the 14 EMA is below the 50 → bearish distance
Bigger distance = stronger trend
Tiny distance = chop/consolidation
🔧 How It Works (Step-by-Step)
1. Inputs
You can change:
Fast EMA length (default 14)
Slow EMA length (default 50)
Source (close by default)
Thresholds for:
Trend strength
Choppy/no-trend zone
These thresholds are percentages.
Example:
Trend threshold = 0.20 → trend when EMAs differ by ≥ 0.20%
Chop threshold = 0.10 → chop when EMAs differ by ≤ 0.10%
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.