% Above/Below EMA

129 2 14
Shows current price percentage above or below EMA (default is 250)
Remove from Favorite Scripts Add to Favorite Scripts
//  Copyright by michaelandrewhart, 8/18/15
// Percent difference between price and MA
study(title="Percent difference between price and MA")
Length = input(250, minval=1)
xEMA = ema(close, Length)
nRes = (close - xEMA) * 100 / close
plot(nRes, color=blue, title="PD MA")
h0 = hline(10)
h1 = hline(0)
h2 = hline(-10)
fill(h0, h1, color=green, transp=80)
fill(h1, h2, color=red, transp=80)
how to make a minute?
Good approach. FYI: Your idea is basically the same as this one:

"Lazy Long Term Signals"
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
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