A pure Python backtesting engine using NumPy to evaluate futures and stock trading strategies with core performance metrics.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install backtesting-framework
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install backtesting-framework using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Backtesting Framework is a lightweight, dependency-free Python tool designed for algorithmic traders to validate quantitative trading strategies. Operating entirely with standard Python structures and NumPy, it eliminates the bloat of traditional heavy trading libraries while preserving performance.
By feeding the engine historic close-price arrays and signal matrices, developers can quickly simulate asset management strategies for both stocks and futures markets. The framework abstracts mathematical calculations for essential risk metrics, helping users refine their logic before deploying real capital.
Ensure you have python3 and NumPy installed on your local execution machine.
To use this capability within Openclaw Skills, set up your Python environment and verify your installation:
# Verify python3 installation
python3 --version
# Ensure numpy package is present
pip install numpy
The framework relies on synchronized vector dimensions for execution calculations:
| Data Object | Format | Values / Types | Description |
|---|---|---|---|
prices |
NumPy Array | Float / Int | Historical close prices over a continuous timeline. |
signals |
NumPy Array | 1 (Long), 0 (Hold), -1 (Short) |
Generated target exposure positions matching price steps. |
When a simulation run finishes, the engine outputs a dictionary mapping performance elements:
total_return: The absolute percentage growth/decline generated over the time series.sharpe_ratio: Volatility-adjusted performance metric relative to risk.win_rate: Percentage of periods that yielded positive financial returns.max_drawdown: Peak-to-trough decline value tracking historical capital risk.final_capital: Ending balance calculation based on the initial funding seed.np.convolve, np.where, np.cumprod) rather than slow iterative tracking loops.Loading
An AI agent skill to monitor real-time prices, market volumes, and contract details across major Chinese futures exchanges.

An analytical toolkit for calculating European and American option pricing, Greeks, and implied volatility tailored to the Chinese derivatives market.

Generate high-precision technical indicators, buy/sell signals, and chart trend descriptions for Chinese commodity and financial futures.

An AI-agent skill utilizing Apify to scrape rich local business data, reviews, images, and website contacts directly from Google Maps.

An AI coding agent skill to fetch and analyze real-time A-share stock prices, market indices, and sector data from Shanghai, Shenzhen, and Beijing exchanges.

Agent OS is a lightweight, file-based collaboration layer that enables seamless, auditable, and structured multi-agent coordination without relying on bloated chat histories.








































