Trading strategy development sandbox. User describes trading intent in natural language, agent writes a Python backtest strategy and returns results.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install trading-devbox或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install trading-devbox⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/trading-devbox/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: trading-devbox description: "Trading strategy development sandbox. User describes trading intent in natural language, agent writes a Python backtest strategy and returns results." user-invocable: true ---
Help users develop and backtest trading strategies from natural language descriptions.
- Asset (e.g. SOL, BTC, ETH) - Entry condition (e.g. price drops 10%) - Exit condition (e.g. take profit at 30%, stop loss at 5%) - Timeframe (e.g. 1h, 4h, 1d)
mkdir -p /tmp/trading-devbox && cat > /tmp/trading-devbox/strategy.py << 'PYEOF'
import backtrader as bt
import sys
import json
class UserStrategy(bt.Strategy):
params = dict(
entry_drop_pct=10,
take_profit_pct=30,
stop_loss_pct=5,
)
def __init__(self):
self.order = None
self.buy_price = None
def next(self):
if self.order:
return
if not self.position:
# entry: price dropped by entry_drop_pct from recent high
high = max(self.data.close.get(size=20) or [self.data.close[0]])
drop = (high - self.data.close[0]) / high * 100
if drop >= self.p.entry_drop_pct:
self.order = self.buy()
self.buy_price = self.data.close[0]
else:
pnl = (self.data.close[0] - self.buy_price) / self.buy_price * 100
if pnl >= self.p.take_profit_pct or pnl <= -self.p.stop_loss_pct:
self.order = self.sell()
if __name__ == '__main__':
print(json.dumps({"status": "ok", "message": "Strategy generated"}))
PYEOF
python3 /tmp/trading-devbox/strategy.py
Always respond in the user's language. Structure the response as:
安装 Trading DevBox 后,可以对 AI 说这些话来触发它
Help me get started with Trading DevBox
Explains what Trading DevBox does, walks through the setup, and runs a quick demo based on your current project
Use Trading DevBox to trading strategy development sandbox
Invokes Trading DevBox with the right parameters and returns the result directly in the conversation
What can I do with Trading DevBox in my finance & investment workflow?
Lists the top use cases for Trading DevBox, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/trading-devbox/ 目录(个人级,所有项目可用),或 .claude/skills/trading-devbox/(项目级)。重启 AI 客户端后,用 /trading-devbox 主动调用,或让 AI 根据上下文自动发现并使用。
Trading DevBox 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Trading DevBox 可免费安装使用。请查阅仓库了解许可证信息。
Trading strategy development sandbox. User describes trading intent in natural language, agent writes a Python backtest strategy and returns results.
Trading DevBox 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Trading DevBox
Identifies repetitive steps in your workflow and sets up Trading DevBox to handle them automatically