Country code(s) for business calendar (holidays, resampling). Default "SE".
ReadonlydatesReadonlyinstrumentReadonlynameReadonlytimeseriesReadonlyvaluesFilters tsdf to retain only business days. Mutates in place.
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.
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.