Hi,

If a stoch has a number of equal closes greater than nFastD (argument of
the stochastic function), denMA will have zeros,
which will make the ratio numMA/denMA have NAs in locations other than the
beginning of the vector.
As a result, stoch does not produce a valide result. That is fine, except
that there is no error checking in stoch.

In other words, stoch() does not have enough errors checking in it. It is
possible for it to fail (bring code to a halt) for certain stocks.

   Gordon

	[[alternative HTML version deleted]]

