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.
Leave
Backtest params out and the backtest simply follows the prices and weights that portfolio
optimization produced. Set it when you want to cut the window further — for example to test a
specific period without rerunning the optimization.Returns
The
trading_report_*.json blob contains VectorBT performance metrics: total return, Sharpe ratio,
max drawdown, win rate, and related statistics.
Example
Next Step
This is the last step of the core pipeline. Download the blob fromoutput_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):