Write a trading-system data-availability contract
Define what each feature could know at decision time before running the backtest.
Position size requires a risk unit, account context and rounding policy.
Educational research design and invented arithmetic examples. No strategy returns, broker execution or production certification are supplied.
Specify the relationship between planned loss, instrument value, costs and accepted volume. Stress gaps and simultaneous positions separately. A conviction grade is not a universal allocation formula.
A price point, contract tick, quote-currency amount and account percentage are different units. Carry the instrument multiplier and currency conversion explicitly. Round accepted volume under the actual broker constraints and recheck the planned budget after rounding.
A stop-distance calculation describes a scenario under an execution convention. Gaps, insufficient liquidity, leverage and correlated positions can produce a different account outcome. Preserve a stress policy and portfolio limit rather than calling planned loss a hard maximum.
Describe the cause, expected effect and observable alternative explanation. Decide which experiments can reject the idea before searching for parameters. Record every material research choice, including unsuccessful runs; the best final curve is not the whole research population.
Educational research design and invented arithmetic examples. No strategy returns, broker execution or production certification are supplied.
Define what each feature could know at decision time before running the backtest.
Keep selection decisions, rejected candidates and untouched evaluation periods auditable.
Design idempotency, partial fills, stale signals and restart reconciliation before live execution.
The example uses one whole long unit and a declared 10,000 initial cash base. Those values make the software exercise bounded and reproducible; they are not a personally suitable risk percentage or a broker-permitted quantity. There is no fractional or nonlinear contract, borrowing or portfolio-allocation model. Actual cash-per-price-unit multipliers, current funding, lot increments and exposure limits would need a real instrument/account source. A favourable entry label or founder credential cannot provide those fields. The example's fixed unit should therefore remain attached to its synthetic classification.
A real order can be accepted without being filled, and a partial fill can leave working quantity alongside holdings. Its risk reservation and exit quantity need the authoritative state, not the original requested amount alone. The original recovery guide covers those source questions. The teaching library fills its single unit under a simplified contract and does not test a live broker's partial-fill behaviour. A complete simulated quantity does not certify restart reconciliation, account equity or a maximum loss. The criterion can state a missing policy without inventing a quantity from a flattering chart.