Stéphane

Stéphane

Backtesting Guides

Backtesting Guide — Principles & MarketBook Replay | BotBlog Backtesting guides Published: 2025-11-11 • BotBlog Backtesting Guide — Principles & MarketBook Replay This backtesting guide explains why backtesting matters, the core principles you must adopt, common dead-ends teams face, and…

Lesson 7 — Risk management & deployment

Skip to content Lesson 7 — Risk management, hedging & deployment Final crypto lesson: implement hedging/green‑up, enforce risk limits and circuit breakers, make order flows idempotent and observable, and package/deploy your bot safely (Docker / VPS) with monitoring and runbooks.…

Lesson 6 — Backtesting & simulation (Jupyter)

Skip to content Lesson 6 — Backtesting & simulation (Jupyter) Simulate strategies in Jupyter: load historical ticks/candles, replay data, simulate executions with slippage & partial fills, and compute performance metrics. Estimated time: 60–90 minutes • Skill level: Intermediate Download .env…

Lesson 5 — Webhooks & Pine alerts

Skip to content Lesson 5 — Webhooks & Pine alerts Build a secure webhook receiver for TradingView Pine alerts, validate HMAC signatures, map alert symbols to exchange testnet markets, and forward idempotent order instructions to the trading layer. Estimated time:…

Lesson 3 — Market data (REST & WebSocket)

Skip to content Lesson 3 — Market data (REST & WebSocket) Implement reliable REST polling and WebSocket subscriptions, normalize different exchange payloads, merge snapshot + delta orderbooks, and respect rate limits. Estimated time: 45–60 minutes • Skill level: Beginner →…

Lesson 2 — Authentication & HMAC

Skip to content Lesson 2 — Authentication & HMAC Implement HMAC signing and secure API key handling for exchange testnets. Build a signed request helper, add replay protection and safe key storage best practices. Estimated time: 45–60 minutes • Skill…

Lesson 1 — Environment & testnet setup

Skip to content Lesson 1 — Crypto: Environment & testnet setup Prepare your Python environment, create exchange testnet API keys, and run quick REST and WebSocket smoke tests. This lesson gets you ready for the Crypto track. Estimated time: 30–45…

Lesson 7 — Risk, hedging & deployment

Skip to content Lesson 7 — Risk, hedging & deployment Final lesson: implement green-up hedges and risk controls, ensure idempotent and observable order flows, and deploy your bot safely using Docker or a VPS with proper monitoring and runbooks. Estimated…