Has the cooldown period for a portfolio elapsed?

cooldown_elapsed(last_rebalance, cooldown_days)

Arguments

last_rebalance

a POSIXct timestamp of the last successful rebalance activity

cooldown_days

number of cooldown days post a successful rebalance specified in the portfolio model

Value

TRUE/FALSE

Examples

cooldown_elapsed(lubridate::now() - lubridate::days(30), 35)
#> [1] FALSE