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

Bill Blau Book - User Functions



PureBytes Links

Trading Reference Links

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?