Log in to see Cloud of Tags

Wealth-Lab Wiki

McGinley Dynamic Indicator



public McGinleyDynamic(DataSeries ds, int period, string description)
public static McGinleyDynamic Series(DataSeries ds, int period)

Parameter Description

dsData series
periodLookback period


The McGinley Dynamic Indicator is a moving average with a volatility filter designed to further smooth out the price action. It would be used similar to a moving average.


Use it like you would use other moving averages.


The indicator is calculated using the following simplified formula:

Yesterday's EMA + ( ( Today's close - Yesterday's EMA ) / ( Today's close / Yesterday's EMA * 125 ) )


This example compares McGinley Dynamic Indicator with a simple moving average of the same period:

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { private StrategyParameter paramPeriod; public MyStrategy() { paramPeriod = CreateParameter("Period", 10, 2, 100, 2); } protected override void Execute() { int period = paramPeriod.ValueInt; McGinleyDynamic mcgd = McGinleyDynamic.Series( Close,period ); PlotSeries( PricePane, mcgd, Color.Blue, LineStyle.Solid, 1 ); PlotSeries( PricePane, SMA.Series( Close,period ), Color.Red, LineStyle.Solid, 1 ); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

ScrewTurn Wiki. Some of the icons created by FamFamFam.