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%
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.