feat: default to March 2026 dates and show Low/High/Close in results

- Change default backtest date range to 2026-03-02 through 2026-03-25
- Add spot_low and spot_high to BacktestDailyPoint for intraday range
- Update engine to populate low/high from DailyClosePoint
- Update daily results table to show Low, High, Close columns instead of just Spot
- Update job serialization to include spot_low and spot_high
This commit is contained in:
Bu5hm4nn
2026-04-04 23:18:01 +02:00
parent a8e710f790
commit 063ccb6781
4 changed files with 33 additions and 35 deletions

View File

@@ -259,6 +259,8 @@ def run_backtest_job(
{
"date": dp.date.isoformat(),
"spot_close": dp.spot_close,
"spot_low": dp.spot_low if dp.spot_low is not None else dp.spot_close,
"spot_high": dp.spot_high if dp.spot_high is not None else dp.spot_close,
"underlying_value": dp.underlying_value,
"option_market_value": dp.option_market_value,
"net_portfolio_value": dp.net_portfolio_value,