ledgr_calendar() creates the explicit annualization calendar used by metric
contexts. It represents a uniform session model as
trading_days_per_year * bars_per_day.
ledgr_calendar_us_equity() defaults to daily bars and can represent common
minute bars with ledgr_calendar_us_equity(bars_per_day = 390L).
ledgr_calendar_crypto() is explicit crypto calendar support; ledgr does not
infer crypto annualization from ticker symbols.
Usage
ledgr_calendar(
trading_days_per_year,
bars_per_day = 1L,
label = NULL,
source = "custom"
)
ledgr_calendar_us_equity(bars_per_day = 1L)
ledgr_calendar_crypto(bars_per_day = 1L)Articles
vignette("metrics-and-accounting", package = "ledgr")
system.file("doc", "metrics-and-accounting.html", package = "ledgr")