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

Re: Bill Blau Book - User Functions



PureBytes Links

Trading Reference Links

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