• Creates an array of ZigZag points based on the provided candlestick data and peak detection configuration.

    Parameters

    • candles: ICandle[]

      An array of candlestick data to analyse.

    • lag: number

      The lag value for the peak detection algorithm.

    • threshold: number

      The threshold value for identifying significant price changes.

    • influence: number

      The influence factor for adjusting the impact of recent signals on the algorithm.

    Returns IZigZag[]

    An array of ZigZag points representing significant price changes.

Generated using TypeDoc