Glossary
Backtesting terms, in plain English.
38 words you’ll meet when you test a trading strategy, explained without the jargon.
B
- Backtest
Running a strategy’s rules over historical data to see how it would have performed. It shows what would have happened under the test’s assumptions, not what will happen next.
See also: Out-of-sample data, Overfitting
C
- Commission and fees
What the broker and the exchange charge for each trade, usually per contract for futures. Small on one trade, but large for a strategy that trades often, so a backtest without them flatters it.
- Continuous contract
Futures contracts expire, so the data for a long backtest joins one contract after another into a single series. When the switch happens and how the contracts are joined (for example, adjusted for the price gap at each roll, or not) change the prices a strategy sees, so it matters which method a test uses.
See also: Rollover
- Curve fitting
Traders’ name for overfitting: bending a strategy’s rules and settings around past prices until the backtest looks good.
D
- Daily loss limit
A prop firm rule that caps how much an account can lose in a single day. Depending on the firm, breaking it either ends the attempt or stops trading for the rest of the day, even if the strategy is profitable overall.
See also: Prop firm challenge, Trailing drawdown
- Data snoopingalso: Multiple testing
The bias that comes from testing many ideas or versions on the same data and keeping the best one. The more you test, the more likely the winner is simply the luckiest.
See also: Deflated Sharpe ratio, OverfittingGuide: Real edge or just luck?
- Deflated Sharpe ratio
A statistic, developed by researchers David Bailey and Marcos López de Prado, that estimates how likely it is that a strategy’s Sharpe ratio reflects real skill, after adjusting for how many strategies were tried, how much data there is and unusual return patterns. It keeps the best of many tries from being mistaken for skill.
See also: Sharpe ratio, Data snooping
- Discretionary trading
Trading where decisions involve judgment rather than fixed rules. To backtest it honestly, the judgment has to be written down as precise rules first.
See also: Systematic strategy
- Drawdown
A fall in account value from a previous high, lasting until a new high is reached.
See also: Maximum drawdown
E
- Edge
A repeatable advantage: a reason a strategy’s average trade should make money after costs, beyond what luck alone would produce.
See also: ExpectancyGuide: Real edge or just luck?
- Expectancy
The average amount a strategy makes or loses per trade. It combines the win rate with the average win and the average loss, which is why a high win rate alone says little.
See also: Win rate, Profit factor
F
- Fill
The execution of an order. A realistic backtest only assumes fills that could really have happened; for example, a limit order isn’t always filled just because price touched it.
See also: Slippage
- Forward testing
Running a finished strategy on new market data as it arrives, without changing it, either on paper or with small real size. It checks that the strategy behaves live the way it did in the backtest.
See also: Paper trading
I
- In-sample data
The part of history used to build and tune a strategy. Results on it are almost always flattering, because the strategy was shaped to fit it.
See also: Out-of-sample data
L
- Look-ahead bias
When a backtest uses information that wouldn’t have been available at the time of the trade, such as using a bar’s closing price to decide an entry at its open. It inflates results in a way no one can repeat live.
M
- Market regime
A stretch of time with a particular character, such as trending or choppy, calm or volatile. Many strategies work in some regimes and not others.
See also: Robustness
- Maximum drawdown
The largest fall from a high to a low over a period. A backtest shows one path through history; a future drawdown can be deeper.
See also: Drawdown, Monte Carlo simulation
- Monte Carlo simulation
Shuffling the order of a strategy’s trades, or resampling them, thousands of times to see the range of paths it could have taken, especially how deep its drawdowns could realistically get. It assumes trades are independent, so it can understate drawdowns when losses come in clusters.
See also: Maximum drawdown
O
- Out-of-sample data
History the strategy didn’t see while it was being built or tuned, used to check whether it still holds up.
See also: In-sample data, Sealed testGuide: Real edge or just luck?
- Overfitting
Tuning a strategy so closely to past data that it captures random noise rather than a pattern that repeats. It looks great on the data it was built on and disappoints on new data.
See also: Curve fitting, Data snoopingGuide: Real edge or just luck?
P
- Paper trading
Simulated trading with no real money, usually on live prices. Useful for practicing and checking execution, but simulated fills can be kinder than real ones.
See also: Forward testing, Fill
- Parameter
A setting in a strategy’s rules, such as the length of a moving average, the size of a stop or the time window it trades.
See also: Parameter stability
- Parameter stabilityalso: Parameter sensitivity
How much results change when the settings are nudged up and down. A real edge usually survives small changes; one that only works at an exact value is a sign of overfitting.
See also: Parameter, OverfittingGuide: Real edge or just luck?
- Pine Script
A scripting language for writing indicators and strategies on a popular charting platform. Traders use it to chart and automate rules themselves.
- Profit factor
Gross profit divided by gross loss. Above 1 means the winning trades made more in total than the losing trades lost. Like most backtest numbers, it’s easy to inflate by overfitting.
See also: Expectancy, Win rate
- Prop firm challengealso: Evaluation
A test in which a trader has to reach a profit target while staying inside rules such as a daily loss limit and a maximum loss, to qualify for a funded account. Passing depends on the path, not just the final profit.
See also: Daily loss limit, Trailing drawdown
R
- Risk of ruin
The chance that a run of losses takes an account down to the point where trading has to stop.
See also: Maximum drawdown
- Robustness
How well a strategy holds up when the test changes: new data, slightly different settings, higher costs or other market conditions. A strategy that isn’t robust is hard to trust.
See also: Parameter stability, Walk-forward analysis
- Rollover
Moving a futures position, or a data series, from a contract that’s about to expire to the next one.
See also: Continuous contract
S
- Sample size
How many trades a result rests on. More trades make luck less likely, but there’s no magic number: trades from one kind of market add less evidence than trades spread across many.
See also: Statistical significance
- Sealed testalso: Holdout
A final stretch of history set aside before any work starts and used only once, on the finished strategy. Looking at it repeatedly turns it into one more piece of tuning data.
- Sharpe ratio
Return above a risk-free rate, divided by how much returns swing around (their volatility). A common measure of return per unit of risk. A high Sharpe ratio in a backtest is easy to get by overfitting.
See also: Deflated Sharpe ratio
- Slippage
The difference between the price you expected and the price you actually got. It’s usually a cost, and it tends to grow in fast markets and when there are few orders to trade against.
See also: Fill, Commission and fees
- Statistical significance
A way of judging whether a result would be unlikely if there were no real effect, only luck. It only means something if you also account for how many things you tested.
See also: Data snooping, Sample size
- Systematic strategyalso: Mechanical strategy
A strategy with fixed rules, so the same market situation always leads to the same decision. That’s what makes it possible to backtest.
See also: Discretionary trading
T
- Trailing drawdown
A maximum-loss limit that rises as the account makes new highs, so the allowed loss is measured from the best point rather than the starting balance. Common in prop firm evaluations; at many firms it stops rising once it reaches the starting balance, and some count open profits.
See also: Daily loss limit, Prop firm challenge
W
- Walk-forward analysisalso: Walk-forward testing
Tuning a strategy on one window of history, testing it on the next unseen window, then sliding forward and repeating. It shows whether an edge holds across time rather than in one lucky split.
- Win rate
The share of trades that make money. On its own it says little: a strategy can win most of its trades and still lose money if its losses are much bigger than its wins.
See also: Expectancy