@pond-ts/financial API Reference
    Preparing search index...

    Interface StochasticMomentumIndexOptions<S, Prefix>

    interface StochasticMomentumIndexOptions<
        S extends SeriesSchema,
        Prefix extends string,
    > {
        close?: NumericColumnNameForSchema<S>;
        high?: NumericColumnNameForSchema<S>;
        longPeriod?: number;
        low?: NumericColumnNameForSchema<S>;
        period?: number;
        prefix?: Prefix;
        shortPeriod?: number;
        signalPeriod?: number;
    }

    Type Parameters

    • S extends SeriesSchema
    • Prefix extends string
    Index

    Properties

    close?: NumericColumnNameForSchema<S>

    The field measured against the range's midpoint. Default 'close'.

    high?: NumericColumnNameForSchema<S>

    High column (the range's upper input). Default 'high'.

    longPeriod?: number

    Span of the first EMA applied to both the numerator and the denominator, in bars. Default 25 (Blau's r).

    low?: NumericColumnNameForSchema<S>

    Low column (the range's lower input). Default 'low'.

    period?: number

    Look-back for the highest high / lowest low, in bars. Default 13 (Blau's q).

    prefix?: Prefix

    Column-family prefix — appends ${prefix} and ${prefix}Signal. Default 'smi'.

    shortPeriod?: number

    Span of the second EMA, applied to the first's output, in bars. Default 2 (Blau's s).

    signalPeriod?: number

    Signal EMA span in bars, taken over the SMI line. Default 3.