QC Backtest Master for Openclaw

A streamlined pipeline for automating QuantConnect backtest lifecycles from local strategy files to detailed cloud result downloads.

tltby12341
v1.0.0
Mar 17, 2026
0
974
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install qc-backtest-master

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install qc-backtest-master using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is QC Backtest Master?

QC Backtest Master is a specialized automation tool designed for quantitative developers using Openclaw Skills to bridge the gap between local development and the QuantConnect cloud environment. This skill eliminates the need for manual interaction with the QuantConnect web UI by providing a robust command-line interface and API wrapper for submitting strategies, triggering cloud compilations, and managing backtest execution.

By integrating directly with the QuantConnect REST API v2, it allows for a programmatic approach to algorithmic trading research. This Openclaw Skills component is particularly valuable for developers who need to iterate quickly on strategies, requiring automated feedback loops and local data persistence for backtest results.

QC Backtest Master Use Cases

  • Automated submission of local Python strategy files to the QuantConnect cloud for immediate testing.
  • Risk management during testing via automated early-stop triggers when drawdown thresholds are exceeded.
  • Programmatic retrieval of detailed backtest statistics and paginated trade order history for local analysis.
  • Continuous integration of backtesting into automated quantitative research pipelines.

How QC Backtest Master Works

  1. The user initiates a request through Openclaw Skills, providing a local Python strategy file and optional parameters.
  2. The skill uploads the local code to the designated QuantConnect project, automatically replacing the existing main.py file.
  3. A cloud compilation is triggered, and the skill monitors the status, reporting any syntax or compilation errors directly to the user.
  4. Once compiled, the backtest is launched and the skill begins real-time monitoring of progress and performance metrics.
  5. If a user-defined drawdown threshold is breached after 20% progress, the skill automatically terminates and deletes the backtest to preserve compute resources.
  6. Upon successful completion, the skill fetches full statistics in JSON format and paginates through all order records to generate a comprehensive CSV report locally.

QC Backtest Master Setup

To use this skill within your Openclaw Skills environment, ensure you have python3 installed and set the following environment variables:

export QC_USER_ID="your_quantconnect_user_id"
export QC_API_TOKEN="your_quantconnect_api_token"
export QC_PROJECT_ID="your_target_project_id"

The skill will automatically utilize these credentials to authenticate with the QuantConnect REST API.

QC Backtest Master Data Schema & Taxonomy

The skill organizes backtest data into a structured directory for each execution.

File Name Description Format
<backtest_id>_result.json Comprehensive statistics, performance charts, and runtime data. JSON
<backtest_id>_orders.csv A full audit trail of all orders including symbol, direction, price, and fees. CSV
main.py A copy of the strategy file submitted to the cloud. Python

QC Backtest Master Advanced Features

  • Real-time drawdown monitoring with automatic kill-switch to prevent wasted compute on failing strategies.
  • Automated pagination logic to bypass QuantConnect's default limit on order history retrieval.
  • Unified workflow command that encapsulates submission, compilation, monitoring, and downloading in a single step.
  • Smart project file management that handles auxiliary data files (JSON, TXT, CSV) alongside the primary strategy code.
  • Direct integration with the QuantConnect REST API v2 for reliable cloud communication via Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*