Pseudorandom

McClellan Osci

393 0 84
Based on the description in Murphy, Tech. Analysis of Financial Markets. Wikipeadia also has a good description:
https://en.wikipedia.org/wiki/McClellan_oscillator
Without warranty - please trade based on your own analysis and let me know if you find any errors in the script.
Remove from Favorite Scripts Add to Favorite Scripts
study(title = "McClellan Osci", shorttitle="MCO")
sym(s) => security(s, period, close)
difference2 = sym("ADVN") - sym("DECN")
advnema19 = ema(difference2, 19)
advnema39 = ema(difference2, 39)
osci = advnema19-advnema39
maout = cum(osci)
plot(osci)
band1 = hline(100)
band0 = hline(-100)
fill(band1, band0) 
United States
United Kingdom
India
Deutschland
España
France
Việt Nam
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
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 Support Priority Support Report Issue Ideas Published Followers Following Private Messages Chat Sign Out