一键导入
strategy-compare
Compare multiple strategies or directions (long vs short vs both) on the same symbol. Generates side-by-side stats table.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compare multiple strategies or directions (long vs short vs both) on the same symbol. Generates side-by-side stats table.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Quick backtest a strategy on a symbol. Creates a complete .py script with data fetch, signals, backtest, stats, and plots.
VectorBT backtesting expert. Use when user asks to backtest strategies, create entry/exit signals, analyze portfolio performance, optimize parameters, fetch historical data, use VectorBT/vectorbt, compare strategies, position sizing, equity curves, drawdown charts, or trade analysis. Also triggers for openalgo.ta helpers (exrem, crossover, crossunder, flip, donchian, supertrend).
Optimize strategy parameters using VectorBT. Tests parameter combinations and generates heatmaps.
Quickly fetch data and print key backtest stats for a symbol with a default EMA crossover strategy. No file creation needed - runs inline in a notebook cell or prints to console.
Set up the Python backtesting environment. Detects OS, creates virtual environment, installs dependencies (openalgo, ta-lib, vectorbt, plotly), and creates the backtesting folder structure.
| name | strategy-compare |
| description | Compare multiple strategies or directions (long vs short vs both) on the same symbol. Generates side-by-side stats table. |
| argument-hint | [symbol] [strategies...] |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
Create a strategy comparison script.
Parse $ARGUMENTS as: symbol followed by strategy names
$0 = symbol (e.g., SBIN, RELIANCE, NIFTY)If only a symbol is given with no strategies, compare: ema-crossover, rsi, donchian, supertrend. If "long-vs-short" is one of the strategies, compare longonly vs shortonly vs both for the first real strategy.
backtesting/strategy_comparison/ directory if it doesn't exist (on-demand).py file in backtesting/strategy_comparison/ named {symbol}_strategy_comparison.pyduckdb.connect(path, read_only=True). See vectorbt-expert rules/duckdb-data.md.openalgo.ta is not importable (standalone DuckDB), use inline exrem() fallback.ta.exrem() (always .fillna(False) before exrem)fees=0.00111, fixed_fees=20 for delivery equityNSE_INDEX)template="plotly_dark")/strategy-compare RELIANCE ema-crossover rsi donchian
/strategy-compare SBIN long-vs-short ema-crossover