Skip to main content

Overview

run_grid_job runs the whole research pipeline once per parameter combination and returns a single artifact with the metrics of every variant side by side. It is the one tool that needs no upstream step: give it tickers and a date window and it downloads the prices itself. Pass a data_extractor_*.json link instead if you already have the data. Two pipelines:
  • short — data → portfolio construction → backtest. No features, no ML.
  • long — data → features → ML or deep learning → portfolio construction → backtest.
A sweep is heavy by design: every variant is a full backtest, and a large grid can run for up to two hours.

Parameters

object
required
Grid configuration. Pass {} to run the bundled defaults — short pipeline, one variant.
string
Optional blob URL to a data_extractor_*.json file. When omitted, the job downloads the prices described in Data params.

Returns

The artifact holds run_id, pipeline_mode, n_ok / n_variants, and a variants array with the parameters, metrics and status of each variant. A variant whose backtest succeeded but whose HTML report failed has status report_error and keeps its metrics — read them rather than discarding the variant.

Example — sweep the rebalance frequency

Example — explicit pipeline and data window


Next Step

Compare the variants, then rerun the winning combination as a normal chain (run_po_job → run_trading_job) when you want charts and reports for it. Best variants are a search result, not evidence — confirm one on a window you did not sweep over.