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

    Interface MovingAverageTypeOptions<S, Output>

    Options for movingAverageMovingAverageOptions plus the shared MA type vocabulary the corpus's ~25 "MA Type" studies expose.

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

    Type Parameters

    • S extends SeriesSchema
    • Output extends string

    Hierarchy (View Summary)

    Index

    Properties

    column?: NumericColumnNameForSchema<S>

    Source column to average. Default 'close'.

    output?: Output

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

    period: number

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

    type?: MaType

    Which moving average. Default 'sma'.