Free playbooks in your inbox
Home / Series / AI Trading Bot Playbooks
Collection

AI Trading Bot Playbooks.

Stocks, options, crypto. 7 working strategies with walk-forward backtests across five regimes. Slippage, commissions, and Claude inference cost in the realism layer.

3 titles · 15 free guides

Free guides
how-to 8 min read

Why a 61% Win Rate Still Loses You $14K

Algorithmic trading for beginners in Python: the position-sizing rules and Kelly math that keep a real edge from blowing up your account on one bad trade.

from: Use Claude to Build an AI Trading Bot One Weekend

how-to 8 min read

Wire Claude Code to Live Market Data (UW MCP)

A Claude Code trading bot needs live options flow. Register the official Unusual Whales MCP server the npx way, verify it, and see the real 2026 cost ladder.

from: Use Claude to Build an AI Trading Bot One Weekend

how-to 9 min read

Monte Carlo Backtesting: Is Your Trading Edge Real?

Monte Carlo backtesting trading strategies in Python: 1,000 simulations plus an in-sample/out-of-sample split for one go/no-go verdict before going live.

from: Use Claude to Build an AI Trading Bot One Weekend

tutorial 9 min read

Build a Polymarket Prediction Market Bot With Claude

Build a Polymarket prediction market bot: pull live contracts from the public Gamma API, have Claude estimate true probability, flag 10-point mispricings by EV.

from: Use Claude to Build an AI Trading Bot One Weekend

tutorial 8 min read

Claude Code Pine Script Setup: Give It the Manual First

The claude code pine script setup that stops the paste-back loop: a ./docs Pine v6 library, a 3-block CLAUDE.md, path-scoped rules, and a test prompt.

from: Build TradingView Signals with Claude Code

analysis 8 min read

Claude Code Token Cost: Why One Session Hit $40

The claude code token cost math behind a $40.78 receipt: 12.8M tokens, the 90% cache toggle that makes it $3.84, and the framework that takes it to $1.83.

from: Build TradingView Signals with Claude Code

how-to 8 min read

The Four-Part Prompt That Gets Claude to Write Clean Pine

How to prompt claude for pine script: the Goal, Constraint, Verification, Output structure that ships an RSI indicator in 3 prompts instead of a $40 loop.

from: Build TradingView Signals with Claude Code

how-to 8 min read

The Breakeven Stop-Loss Bug Claude Keeps Writing in Pine

Pine script breakeven stop loss triggering early? Claude gates it on a price touch, not a confirmed fill. The var bool tp1Hit pattern that fixes it for good.

from: Build TradingView Signals with Claude Code

how-to 8 min read

Why Your Pine Backtest Lies: the request.security Fix

Pine script request.security repaint and lookahead bias inflate a 47% strategy to 61%. The lookahead_on plus [1] offset pattern that returns the honest number.

from: Build TradingView Signals with Claude Code

how-to 8 min read

Claude Trading Bot Hallucination: 8-Point Backtest Check

Catch Claude trading bot hallucination before live capital. Walk-forward backtest, 68% win-rate paradox, 8-point checklist, separate-session reproduction.

from: Use Claude to Build 7 AI Trading Bots

tutorial 8 min read

Cointegration Pairs Trading Python: Z-Score and Hedge Ratio

Cointegration pairs trading in Python with statsmodels: Engle-Granger test, Z-score entries at ±2.0, hedge-ratio sizing, 20-day time-stop, VIX regime filter.

from: Use Claude to Build 7 AI Trading Bots

tutorial 8 min read

Crypto Funding Rate Arbitrage Bot: BTC Cash and Carry

Build a crypto funding rate arbitrage bot in Python. Long spot, short perp, collect funding every 8 hours when the rate exceeds 0.025%. Delta-neutral basis.

from: Use Claude to Build 7 AI Trading Bots

tutorial 9 min read

Multi Strategy Trading Bot Python: Risk Parity Allocator

Multi strategy trading bot Python build: risk-parity capital sizing, 90-day correlation drop rule, drawdown circuit breaker, and intent netting at the broker.

from: Use Claude to Build 7 AI Trading Bots

tutorial 8 min read

Options Flow Trading Bot in Python: The 4 Greek Gates

Build an options flow trading bot in Python with four Greek gates: delta budget, gamma cap, IV-crush filter, theta sweep. Stop the bleed before it starts.

from: Use Claude to Build 7 AI Trading Bots

The series, in order

Read them in this order. Each one assumes the one before it.

01 Book
Use Claude to Build an AI Trading Bot One Weekend

Use Claude to Build an AI Trading Bot One Weekend

Validated trading bot running this weekend

02 Book
Use Claude to Build 7 AI Trading Bots

Use Claude to Build 7 AI Trading Bots

7 bots: trend, pairs, earnings, news, options, crypto, allocator

03 Book
Build TradingView Signals with Claude Code

Build TradingView Signals with Claude Code

Pine v6 indicators you build, test, alert, and rent, no Python

Want the buying order, not the shelf?

These titles sit on a path that tells you which three to buy first.