Documentation Index
Fetch the complete documentation index at: https://mintlify.com/backtest-kit/backtest-kit-docs/llms.txt
Use this file to discover all available pages before exploring further.
@backtest-kit/sidekick is the full-control alternative to @backtest-kit/cli --init. Where CLI init keeps all boilerplate inside the CLI package, Sidekick places every piece of wiring — exchange adapter, frame definitions, risk rules, strategy logic, and the runner script — directly in your project as editable source files. Think of it as ejecting from the CLI init: you get complete visibility and control over the entire setup from day one.
Install and Init
Create a new project with one command:What Gets Generated
Exchange Adapter
A Binance exchange schema via CCXT (
src/logic/exchange/binance.exchange.mjs) with OHLCV candle fetching, order book depth, and tick-precise price and quantity formatting.Frame Definitions
Pre-configured backtest time periods (
src/logic/frame/*.frame.mjs) covering February 2024 (bull run), October–December 2025 (drops and sideways markets).Risk Rules
Two distance validation rules (
src/logic/risk/) that reject signals where the stop-loss or take-profit is less than 0.2% from entry — protecting against slippage eating the entire move.Strategy Logic
A complete multi-timeframe strategy (
src/logic/strategy/main.strategy.mjs) that uses @backtest-kit/graph to run a 4h trend filter and 15m signal generator in parallel.Generated Project Structure
Pre-Configured Features
Sidekick comes with a full AI and technical analysis stack wired up and ready to use:LLM Fallback Chain
DeepSeek → Claude → GPT-5 fallback chain pre-configured via
@backtest-kit/ollama. Switch providers by changing one line.50+ Technical Indicators
Complete indicator suite via
@backtest-kit/signals — RSI, MACD, Bollinger Bands, ADX, ATR, CCI, Fibonacci, order book depth across 4 timeframes.Pine Script Strategy
Two Pine Script v5 indicators via
@backtest-kit/pinets: a 4H trend filter (RSI + MACD + ADX) and a 15m entry signal generator (EMA crossover + volume + momentum).Environment Setup
Auto-generated
.env with placeholders for all required API keys — Binance, DeepSeek, Anthropic, OpenAI, Telegram.Sidekick vs CLI Init
Both commands bootstrap a working trading project. The difference is where the wiring lives:@backtest-kit/cli --init | @backtest-kit/sidekick | |
|---|---|---|
| Bootstrap code | Hidden inside @backtest-kit/cli | Visible as editable files in your project |
| Exchange adapter | Auto-registered (CCXT Binance default) | Explicit file in src/logic/exchange/ |
| Frame definitions | Registered in your strategy file | Separate files in src/logic/frame/ |
| Risk rules | Defined in your strategy file | Separate files in src/logic/risk/ |
| Runner script | Provided by the CLI | src/main/bootstrap.mjs in your project |
| Best for | Solo quants, fast iteration, minimal ceremony | Teams, full control, custom architecture |
Sidekick is the equivalent of “ejecting” from CLI init. Once you run Sidekick, all infrastructure code is in your project and you own it entirely. There is no partial eject — if you want to go back to a leaner setup, start a new CLI init project and copy your strategy logic across.