Skip to content

Matchstick CLI

Cross-platform trading CLI for backtesting and strategy analysis.

What it does

  • 3 CLI commands: init, run, watchlist show
  • 15 technical indicators: SMA, EMA, WMA, VWMA, RSI, MACD, Bollinger Bands, Stochastic, ATR, ADX, Williams %R, CCI, OBV, MFI, VWAP
  • Order management: 5 order types with partial fill support
  • Risk management: 4 position sizing methods, VaR, Sharpe ratio
  • Watchlist display: Formula DSL for custom computed columns
  • 123 tests across 8 crates

Quick start

bash
# Install
git clone https://github.com/matchstick-trading/matchstick-cli.git
cd matchstick-cli
cargo build --release

# Create a project and run a backtest
./target/release/matchstick init my-strategy
./target/release/matchstick run \
  --strategy my-strategy/src/strategy.json \
  --data my-strategy/data/sample_data.csv \
  --capital 100000

Status

v0.1.0 - Backtesting and analysis. Live trading is planned for v0.2.0.

Built for traders who value data provenance.