DEV Community

Cover image for Same strategy, better returns in 30 days than in a full year. Why?
AlgoRover
AlgoRover

Posted on Originally published at blog.algorover.ai on

Same strategy, better returns in 30 days than in a full year. Why?

Backtest Validation

Earlier losses can offset recent gains, while a fresh backtest resets capital and positions. Compare the account path before comparing 30-day and full-year returns.

Your strategy made more in the last 30 days than across the whole year. Start with two checks: did earlier losses offset the recent profit, and did both backtests enter that month with the same capital and positions? A fresh 30-day run starts a new account path. The full-year run arrives with its earlier gains, losses and open trades already attached.

In strategy backtesting, compare 30-, 90- and 365-day results against the same strategy revision, market, bar interval and cost assumptions. In AlgoRover, keep those settings beside the results. Cumulative return, annualized return and monthly performance answer different questions; the report becomes useful when each number has a clear meaning.

Is the difference caused by earlier losses or a different starting state?

User · simulated conversation I tested the same strategy over 30, 90 and 365 days. The last 30 days look better than the whole year. Is the report wrong? AI First break the full-year run into months. Earlier losses may have offset the last month's profit. Then check the end date, strategy revision, instrument, bar interval, fees, slippage and initialization settings across the independent runs. The 30-day backtest may start flat. The full-year account may enter the same date holding a position, Ask where each run starts

The same strategy rules can produce different behavior when starting capital, starting positions or prior strategy state differ.

Use an independent 30-day run to ask what happens when the strategy starts fresh on that date. Use the original full-year run to ask what that continuous account earned during the month.

Can you add short backtests together to reproduce a full year?

User Can I add the short-period returns to recover the annual result? AI Check whether every segment refills the account, clears positions and resets state. If so, you are combining separate fresh-start experiments. A continuous account also compounds. In this illustrative example, capital rises 10% and then falls 10%: 100 becomes 110, then 99. The combined return is −1%. Stage Capital Calculation Start 100 Common starting point First segment: +10% 110 100 × 1.10 Second segment: −10% 99 110 × 0.Preserve the account path before splitting the calendar

A continuous run shows how one account traveled through the year. Independent windows show what changes when the starting date changes. Write down which experiment each result represents.

Capital paths: 100 rises to 110 and then falls 10% to 99; a fresh run starts the same declining segment at 100 and finishes at 90.
Illustrative example: the same −10% segment ends at 99 or 90 because it starts at 110 or 100.

Why does a 5% return over 30 days become about 81.1% annualized?

User The account only gained a little in a month. Why is the annualized figure so much higher? AI Annualization scales a period's return to a one-year equivalent. A common daily-compounding formula is (1 + period return) raised to (365 ÷ days), minus 1. For a 5% gain over 30 days, 1.05 raised to 365/30, minus 1, is about 81.1%. The observed test still covers 30 days, with a 5% period return. User Should I put the period return and number of days beside the annualized return? AI Add completed traKeep the converted figure beside the observed result

Annualization makes different test lengths easier to compare on a common scale. Short samples still need their actual market coverage, trade count and account fluctuations alongside that figure.

Ask AI to compare periods, costs and drawdowns

User Ask AI with this prompt Copy Compare this strategy's 30-, 90- and 365-day backtests. List the revision, dates, starting capital, starting positions, sizing rules, fees, slippage assumptions, cumulative return, annualization definition, completed trades and maximum drawdown. Separately break down monthly performance from the same full-year run. AI This separates fresh-start window tests from monthly changes in one continuous run. Differences can then be traced to market conditions, the positGive each number one job

Short windows show recent conditions; longer windows cover more market phases. The useful question is where the results diverged, and what the account was carrying into that point.

Backtest periods and annualized returns: common questions

How should I choose a backtest period for a fair comparison?

Define the question first. Fix the strategy version, instrument, interval, end date, starting capital and cost assumptions. Separate independent starting-date tests from monthly segments of the same continuous run.

Can starting capital and existing positions change backtest returns?

Yes. Equity-based sizing changes subsequent order amounts as capital changes. Positions carried into a period also affect entries and exits. Record the starting state alongside the return.

Does a high short-term annualized return mean the strategy is better?

Read it alongside the actual period return, completed trades, maximum drawdown, fees and slippage assumptions. Annualization converts a sample; it does not extend that sample's observed history.

Do stronger 30-day results prove backtest overfitting?

A difference between windows alone does not establish overfitting. If the same data was repeatedly used to select parameters and judge them, add out-of-sample testing on unused data and compare different market conditions.

Read next

What to check in a backtest

Can you trust a backtest selected from many parameter sets?

Explore AlgoRover Research

Sources

QuantConnect: research design and overfitting

Next step

Test the strategy yourself

Use AlgoRover Research to check costs, drawdown, and performance across market periods before you keep testing.

Try AlgoRover Research Follow us on X Follow us on Reddit

Top comments (0)