algo-expert
Installation
SKILL.md
OpenAlgo Execution Expert
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.
Core principles
- One file, two modes. The same
signals(df)function feeds both VectorBT (backtest) and the live event loop. Risk thresholds and cost assumptions are honored on both sides. - OpenAlgo for everything broker-side. Data via
client.history()and WebSocket. Orders viaclient.placeorder()/placesmartorder()/optionsmultiorder(). Live vs sandbox is decided in OpenAlgo's UI analyzer toggle - the strategy code never knows. - Indicator library is user's choice -
openalgo.ta(default) ortalib. Specialty indicators (Supertrend, Donchian, Ichimoku, HMA, KAMA) always come from openalgo. Seerules/indicator-libraries.md. - Three execution types -
eoc(end-of-candle MARKET),limit(real-time pegged LIMIT),stop(broker-side SL-M trigger). User picks at strategy creation. Seerules/execution-types.md. - Real-world costs and slippage baked into every backtest (matches
vectorbt-backtesting-skills4-segment Indian model). Seerules/transaction-costs.mdandrules/slippage-handling.md. - Self-hosted
/pythoncompatible - every strategy reads env vars in the canonical priority, traps SIGTERM, logs to stdout. Seerules/self-hosted-strategies.md.