michaelandrewhart

% Above/Below EMA

104 2 9
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?
Reply
Good approach. FYI: Your idea is basically the same as this one:

"Lazy Long Term Signals"
Lazy Long Term Signals
Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
中国
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out