screamer.js
    Preparing search index...

    Function EwSpread

    • EW hedge-adjusted residual x - EwBeta(x, y) * y.

      Parameters

      • options: EwSpreadOptions

        The settings by name, each one optional where the positional form's is.

      Returns ScreamerOp

    • EW hedge-adjusted residual x - EwBeta(x, y) * y.

      Parameters

      • 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.

      Returns ScreamerOp