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%
Skrip sumber terbuka
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.
Penafian
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.
Skrip sumber terbuka
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.
Penafian
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.