bsharpe

McGinley Dynamic Average

Unlike moving averages such as Simple Moving Average or Exponential Moving Average , McGinley Dynamic avoids of most whipsaws and it rapidly moves up or down according to a quickly changing market. It needs no adjusting because it is dynamic and it adjusts itself.
Remove from Favorite Scripts Add to Favorite Scripts
// Based on formula from http://fxcodebase.com/wiki/index.php/McGinley_Dynamic
// Unlike moving averages such as Simple Moving Average or Exponential Moving Average, 
// McGinley Dynamic avoids of most whipsaws and it rapidly moves up or down according to a 
// quickly changing market. It needs no adjusting because it is dynamic and it adjusts itself.

study(title="McGinley Dynamic Average", shorttitle="McGinley", overlay=true, precision=6)
len = input(14, minval=1)
src = input(close, title="Source")

mg = na(mg[1]) ? src : mg[1] + (src - mg[1]) / (0.6 * len * pow(src/mg[1], 4))

plot(mg, color=orange, linewidth=4)
New to Trading View. How can I overlay the McGinley Indicator script onto a Google 5 day/5 minute chart?
+2 Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体中文
繁體中文
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 My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out