[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

McGinley Dynamics



PureBytes Links

Trading Reference Links

Hi all

I have Kaufmans  book "trading systems and methods"
page 441 talks about McGinley Dynamics and has a formula for his adaptive
moving average.
I am trying to code it but i am stuck cause it gives me a flat line :O( when
i plot it.
Can anybody see an error , or is it a misprint ? or does someone have
another version they can share with me?


here is my code

{MD or camsMcGinleyDynamcMA

k is a constant , included here as input for optimization standard is .6
}

inputs: price(close),
	 period( 10 ),
	 k( .06 ) ;

	 vars:camsMcGinleyDynamcMI(0),
  MD(	 0 ) ,
  		yestvalue(0);

if K <> 0 {and camsMcGinleyDynamcMI[ 1 ] <> 0}  and currentbar > 50 then
begin
	if camsMcGinleyDynamcMI[ 1 ] = 0 then yestValue = 1;
	if camsMcGinleyDynamcMI[ 1 ] <> 0 then yestValue = camsMcGinleyDynamcMI[
1 ];

  camsMcGinleyDynamcMI = yestvalue + ( price - yestvalue) / (K * period *
power( ( price / yestvalue ), 4 ));
plot1(camsMcGinleyDynamcMI,"CMDMA");
end;





here is the exerpt/formula out of the book......
MD=MD[1]+(close-MD[1]/(k*P*@power((close/MD[1],4)));

Meaning/where
MD is current McGinley Dynamic
MD[1] is yesterdays MD
k isa constant =.6 (60% of selected moving average period p)
p is the moving average period
close is the closing price

Any help appreciated
Cheers
Cameron






-----Original Message-----
From: unicorn@xxxxxxxxx [mailto:unicorn@xxxxxxxxx]On Behalf Of Alex
Matulich
Sent: Tuesday, February 03, 2004 9:15 AM
To: VK
Cc: omega-list@xxxxxxxxxx
Subject: Re: AW: e-mini day trading systems


>||On the other
>||hand, maybe you know of an alternative development platform
>||for 100% mechanical emini systems. I am purely focused on
>||Tradestation because it meets the most of my needs, but I'm
>||opened to other ideas.
>
>www.wealth-lab.com
>
>1. Stand alone system development software.
>2. Automated trading execution software
>3. One of the largest system trading community on the web (over 13,000)
>4. One of the largest selection of public systems available (over 1,000)

But until it is capable of updating indicators every tick, it's not
particularly useful for intraday trading.  At least not for the
strategies I've developed.

-Alex


---
---