Skip to content

The result of backtesting 30 years is different from 5 years? #159

@jacktang

Description

@jacktang

Hello, I play the etf demo and change the backtest_many code as below (for 5 years time window) since my laptop is not very high performance.

ress = sim.backtest_many(
    [make_policy(*key) for key in keys], parallel=True, start_time=pd.Timestamp.today() - pd.Timedelta(f'{365.24*5}d'))

And the plots

image

And the original one for around 30 years time window

image

The portfolio value trend is very similar, but the largest 7 assets are quite different. Especially for cash. Can you explain why it changes so much? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions