Cheat sheet: testing
Section 11.4 on one page.
- Level 11 Your Trading Plan
- 2 دقائق قراءة
The stages
| Stage | Shows |
|---|---|
| Back-test | Whether fixed rules lost on past prices |
| Forward test on demo | New prices, the routine, the trader |
| Small live size | Real fills and real pressure |
The example system’s six years
| Measure | Before costs | After costs |
|---|---|---|
| Trades | 423 | 423 |
| Win rate | 35.2% | 35.2% |
| Total | +20.2R | −6.5R |
| Expectancy | +0.048R | −0.015R |
| Profit factor | 1.07 | 0.98 |
| Maximum drawdown | 25.8R | 40.1R |
Costs: 0.063R a trade. Longest losing streak: 14. An illustration on prices with no pattern in them.
Errors that flatter
| Error | The example showed |
|---|---|
| No costs | +20.2R |
| Gapped orders filled at their own price | +24.0R |
| Stopping at the best point | +28.5R |
| Future information | +313.4R |
| Best of eight settings, years 1 to 3 | +0.140R a trade, then −0.091R |
Sample size
Margin = 1.96 × √(p × (1 − p) ÷ n).
| Trades | Margin at 35% | Margin at 50% |
|---|---|---|
| 20 | ±20.9 | ±21.9 |
| 100 | ±9.3 | ±9.8 |
| 400 | ±4.7 | ±4.9 |
Trades to detect an edge at a 35% win rate: 88 for 10 points, 350 for 5, 2,185 for 2.
Reading results
- Expectancy = total R ÷ trades.
- Profit factor = money won ÷ money lost.
- Break-even win rate after costs = (1 + cost in R) ÷ (1 + reward-to-risk). At 2:1 and 0.063R: 35.4%.
- Chance of n losses in a row = (1 − win rate) multiplied by itself n times.
Words
- In-sample: prices used to choose. Out-of-sample: prices used once, afterwards.
- Walk-forward: choose on one window, trade the next, move on, repeat.
- Overfitting: choosing what scored best on the tested prices.
الدروس مجانية للقراءة دون حساب. سجّل الدخول وسيتذكر PipCircle أين توقفت ويحفظ نتائجك ويمنحك شاراتك. سجّل الدخول مجانًا
Trading foreign exchange and CFDs carries a high risk of losing money. PipCircle Learn is education and is not investment advice.