Ease of Movement with Colors v1

A slightly enhanced Ease of Movement indicator:
  • Draws a line at 0
  • Colors the line based on ratio of current to the highest for the last 150 bars (changeable)
Remove from Favorite Scripts Add to Favorite Scripts
study(title="blackdog6621s Ease of Movement with Colors v1", shorttitle="EOM Colors v1", precision=1)
div = input(10000, title="Divisor", minval=1)
length = input(14, minval=1)
colorLookback = input(150, minval=1)
eom = sma(div * change(hl2) * (high - low) / volume, length)

compareMax = eom >= 0 ? highest(eom, colorLookback) : -lowest(eom, colorLookback)
bottomThird = abs(eom) <= (compareMax * 0.4)
midThird = abs(eom) <= (compareMax * 0.8)
plot(eom, color=bottomThird ? red : midThird ? yellow : green)

hline(0, title="Midline", color=gray, linestyle=dashed)
actually a really simple and useful addition to the EOM, thanks for this idea
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out