An array of candlestick data to analyse
Configuration for zigzag calculation:
An array of ZigZag points with their direction, price, and timestamp
const zigzags = create(candles, {
lag: 5,
threshold: 2.5,
influence: 0.5,
priceMethod: 'extremes'
});
Generated using TypeDoc
Creates an array of ZigZag points based on the provided candlestick data and configuration.
ZigZag points represent significant market turning points by connecting price extremes, filtering out minor price movements. This implementation uses Z-Score algorithm to identify potential turning points in the price series.