Country code(s) for business calendar (holidays, resampling). Default "SE".
ReadonlydatesReadonlyinstrumentReadonlynameReadonlytimeseriesReadonlyvaluesAutocorrelation function for specified lags. If lags is an int, compute ACF from lag 0 through that value (inclusive).
Lag-k autocorrelation of demeaned returns. For price series, returns are derived via pct_change; for return series, values are demeaned. Matches Python openseries autocorr_func.
Filters tsdf to retain only business days. Mutates in place.
Ljung-Box test for autocorrelation at the given lags.
Returns the date when the max drawdown bottom occurs (the date of the lowest point relative to the preceding peak). Returns undefined if no drawdown occurs.
Partial autocorrelation function for specified lags. If lags is an int, compute PACF from lag 0 through that value (inclusive).
Partial autocorrelation at a given lag.
Resamples to business period-end frequency (week, month, quarter, year). Mutates tsdf. Throws on return series (use price series).
OptionallvlZero: stringOptionallvlOne: ValueTypeWorst single calendar month return (business-month-end based). Uses filterToBusinessDays + resampleToPeriodEnd(ME) + min of monthly returns.
StaticfromCreates an OpenTimeSeries from a name, dates array, and values array.
Optionaloptions: {StaticfromCreates an OpenTimeSeries from simulation dateColumns by column index.
Optionaloptions: { columnIndex?: number; countries?: string | string[]; valuetype?: ValueType }StaticfromCreates an OpenTimeSeries from a record or array of {date, value}.
Timeseries of dates and values with methods for risk metrics.