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

Re: McGinley Dynamics



PureBytes Links

Trading Reference Links

One more time to get it right, didn't copy the entire line in last post.

    MD = MD[ 1 ] + ( c - MD[ 1 ] ) / (K * period * power( ( c / MD[
1 ] ),4 ) )

----- Original Message -----
From: "BobR" <bobrabcd@xxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Friday, December 06, 2002 2:08 PM
Subject: Re: McGinley Dynamics


> TS2000i needs some parenthesis in the denomenator otherwise a straight
line
> is the result.  They are in the book but were left out in the omega posts.
>
> MD = MD[ 1 ] + ( c - MD[ 1 ] ) / (K * period * power( ( c / MD[ 1 ] )),
>
>
> ----- Original Message -----
> From: "Benjamin Blanco" <ezlang@xxxxxxxxxxxxxxxxxx>
> To: "!omega-list" <omega-list@xxxxxxxxxx>
> Sent: Friday, December 06, 2002 1:39 PM
> Subject: Re: McGinley Dynamics
>
>
> > Usually, a technique that references a previous value of itself will
> specify
> > the starting value of MD on the first bar.  For example:
> >
> > inputs: k( .6 ), period( 9 ) ;
> > vars: MD( 0 ) ;
> >
> > if CurrentBar = 1 then
> >   MD = Close { close in this illustration could be replaced with any
> > appropriate value }
> > else begin
> >   if K <> 0 and MD[ 1 ] <> 0 then
> >     MD = MD[ 1 ] + ( c - MD[ 1 ] ) / K * period * power( ( c / MD[
1 ] ),
> > 4 ) ;
> > end ;
> >
> > plot1( MD, "MD" ) ;
> >
> >
> > Best regards,
> >
> > Benjamin Blanco,
> > EasyLanguage Specialist
> > ( former TradeStation Technologies, Inc. employee of six years )
> > http://www.benjaminblanco.com/
> >
> > EasyLanguage is a registered trademarks of TradeStation Technologies,
Inc.
> >
> > ----- Original Message -----
> > From: "Clyde Lee" <clydelee@xxxxxxxxxx>
> > To: "Benjamin Blanco" <ezlang@xxxxxxxxxxxxxxxxxx>; "!omega-list"
> > <omega-list@xxxxxxxxxx>
> > Sent: Friday, December 06, 2002 9:44 AM
> > Subject: Re: McGinley Dynamics
> >
> >
> >
> >
> > How will MD[1] ever get to be anything but Zero.
> >
> >
> > - - - - - - - - - - - - - - - - - - - - -  - - - - - - -
> > Clyde Lee   Chairman/CEO          (Home of SwingMachine)
> > SYTECH Corporation          email: clydelee@xxxxxxxxxxxx
> > 7910 Westglen, Suite 105       Office:    (713) 783-9540
> > Houston,  TX  77063               Fax:    (713) 783-1092
> > Details at:                      www.theswingmachine.com
> > - - - - - - - - - - - - - - - - - - - -  - - - - - - - -
> >
> > ----- Original Message -----
> > From: "Benjamin Blanco" <ezlang@xxxxxxxxxxxxxxxxxx>
> > To: "!omega-list" <omega-list@xxxxxxxxxx>
> > Sent: Thursday, December 05, 2002 11:07 PM
> > Subject: Re: McGinley Dynamics
> >
> >
> > > Here is a sample of the EasyLanguage you could use to check for
division
> > by
> > > zero.
> > >
> > > inputs: k( .6 ), period( 9 ) ;
> > > vars: MD( 0 ) ;
> > >
> > > if K <> 0 and MD[ 1 ] <> 0 then
> > >   MD = MD[ 1 ] + ( c - MD[ 1 ] ) / K * period * power( ( c / MD[
1 ] ),
> > 4 )
> > > ;
> > >
> > > plot1( MD, "MD" ) ;
> > >
> > >
> > > Best regards,
> > >
> > > Benjamin Blanco,
> > > EasyLanguage Specialist
> > > ( former TradeStation Technologies, Inc. employee of six years )
> > > http://www.benjaminblanco.com/
> > >
> > > EasyLanguage is a registered trademarks of TradeStation Technologies,
> Inc.
> > >
> > > ----- Original Message -----
> > > From: "Trey Johnson" <dickjohnson3@xxxxxxxxxxxxxx>
> > > To: <omega-list@xxxxxxxxxx>
> > > Sent: Thursday, December 05, 2002 11:04 AM
> > > Subject: McGinley Dynamics
> > >
> > >
> > > The code for this indicator in Kaufman's book, "Trading Systems and
> > > Methods," is the following:
> > >
> > > inputs: k(.6),period(9);
> > > vars:MD(0);
> > >
> > > MD=MD[1]+(c-MD[1])/K*period*power((c/MD[1]),4);
> > >
> > > plot1(MD,"MD");
> > >
> > > However, it doesn't work. I keep getting the error message: "attempt
to
> > > divide by zero." I tried a couple of different things and still can't
> get
> > it
> > > to work. Any suggestions?
> > > Thanks in advance,
> > > Trey Johnson
> > >
> >
> >
> >
> >
> >
>