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

    Interface MovingAverageOptions<S, Output>

    Options shared by the single-line moving averages. column is the source field (default close); output names the appended column.

    interface MovingAverageOptions<S extends SeriesSchema, Output extends string> {
        column?: NumericColumnNameForSchema<S>;
        output?: Output;
        period: number;
    }

    Type Parameters

    • S extends SeriesSchema
    • Output extends string
    Index

    Properties

    column?: NumericColumnNameForSchema<S>

    Source column to average. Default 'close'.

    output?: Output

    Name of the appended column. Default the study name ('sma' / 'ema'); pass an explicit name to stack several (e.g. sma20, sma50).

    period: number

    Window length in bars (a count, not a duration).