一键导入
trading-devbox
Trading strategy development sandbox. User describes trading intent in natural language, agent writes a Python backtest strategy and returns results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Trading strategy development sandbox. User describes trading intent in natural language, agent writes a Python backtest strategy and returns results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Professional trading strategy guides for prediction markets and crypto. Risk management, trend analysis, and best practices.
Manage Steven's A-share shadow trading dashboard. Triggers on: (1) "影子盘看板", "交易看板", "持仓状况", (2) placing or updating a simulated trade (buy/sell/止损/止盈), (3) updating positions or equity data, (4) reviewing trade history or P&L. Reads and writes to the shadow trading system under trade/.
Log every trade with full context (thesis, entry, exit, PnL, emotion, lesson). Generate weekly and monthly performance reports. Identify patterns in wins/losses. Use when recording a new trade, reviewing performance, running a weekly debrief, or updating the trading strategy based on results.
Institutional-grade options trading system with 10 strategy templates, interactive strategy router, IV analyzer, and portfolio manager. Get real-time trade recommendations based on market conditions.
专业级智能股票监控预警系统 V2.1。支持收盘日报自动生成、反爬虫优化(Session级UA、多数据源冗余)、成本百分比预警、均线金叉死叉、RSI超买超卖、成交量异动监控、智能错误提醒。符合中国投资者习惯(红涨绿跌)。Use when user needs stock market monitoring, price alerts, daily reports, or automated trading notifications for A-shares and ETFs.
龙虾全自动炒股技能 v1.0 - 激进短线交易系统。选股+持仓监控+盘前盘后报告+风控提醒。资金基准80万,单票上限30%,止损4%,止盈8-12-15%。
| 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.
Parse the user's trading intent into structured parameters:
Confirm the parsed parameters with the user before proceeding.
Generate a Python backtest strategy using backtrader:
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: