strateva.

Articles

Glossary: the terms of a backtest, in one sentence

In this article

The articles and reports on this site use a vocabulary that is not always explained on the spot. This glossary gathers 38 terms, each in a sentence or two, with a link to the guide that develops it.

It does not replace the guides: it is there so you don't lose the thread while reading.

The basics

  • Backtest: A simulation of how a strategy would have done on past data. It measures what would have happened with those rules and assumptions, not what will happen. Guide.
  • Reference (benchmark): What the strategy is compared with: a fund you could have bought, or a simpler version of the same idea. Guide.
  • Exposure: How much of the capital is invested. A strategy that spends time in cash has an average exposure below 100%. Guide.
  • Risk-free rate: The return you would get without taking risk, used as the starting point when measuring a strategy. Many tests set it at 0%.

Return and risk

  • Volatility: How much the returns of a portfolio swing. Usually given as an annual percentage. Guide.
  • Sharpe ratio: Return above the risk-free rate, divided by volatility. It is an estimate and has a margin of error. Guide.
  • Sortino: Like the Sharpe, but counting only the variability of losses. Guide.
  • Maximum drawdown: The largest loss from a peak to the following trough. Guide.
  • Calmar: Annual return divided by the maximum drawdown. Guide.
  • Time under water: The share of time a portfolio spends below its previous peak. Guide.
  • Alpha: What is left of the return after taking out what the market’s movement explains. Guide.
  • Beta: How much a portfolio moves when the market moves. Guide.
  • Information ratio: Extra return over the reference, per unit of risk taken by departing from it. Guide.

Flaws that inflate a backtest

  • Look-ahead: Using in a decision a figure that was not yet known that day. Guide.
  • Survivorship bias: Testing a strategy only on the assets that exist today, leaving out those that disappeared. Guide.
  • Overfitting: Fitting the rules to the past so closely that they stop working outside it. Guide.
  • Selection bias: Keeping the best of many variants tried and presenting its result as if it were the only attempt. Guide.
  • Overlapping labels: When the answer a model learns spans several days and overlaps the test period. Guide.

Costs and execution

  • Turnover: How much of the portfolio is bought and sold in a period. Guide.
  • Slippage: The difference between the price you expected and the price the order was executed at. Guide.
  • Break-even cost: The cost per trade at which a strategy’s edge disappears. Guide.

How it is tested

  • Out-of-sample: Data that was not used to design or tune the strategy. Guide.
  • Walk-forward: Fitting the strategy on one stretch, testing it on the next and repeating forward through time. Guide.
  • Purging and embargo: Rows left out between training and test so the answer cannot leak through. Guide.
  • Block bootstrap: Replaying history with consecutive stretches of the real returns, to see how much the result could have varied. Guide.
  • Permutation Monte Carlo: Shuffling the order of the same returns, to see how much of the drawdown depended on the sequence. Guide.
  • Parameter stability: Checking that the result holds when the parameters are moved a little. Guide.
  • Frozen scope: What is put in writing before running a test and not touched afterwards. Guide.

The statistics of a result

  • Confidence interval: The range of values compatible with the data. A wide 95% interval means the number is known imprecisely. Guide.
  • Standard error: A measure of how much an estimate would vary if repeated on another sample. Guide.
  • t-statistic: How many times larger a difference is than its margin of error. Above 1.96 it is usually taken to be distinguishable from chance. Guide.
  • p-value: The probability of seeing a result at least that extreme if there were no effect. Guide.
  • Bonferroni, Holm and Benjamini-Hochberg: Corrections to the p-value when many tests have been run at once. Guide.
  • Deflated Sharpe Ratio (DSR): A Sharpe corrected for the number of variants tried before choosing one. Guide.
  • PBO: The probability that the variant that won in one part of the history ends below the median in the other. Guide.

The report

  • Evidence hash: A fingerprint computed over the content of the evidence. If it matches when recomputed, nothing has been modified. Guide.
  • Reconciled: Every figure in the report has been recomputed from the data and matches the stored one. Guide.
  • Unsigned draft: A report whose evidence carries no verified signature and does not come from a sealed run. Guide.

How to use this glossary

The definitions are deliberately short and leave nuances out. If a figure in a report depends on one of these terms, the linked guide explains how it is computed, what it assumes and when it misleads.

If you want someone to review a backtest of yours by these criteria, that is the quantitative validation. At Strateva we validate strategies in stocks, ETFs, spot crypto and spot FX, always unleveraged and with no margin.


Educational and research content. Not investment advice.

All articles

CONTACT

Tell me about your strategy. I will say whether it fits within 48 business hours.

Tell me what you want checked, the asset, the frequency and what you have: rules, a report or code. I will tell you whether it fits and which plan it would be.

What to include in your email

  • Market, instruments and frequency (Spot only).
  • What you want checked, and the period.
  • Language and approximate code size, without pasting the code.
  • What data you have, and whether you need an NDA.

Do not send private code, keys or passwords.

stan@strateva.ai

Reply within 48 h (business days). No private material in the first message. No obligation to commission work.

Who replies

I am Filip Stanciu. I have an MSc in Quantitative Finance from the University of Alcalá, a degree in Finance from the Complutense University of Madrid, and a MiFID II certificate. I have worked in quantitative research for an asset manager, validating stock and ETF strategies. I read and reply to every email myself.

I am not a certification body and I am not a large team. I am one person, and I say so.

Nicolae Filip Stanciu