Trading glossary
Out of sample testing
Trading involves risk. You could lose more than your deposit.
Out of sample testing holds back part of a price record while a rule is being shaped, then runs the finished rule over the held back part, so the result is measured on data the rule never saw.
A partition of the record into a stretch used for development and a stretch reserved for assessment. The rule is shaped, adjusted and finalised on the first stretch only; the second is opened once and the frozen rule is run over it. The more demanding version rolls the partition forward through the record, refitting on each earlier window and examining the next, which produces a sequence of assessments rather than one.
It exists to answer a question a plain backtest cannot. An improvement produced by adjustment carries no information about which of two things produced it, the rule or the record, and once the number of things being adjusted approaches the number of observations available, a rule can be shaped to describe the record almost exactly. A description of a record is not a rule, and the held back stretch is the only evidence available that the description generalises.
The limit is structural, and the practitioners who use the technique are usually the first to state it. A held back stretch can only be used once: the moment a disappointing result sends anyone back to adjust the rule, that stretch has entered the development sample and the partition no longer means what it did. Nothing in the method prevents that, which is why the discipline is a matter of record keeping rather than of arithmetic.
In the curriculum
Taught in 1 lesson.
Part of an ordered curriculum of 139 lessons across 10 modules, free and with nothing behind a sign-up.
Get started
Open your account in four steps.
A clear path from sign-up to your first trade, in four steps.
No depositNo documents
01/ 04step 1 of 4
Register
A few details to get started.
No deposit to open
02/ 04step 2 of 4
Verify
Confirm your identity, securely.
ID and proof of address
03/ 04step 3 of 4
Fund
Add money by bank transfer or card.
From $0
04/ 04step 4 of 4
Trade
Go live on the platform you already know.
MetaTrader 5



