Rolling correlation indicators.
Windowing:
Rolling correlation between two price series.
First asset prices.
Second asset prices.
Central model for demeaning (SMA, EMA, etc.).
Deviation model for scaling (StdDev, MAD, etc.).
Rolling window length.
Array of correlation values per window.
const out = correlationIndicators.bulk.correlateAssetPrices( pricesA, pricesB, ConstantModelType.SimpleMovingAverage, DeviationModel.StandardDeviation, 20); Copy
const out = correlationIndicators.bulk.correlateAssetPrices( pricesA, pricesB, ConstantModelType.SimpleMovingAverage, DeviationModel.StandardDeviation, 20);
Rolling correlation indicators.
Windowing: