Expand description
Price-path analysis: solution struct, period series, and pretty tables.
§Conventions
- Prices must be strictly positive for log returns, CAGR, and drawdowns.
- Volatility uses sample standard deviation (
n − 1). - Annualization: pass
periods_per_yearexplicitly (e.g.252.0daily,12.0monthly). - Sharpe / Sortino: excess return and volatility share the same period units.
- Max drawdown is a positive fraction (0.25 = 25% peak-to-trough).
Structs§
- Price
Path Options - Options for
price_path_solution. - Price
Path Period - One step between consecutive prices.
- Price
Path Series - Period series for a price path. Derefs to
[PricePathPeriod]. - Price
Path Solution - Full analysis of an ordered price path.
Enums§
- Return
Kind - Kind of return used for mean / vol / Sharpe on the path.
Functions§
- price_
path_ solution - Build a
PricePathSolutionsummarizing returns, risk, and period detail for a price path.