michaelandrewhart

% Above/Below EMA

99 2 8
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)
Good approach. FYI: Your idea is basically the same as this one:

"Lazy Long Term Signals"
Lazy Long Term Signals
Reply
how to make a minute?
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder 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 Account and Billing Sign Out