This function simulates the payoff of different kinds of dynamic strategies. Depending on the option chosen, the output may be concave or convex.
simulate_strategy( budget = 10000, horizon = 6/12, step = 1/252, mu = 0.2, sigma = 0.4, rf = 0.04, n_simul = 10000, strategy = c("max_utility", "buy_hold", "cppi", "obpi"), allocation = 0.5, floor = budget * 0.9, multiple = 10, aggressiveness = 0.5 )
budget | A |
---|---|
horizon | A |
step | A |
mu | A |
sigma | A |
rf | A |
n_simul | A |
strategy | A |
allocation | A |
floor | A |
multiple | A |
aggressiveness | A |
An S3 list
of the DynamicStrategies
class.
simulate_strategy()#> << Dynamic Strategy >> #> time : 0 0.003968254 0.007936508 ... 0.4920635 0.4960317 0.5 #> portfolio_series : 10000 9985.648 10025.4 ... 9821.782 9963.535 9867.884 #> market_series : 10000 9969.708 10047.5 ... 9243.591 9508.94 9324.857 #> percentage_series: 0.5 0.5 0.5 ... 0.5 0.5 0.5 #> underlying_index : 9324.857 9966.653 5856.154 ... 6394.964 8122.401 9655.367 #> portfolio_value : 9867.884 10192.31 7803.852 ... 8175.575 9197.936 10015.56