Pseudorandom

McClellan Summation Index

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 Summation Index", shorttitle="MCSI")
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(maout, title="MCSI", color=red)
United States
United Kingdom
India
Deutschland
España
France
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 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