STANDARD_ERROR: IndicatorDescriptor = ...

Standard Error: the residual spread of the closes about the least-squares line fitted through them, which is what makes it an error rather than a deviation. Two degrees of freedom go into the fitted slope and intercept, so the divisor is length - 2 and the input cannot go below 3.