Vynn Backtester
Backtest any trading strategy with natural language. Get Sharpe ratio, returns, drawdown, and full equity curves in seconds.
What it does
- Natural language strategies: Describe your strategy in plain English and Vynn translates it into a runnable backtest
- Structured strategies: Power users can pass precise entry/exit rules as JSON
- Full metrics: Sharpe ratio, total return, max drawdown, win rate, trade count, and equity curve
- Multi-ticker: Backtest across any combination of stocks, ETFs, or indices
- Strategy comparison: Compare multiple strategies head-to-head, ranked by Sharpe ratio
- No infrastructure: No local data downloads, no dependencies beyond Python stdlib
Setup
- Get a free API key at the-vynn.com (10 backtests/month, no credit card)
- Set
VYNN_API_KEY in your environment or skill config
- Run
/backtest "your strategy here" from any OpenClaw agent
Quick start
# Sign up (instant, returns your API key)
curl -X POST https://the-vynn.com/v1/signup -H "Content-Type: application/json" -d '{"email": "you@example.com"}'
# Set the key
export VYNN_API_KEY="vynn_free_..."
Usage examples
Simple natural language backtest
/backtest "RSI mean reversion on AAPL, 2 year lookback"
Momentum strategy
/backtest "MACD crossover on SPY with 20/50 EMA filter"
Multi-ticker portfolio
/backtest --tickers AAPL,MSFT,GOOGL --strategy "momentum top 3"
Structured entry/exit rules
/backtest '{"entries": [{"indicator": "RSI", "op": "<", "value": 30}], "exits": [{"indicator": "RSI", "op": ">", "value": 70}]}' --tickers AAPL
Compare strategies
from plugin import VynnBacktesterPlugin
vynn = VynnBacktesterPlugin()
results = vynn.compare(
strategies=[
"RSI mean reversion",
"MACD crossover",
"Bollinger band breakout",
],
tickers=["SPY"],
)
for r in results:
print(f"{r.strategy}: Sharpe={r.sharpe_ratio}, Return={r.total_return_pct}%")
Environment Variables
| Variable |
Required |
Description |
Default |
VYNN_API_KEY |
Yes |
Your API key from the-vynn.com |
-- |
VYNN_BASE_URL |
No |
Override API base URL (for self-hosted instances) |
https://the-vynn.com/v1 |
External Endpoints
| Endpoint |
Purpose |
Data Sent |
https://the-vynn.com/v1/backtest |
Execute a strategy backtest |
Strategy text, ticker list, lookback period |
https://the-vynn.com/v1/signup |
Free API key registration |
Email address |
Security & Privacy
- All requests authenticated via
X-API-Key header
- Strategy descriptions and ticker lists are sent to the Vynn API for backtest execution
- No trading data, portfolio holdings, or personal information is stored beyond the backtest run
- Backtest results are ephemeral and not persisted on Vynn servers
- No credentials are stored by the skill -- only your API key in environment variables
- Source code is fully open: github.com/beee003/astrai-openclaw
Model Invocation
This skill does not invoke any LLM models. It sends strategy descriptions to the Vynn backtest engine, which is a quantitative execution engine (not an AI model). No prompts or completions are generated.
Pricing
- Free: 10 backtests/month, all features, no credit card required
- Pro ($29/mo): Unlimited backtests, priority execution, extended lookback periods
1---
2name: vynn-backtester
3description: Run trading strategy backtests with natural language — powered by Vynn
4version: 1.0.0
5homepage: https://the-vynn.com
6metadata:
7 source: https://skillmd.com/skills/modbender/vynn-backtester
8 clawdbot:
9 emoji: "📈"
10 requires:
11 env: ["VYNN_API_KEY"]
12 primaryEnv: "VYNN_API_KEY"
13 files: ["plugin.py", "config.example.toml"]
14tags: [backtest, trading, quant, finance, strategy, stocks, portfolio, alpha]
15---
16
17# Vynn Backtester
18
19Backtest any trading strategy with natural language. Get Sharpe ratio, returns, drawdown, and full equity curves in seconds.
20
21## What it does
22
23- **Natural language strategies**: Describe your strategy in plain English and Vynn translates it into a runnable backtest
24- **Structured strategies**: Power users can pass precise entry/exit rules as JSON
25- **Full metrics**: Sharpe ratio, total return, max drawdown, win rate, trade count, and equity curve
26- **Multi-ticker**: Backtest across any combination of stocks, ETFs, or indices
27- **Strategy comparison**: Compare multiple strategies head-to-head, ranked by Sharpe ratio
28- **No infrastructure**: No local data downloads, no dependencies beyond Python stdlib
29
30## Setup
31
321. Get a free API key at [the-vynn.com](https://the-vynn.com) (10 backtests/month, no credit card)
332. Set `VYNN_API_KEY` in your environment or skill config
343. Run `/backtest "your strategy here"` from any OpenClaw agent
35
36### Quick start
37
38```bash
39# Sign up (instant, returns your API key)
40curl -X POST https://the-vynn.com/v1/signup -H "Content-Type: application/json" -d '{"email": "you@example.com"}'
41
42# Set the key
43export VYNN_API_KEY="vynn_free_..."
44```
45
46## Usage examples
47
48### Simple natural language backtest
49
50```
51/backtest "RSI mean reversion on AAPL, 2 year lookback"
52```
53
54### Momentum strategy
55
56```
57/backtest "MACD crossover on SPY with 20/50 EMA filter"
58```
59
60### Multi-ticker portfolio
61
62```
63/backtest --tickers AAPL,MSFT,GOOGL --strategy "momentum top 3"
64```
65
66### Structured entry/exit rules
67
68```
69/backtest '{"entries": [{"indicator": "RSI", "op": "<", "value": 30}], "exits": [{"indicator": "RSI", "op": ">", "value": 70}]}' --tickers AAPL
70```
71
72### Compare strategies
73
74```python
75from plugin import VynnBacktesterPlugin
76
77vynn = VynnBacktesterPlugin()
78results = vynn.compare(
79 strategies=[
80 "RSI mean reversion",
81 "MACD crossover",
82 "Bollinger band breakout",
83 ],
84 tickers=["SPY"],
85)
86for r in results:
87 print(f"{r.strategy}: Sharpe={r.sharpe_ratio}, Return={r.total_return_pct}%")
88```
89
90## Environment Variables
91
92| Variable | Required | Description | Default |
93|---|---|---|---|
94| `VYNN_API_KEY` | Yes | Your API key from the-vynn.com | -- |
95| `VYNN_BASE_URL` | No | Override API base URL (for self-hosted instances) | `https://the-vynn.com/v1` |
96
97## External Endpoints
98
99| Endpoint | Purpose | Data Sent |
100|---|---|---|
101| `https://the-vynn.com/v1/backtest` | Execute a strategy backtest | Strategy text, ticker list, lookback period |
102| `https://the-vynn.com/v1/signup` | Free API key registration | Email address |
103
104## Security & Privacy
105
106- All requests authenticated via `X-API-Key` header
107- Strategy descriptions and ticker lists are sent to the Vynn API for backtest execution
108- No trading data, portfolio holdings, or personal information is stored beyond the backtest run
109- Backtest results are ephemeral and not persisted on Vynn servers
110- No credentials are stored by the skill -- only your API key in environment variables
111- Source code is fully open: [github.com/beee003/astrai-openclaw](https://github.com/beee003/astrai-openclaw)
112
113## Model Invocation
114
115This skill does not invoke any LLM models. It sends strategy descriptions to the Vynn backtest engine, which is a quantitative execution engine (not an AI model). No prompts or completions are generated.
116
117## Pricing
118
119- **Free**: 10 backtests/month, all features, no credit card required
120- **Pro** ($29/mo): Unlimited backtests, priority execution, extended lookback periods