scan_strategy_signals
Scan the latest bar to find live signals from a saved backtest strategy, with email notification when signals occur.
Instructions
Scan the latest bar for live strategy signals from a saved backtest job.
Loads strategy.py and config.json from storage/artifacts/{job_id}/.
Fetches recent OHLCV through today; the calendar-day window is derived from
strategy.warmup() unless overridden.
Args:
job_id: Backtest job whose artifacts contain the strategy and config.
warmup_days_override: Optional calendar days of history to fetch; overrides
the default warmup-based window when set.
notify: When true and signals exist, send email via configured SMTP
(QUANTFORGE_SMTP_* / QUANTFORGE_NOTIFY_* env vars).
notify_to: Optional recipient override; defaults to QUANTFORGE_NOTIFY_TO.
Returns:
{"ok": bool, "strategy_name": str, "symbols": [...], "data_range": {...}, "signals": [{symbol, direction, strength, strategy_id, bar_date, close}], "warnings": [...], "notified": bool, "notify_error": str|null}.
On missing files or invalid config: {"ok": false, "error": str} or
{"ok": false, "validation": {...}}. Config fields (rebalance,
last_rebalance_ts, history_tail) follow quantforge://codegen/spec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| notify | No | ||
| notify_to | No | ||
| warmup_days_override | No |