Level 2 · Lesson 11 / 11 · English
Testing Indicator Strategies
5 min reading · Exercises take additional time
0 of 11 lessons completed for this visit
Testing asks whether an explicitly defined indicator rule survives realistic assumptions and unfamiliar data. A visually persuasive chart is not enough. The related chart contains computed hypothetical data and illustrative outcomes, not audited performance, a live trading record or a promise that historical patterns will persist.
What you will learn
- Specify executable rules and avoid future-information leakage.
- Include costs and assess expectancy alongside drawdown.
- Separate development, validation and forward observation.
Illustrative educational chart · Not live market data
Write a complete rule before running it
Document the instrument universe, timeframe, session rules, indicator settings, warm-up period and data source. Define entries, exits, position sizing, overlapping positions and handling of missing observations. State whether a condition is evaluated at a completed close and which later price could realistically execute the order. A chart signal is not an executable fill.
Use only information available at each decision time. Computing a full series is acceptable only if every historical value uses past and present observations rather than future bars. Future-confirmed pivots, centred averages and full-sample normalization can leak information. If both stop and target lie inside one historical candle, use finer data or a documented conservative assumption instead of choosing the favourable sequence.
Costs, expectancy and path risk
Include spread, commissions, slippage, financing and relevant currency conversion. Avoid double-counting the spread when bid/ask execution already captures it. Costs may vary by session, volatility and order size. A strategy with small gross gains per trade can become negative after realistic expenses, even when its win rate appears attractive.
Track average win, average loss, trade count, exposure and maximum drawdown, not just total profit. Expectancy per trade is win probability times average win minus loss probability times average loss, with costs handled consistently. Drawdown measures decline from an equity peak to a subsequent trough. Similar average returns can hide very different sequences of losses and recovery times.
Validation without repeated hindsight
Separate chronological development data from validation and a final untouched test. Choose parameters on development data; use validation for limited model selection; reserve the final test for an honest assessment. Repeatedly checking and modifying against the final test turns it into development data. Record the number of alternatives tried because searching many configurations raises the chance of finding a lucky result.
Use walk-forward evaluation where appropriate, fitting only on earlier data before evaluating the next interval. Examine nearby settings, different market regimes and worse cost assumptions. Account for survivorship bias when selecting instruments. Paper or demo forward testing can reveal implementation problems, but simulated execution may differ from live execution. No sample size, backtest score or forward-test duration guarantees future profitability.
Key terms
- Out-of-sample
- Data not used to fit or choose the evaluated rule.
- Expectancy
- The probability-weighted average trade outcome under stated assumptions.
- Drawdown
- A decline from a prior equity peak to a subsequent trough.
- Overfitting
- Adapting rules to historical noise rather than durable relationships.
Hypothetical worked example · Not live market prices
Hypothetical expectancy after costs
- Assume 100 trades: 40 winners averaging +3R gross and 60 losers averaging −1R gross.
- Gross expectancy = 0.4 × 3R − 0.6 × 1R = 0.6R per trade.
- If average all-in cost is 0.1R per trade and was not included above, net expectancy is 0.5R.
- The total is 50R under these assumptions. R is a fixed illustrative risk unit; trade ordering and position sizing still determine the equity path.
| Component | Calculation | Result |
|---|---|---|
| Gross total | 40 × 3R − 60 × 1R | 60R |
| Total costs | 100 × 0.1R | 10R |
| Net total / net average | 50R / 100 trades | 50R / 0.5R |
Simplified educational calculations. Costs, slippage and provider-specific adjustments apply where relevant; these are not actual returns.
Common mistakes to avoid
- Choosing same-bar fills that were unavailable after the signal became known.
- Reporting only the best configuration while hiding unsuccessful trials.
- Treating positive historical expectancy as a guarantee of future returns.
Lesson summary
Useful testing is reproducible, cost-aware and honest about uncertainty. Preserve unfamiliar data, inspect drawdowns and parameter stability, and distinguish hypothetical evidence from live performance.
Practical exercise
Recalculate the example with average cost 0.7R rather than 0.1R. Net expectancy becomes −0.1R per trade and total net outcome becomes −10R. Explain why the unchanged 40% win rate misses this deterioration.
Knowledge check
Check your understanding
Results apply to this attempt only and are not saved to a student account. No certificate is issued.
Answer all questions correctly and complete the exercise. Progress follows you between Academy pages for this visit only; it is not saved to an account and resets on reload.
Related lessons
Financial education, not personal investment advice. Leveraged Forex and CFDs can lead to substantial losses. Demo practice and correct quiz answers do not guarantee trading success.
