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

    Interface MovingAverageCrossOptions<S, Output>

    interface MovingAverageCrossOptions<
        S extends SeriesSchema,
        Output extends string,
    > {
        column?: NumericColumnNameForSchema<S>;
        fastPeriod?: number;
        maType?: MaType;
        output?: Output;
        slowPeriod?: number;
    }

    Type Parameters

    • S extends SeriesSchema
    • Output extends string
    Index

    Properties

    column?: NumericColumnNameForSchema<S>

    Source column. Default 'close'.

    fastPeriod?: number

    Fast average length in bars. Default 10.

    maType?: MaType

    Which moving average the two lines are. Default 'sma'; any MaType.

    output?: Output

    Name of the appended column. Default 'maCross'.

    slowPeriod?: number

    Slow average length in bars. Default 30.