michaelandrewhart

% Above/Below EMA

96 2 7
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)
ChartArt
a year ago
Good approach. FYI: Your idea is basically the same as this one:

"Lazy Long Term Signals"
Lazy Long Term Signals
Reply
Gbyte5
a year ago
how to make a minute?
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out