Builds algorithmic trading strategies that toggle between VectorBT backtest and OpenAlgo live execution. Covers indicators, order types, risk management, and options strategies.
Ships in openalgo-execution-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Knowledge base for building production-grade algorithmic trading strategies on OpenAlgo. Every strategy is a single Python file that toggles between backtest mode (VectorBT) and live execution mode (OpenAlgo SDK + WebSocket) via one CLI flag (--mode backtest|live) or env var (MODE=...).
Strategies are also upload-ready for OpenAlgo's self-hosted /python strategy host.
signals(df) function feeds both VectorBT (backtest) and the live event loop. Risk thresholds and cost assumptions are honored on both sides.client.history() and WebSocket. Orders via client.placeorder() / placesmartorder() / optionsmultiorder(). Live vs sandbox is decided in OpenAlgo's UI analyzer toggle - the strategy code never knows.openalgo.ta (default) or talib. Specialty indicators (Supertrend, Donchian, Ichimoku, HMA, KAMA) always come from openalgo. See rules/indicator-libraries.md.eoc (end-of-candle MARKET), limit (real-time pegged LIMIT), stop (broker-side SL-M trigger). User picks at strategy creation. See rules/execution-types.md.vectorbt-backtesting-skills 4-segment Indian model). See rules/transaction-costs.md and rules/slippage-handling.md./python compatible - every strategy reads env vars in the canonical priority, traps SIGTERM, logs to stdout. See rules/self-hosted-strategies.md.| Reading the user wants... | Load these rule files |
|---|---|
| The big-picture strategy template | unified-strategy-pattern.md, mode-toggle.md, execution-types.md |
| Indicator selection | indicator-libraries.md |
| Position sizing (the most important fix) | position-sizing.md |
| Preflight checks at startup | preflight-checks.md |
| Risk on a single position | risk-management.md |
| Portfolio-level risk and daily caps | portfolio-risk.md |
| Cost / slippage modeling | transaction-costs.md, slippage-handling.md |
| Data sources (DuckDB, Historify, API) | duckdb-data.md |
| WebSocket and bar-close patterns | websocket-feeds.md, event-loop.md |
| Order placement idioms | execution-patterns.md, order-constants.md |
| Options strategies | options-execution.md |
| Volatility strategies | volatility-strategies.md |
| ML strategies | ml-strategies.md |
| Persistent state between restarts | state-persistence.md |
| Logging and Telegram alerts | logging-and-alerts.md |
| Common production mistakes | pitfalls.md |
| Strategy catalog / template selection | strategy-catalog.md |
OpenAlgo /python self-hosting | self-hosted-strategies.md |
| Symbol formats and lot sizes | symbol-format.md, lot-sizes.md, order-constants.md |
| Full SDK reference | sdk-reference.md |
examples/python/emacrossover_strategy_python.py). The WS callback NEVER places orders directly - it spawns a worker thread.iloc[-2] not iloc[-1] - the last bar in client.history() is forming and would cause repaint.client.placesmartorder(position_size=0) to flatten cleanly (from examples/python/stoploss_target_example.py).client.optionsmultiorder() - BUY legs go first for margin efficiency. Per-leg SL via client.placeorder(price_type="SL") (from examples/python/straddle_with_stops.py).apscheduler.schedulers.background.BackgroundScheduler with IST cron (from examples/python/straddle_scheduler.py).client.quotes() first, then client.optionsorder() with offset="ATM".asyncio - the OpenAlgo SDK is synchronous; use threading insteaddf.iloc[-1] on live data - that's the forming bar; use iloc[-2]client.history(start_date=end_date) - returns 1 candle; always use multi-day lookbackexchange="NSE" when self-hosted - read OPENALGO_STRATEGY_EXCHANGE env var insteadfees=0 and slippage=0 - the result is fantasy; use the segment-appropriate constantsclient.get_ltp() faster than 0.5s - use WS callbacks for real-timeD:/openalgo-python/openalgo/docs/prompt/openalgo python sdk.mdD:/openalgo-python/openalgo/docs/prompt/services_documentation.mdD:/openalgo-python/openalgo/docs/prompt/websockets-format.mdD:/openalgo-python/openalgo/strategies/README.mdD:/openalgo-python/openalgo/examples/python/What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
algorithmic-trading, openalgo, vectorbt, backtesting, live-trading, options
Other plugins' skills for the same job
7 skills in this plugin
/algo-hostValidate a generated strategy and produce an upload guide for OpenAlgo's /python self-hosted strategy page. Confirms env-var reads, SIGTERM, stdout-only logging./algo-optionsGenerate options-only execution strategies (short straddle, iron condor). Backtest mode is intentionally disabled. Live mode uses optionsmultiorder + per-leg SL./algo-portfolioRun multiple strategies under one supervisor with portfolio-level risk caps (portfolio SL/TP, daily PnL limits, max concurrent positions). YAML-driven./algo-risk-testVerify a strategy's SL / TP / trailing stop / portfolio caps fire correctly. Uses OpenAlgo sandbox + synthetic price moves. Run this before going live./algo-setupSet up the Python environment for OpenAlgo execution skills - venv, openalgo[indicators], vectorbt, talib, scikit-learn, xgboost. Scaffolds strategies/ folder and .env./algo-strategyGenerate a single-file dual-mode trading strategy. Asks for indicator library and execution type. The same file runs `--mode backtest` (VectorBT) and `--mode live` (OpenAlgo). Upload-ready for OpenAlgo /python self-hosted./openalgo-execution-skills:algo-expertfrom openalgo-execution-skills
openalgo-execution-skills@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin openalgo-execution-skills