The settings by name, each one optional where the positional form's is.
https://screamer.readthedocs.io/en/latest/functions_ew/EwSpread.html for the full reference.
EW hedge-adjusted residual x - EwBeta(x, y) * y.
Optionalcom: number | null
Center of mass c, giving alpha = 1 / (1 + c). Must be positive. Give exactly one of com, span, halflife and alpha.
Optionalspan: number | null
Span s in samples, giving alpha = 2 / (s + 1). Must be greater than 1. Give exactly one of com, span, halflife and alpha.
Optionalhalflife: number | null
Half-life h in samples, giving alpha = 1 - exp(-ln(2) / h). Must be positive. Give exactly one of com, span, halflife and alpha.
Optionalalpha: number | null
Smoothing factor, with 0 < alpha < 1; a larger alpha gives recent samples more weight. Give exactly one of com, span, halflife and alpha.
https://screamer.readthedocs.io/en/latest/functions_ew/EwSpread.html for the full reference.
EW hedge-adjusted residual x - EwBeta(x, y) * y.