PyInvesting

Backtest methods

Choose a backtest

Choose a guided method to test an established investment rule.

Guided methods

Start from an established approach

Choose the question you want to investigate. Each method makes different assumptions; historical results do not establish future profitability.

Company measures

Fundamentals

Rank companies using financial and valuation measures at each rebalance.

Choose fundamentals

Price levels and risk

Breakout trading

Test entries after prices cross defined levels, with explicit exit and risk rules.

Choose breakout trading

Match the method to your question

Choose the decision rule before comparing historical results.
Research questionMethodWhat to check
How would fixed portfolio weights behave?Strategic allocationTarget weights, rebalancing, currency and benchmark.
Which eligible instruments rank strongest?Relative strengthRanking and trend eligibility are different decisions.
When does a price-trend rule hold an instrument?Moving averageAverage type, period, entry and exit assumptions.
Which companies rank well on accounting measures?FundamentalsInformation dates and historical universe coverage.
How do price-level entries and exits behave?Breakout tradingEntry/exit windows, sizing, risk rules and overfitting.

Screening examines stored current company measures; it does not itself simulate a historical portfolio. Explore screening exercises before building a universe.