Skip to main content

Overview

run_trading_job runs a VectorBT backtest from portfolio weights (Portfolio.from_orders, TargetPercent) and returns performance metrics (return, Sharpe, drawdown, …). Usually the last step of the core path after run_po_job.

Parameters

string
required
Blob storage URL pointing to a portfolio_optimization_*.json file.This is the output_url returned by run_po_job. The blob must contain Weights (and prices). Signal-based Entries / Exits are not used.
object
required
Trading and backtesting configuration.
On the usual no-ML path you do not pass a separate testing-end date here — the backtest follows the prices/weights from portfolio optimization (sample start → end, with the first covariance_window days used as PO warmup upstream).

Returns

The trading_report_*.json blob contains VectorBT performance metrics: total return, Sharpe ratio, max drawdown, win rate, and related statistics.

Example


Resources


Next Steps

This is the last step of the core pipeline. Download the blob from output_url to inspect the results. You can also run optional analytics from portfolio_optimization_*.json (or, for some tools, from data_extractor_*.json with optional weights):