Separate backtest execution settings from strategy parameters
This commit is contained in:
parent
420c47704e
commit
e4925ecdfe
9 changed files with 283 additions and 48 deletions
|
|
@ -465,6 +465,15 @@ Strategy-specific parameter validation remains with each execution backend. Inva
|
|||
execution settings now fail before a definition/run write rather than being queued for
|
||||
later rejection. Existing schema imports from the orchestrator remain compatibility exports.
|
||||
|
||||
`BacktestExecutionSettingsSchema` also identifies execution-only fields in legacy mixed
|
||||
`config` bags. After shared defaults and per-strategy overrides are merged, the common
|
||||
planner removes those fields before validating built-in parameters. For example,
|
||||
`dataFrequency` selects run input, not an indicator parameter; a per-strategy copy cannot
|
||||
override the run. Unknown parameter keys still fail validation. Custom TypeScript factories
|
||||
retain their existing extension-field contract. Original mixed configs remain unchanged in
|
||||
request snapshots and result provenance, including replay; no saved configuration migration
|
||||
or checkpoint-version change is required.
|
||||
|
||||
`@stock-bot/types` exports the shared `BacktestRunResult` used by the runner, API, and UI.
|
||||
Return, win-rate, drawdown, and chart-analytics percentages use fractions (`0.10` means 10%).
|
||||
Trade records identify their granularity with `kind: 'fill' | 'closed'`; `totalTrades` counts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue