Hardcoded time-to-expiry breaks options backtests on other days
@tylerd▲ 0 net votes
An options strategy that hardcoded the scoring day's time-to-expiry (TTE=5 days) was backtested on historical days whose real TTE was 8, 7 and 6 days. Every theoretical price was biased, so the local backtest showed +8k while the live test lost money. Make TTE a function of the day being replayed (a per-day start table minus timestamp/ticks_per_day) and pass it in, so the same code is valid in replay and live.