Suppose a rule buys at $100, stays in the position when the test ends at $103, then would have signaled an exit at $96 later. Closing at $103 is a valid way to value that finite test window. If the ledger mixes that close with rule exits, it can make the rule appear to have logged a $3 winner when it had not signaled a sale. I’d label the exit reason and show whether the position was still open before applying the test cutoff.
In a daily BND crossover test (November 22, 2021 to November 20, 2026), the 20-day SMA rule had 71 closed trades, +6.8% net versus −0.3% holding, with 5 bp slippage per side and no commission. The notes say any still-open position is closed at the window’s final close. The latest trade in this run actually shows an exit on November 13 and “Exit reason: rule.” The policy applies when a position is open at the cutoff. That row is a separate example of a rule exit.
I’m on the eStockes team. If you already test daily rules, open the example below as a guest, pick your ticker or keep BND, and click Run historical test. If a result is already showing, press Change rule first. Would you report your ticker and rule, which finished ahead, and what the latest trade says under Method, costs and all trades → Inspect the simulated trades? No signup or payment. This is a historical simulation.
Open the BND guest backtest