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

Re: Bill Blau Book - User Functions



PureBytes Links

Trading Reference Links

At 03:35 PM 5/11/98 EDT, you wrote:
>In a message dated 98-05-11 14:57:39 EDT, Peter_Gibson@xxxxxxxxxxxxxx writes:
>
><< 
> Has anyone worked through the examples in Bill Blau's book "Momentum,
> Direction and Divergence"?
> 
> At page 121 he defines a user function MDI as:
> 
> MDI=XAverage(XAverage(Price-XAverage(Price,r),s),u);
> 
> (four inputs)
> 
> On page 122 he uses this function in an indicator as follows:
> 
> Value1=MDI(Close,r,5);
> 
> this doesn't work because MDI is expecting 4 inputs.
> 
> Anyone figured out the correct way to write the function on page 121 and the
> indicator on page 122?
> 
> 
>  >>
>You need to add the "u" input on pg 122 where the misprint is.  It should
>read:
>
>Inputs:  r(32),ZeroLine(0),u(1);
>Value1 = MDI((close,r,5,u);
>Value2 = XAverage(MDI(close,r,5,u),5);
>
>BobR
>

I believe if you look at pp.48-49 where he defines the indicator, you
will see that MDI=XAverage(Price-XAverage(Price,r),s) is what is
intended for p.121, and based on that change, then p.122 is correct.

rich



~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rich Estrem, Tucson,Az.
estrem@xxxxxxxxxxxxx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~