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

    Interface CommodityChannelIndexOptions<S, Output>

    interface CommodityChannelIndexOptions<
        S extends SeriesSchema,
        Output extends string,
    > {
        close?: NumericColumnNameForSchema<S>;
        high?: NumericColumnNameForSchema<S>;
        low?: NumericColumnNameForSchema<S>;
        output?: Output;
        period?: number;
    }

    Type Parameters

    • S extends SeriesSchema
    • Output extends string
    Index

    Properties

    close?: NumericColumnNameForSchema<S>

    Close column. Default 'close'.

    high?: NumericColumnNameForSchema<S>

    High column. Default 'high'.

    low?: NumericColumnNameForSchema<S>

    Low column. Default 'low'.

    output?: Output

    Name of the appended column. Default 'cci'.

    period?: number

    Look-back in bars. Default 20 (ChartIQ's; Lambert's original and TA-Lib's own default are both shorter — see the docstring).