Generalization for sliding window based indicators and typo fix.