Compare a rule with simple baselines over unseen periods.
Free lesson· Module 08 · 15/31
01 / Core concept
Core concept: Indicator validation
Compare a rule with simple baselines over unseen periods.
How it works
A valid test fixes calculation details, warm-up, decision timing, execution and costs before evaluating performance. Compare against simple baselines and assess robustness to nearby parameters. Avoid ranking indicators on one optimized backtest.
02 / Worked example
Worked example: Indicator validation
Test a crossover after costs against buy-and-hold with comparable exposure.
Try it yourself: Why test nearby settings?
Explanation: An isolated peak may reflect noise rather than a stable relationship.
03 / Risk and limitations
Limitations and common mistakes
Optimizing many parameters inflates apparent performance.
Separate the observation from the trading decision. Test the rule with realistic execution and costs; a hypothetical example is not evidence of a profitable strategy.
Before you begin: Understand at least one indicator formula and a complete trading rule.
Separate formula checks from strategy evidence
Test edge cases and alignment
Preserve held-out evaluation
Mechanism and interpretation
Validation has layers. Formula validation compares calculated values against hand-worked fixtures and a documented convention. Data validation checks missing observations, adjustments and timestamps. Strategy evaluation then asks whether a complete decision process adds value under realistic execution and costs. Passing the first layer does not imply the third. Use edge cases such as flat series, gaps, zero volume and equality at thresholds to expose implementation differences.
Worked case — synthetic data
Synthetic SMA fixture [2,4,6] must yield 4 under a full three-value mean. An EMA fixture with alpha 0.5, seed 4 and new value 8 must yield 6. If those pass but a crossover backtest buys at the same bar's earlier low after reading its closing indicator, the strategy still contains look-ahead. Correct arithmetic cannot repair an impossible information timeline.
Context and failure modes
Repeated parameter tuning on evaluation data turns it into training data. Preserve a final untouched period and report the complete specification, costs and number of variants investigated.
Practice task
Design one flat-series fixture and one alignment fixture for a close-based indicator rule.
Worked practice answer
Flat fixture: constant prices should keep a fully warmed SMA constant. Alignment fixture: a signal requiring today's close may not affect an order assumed filled before that close. Expected outputs should be written before running the test.
Topic assessment
Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.
1. What does a correct indicator value prove?
The data contain no bias anywhere
The stated computation passed that check
The strategy is profitable
Reveal answer and explanation
B. Formula correctness is necessary but separate from predictive or execution evidence.
2. Which case specifically tests alignment?
A constant-price mean
A zero-volume denominator alone
A closing signal used for an earlier intrabar fill
Reveal answer and explanation
C. Timing checks whether the required information existed at the decision moment.
3. What happens to a repeatedly tuned evaluation period?
It becomes part of model development
It remains untouched evidence
Its sample size doubles
Reveal answer and explanation
A. Outcome-informed revisions consume its independence as a final test.
Further reading
Original TradeViora Academy explanation and hypothetical example. See the primary-reference scope below. External resources do not endorse or independently verify this lesson.
Inspect actual provider-hosted market prices or load your own historical OHLCV in the Market Chart Lab. For volume-at-price and bid/ask analysis, use the profile workbench with appropriate data. These are exploration tools, not verified historical examples of this specific lesson.
Source scope
The explanations, definitions used for chart labels, synthetic cases, and exercises above are original. Exchange documentation is a reference for order mechanics; it does not validate a chart strategy or identify trader intent. Indicator documentation provides formula context where applicable.