lowValue = lowIter.next();
closeValue = closeIter.next();
compare = highValue < lowValue || closeValue > highValue || closeValue < lowValue;
if (compare) {
if (_mode == CalculationMode.STRICT) {
throw new TimeSeriesException("Not all values in the high series were greater than the values in the low series");
}
count++;
}
}
final double percent = count / size;
if (percent > _percentBadDataPoints) {
throw new TimeSeriesException("Percent " + percent + " of bad data points is greater than " + _percentBadDataPoints);
}
}