Video summary
How To Actually Build an AI Trading Bot With Claude (3 Hour Course)
Main summary
Key takeaways
Summary
The presenter demonstrates a framework for building an automated trading system with Claude or ChatGPT Codex. The central message is that code generation is not the main challenge: strategy rules, realistic testing, risk controls, and ongoing monitoring matter more. The course’s ALPHA framework covers architecture, logic, proof, harnessing the bot to a broker, and adapting the system over time.
Strategies and portfolio design
The example system separates a core holding strategy from shorter-term sleeve strategies. The core rotates between QQQ and gold: hold QQQ when QQQ is above its 200-day moving average; otherwise, hold gold. Sleeves are smaller strategies intended to be tested, replaced, and diversified over time.
Example sleeves include:
- Dip-buy / mean-reversion: Buy at the next open when RSI(2) < 10 and price is above its 200-day average. Exit when price closes above its 5-day average or after 10 days, whichever comes first. The example uses an 8% stop and a 10% account allocation.
- Breakout / momentum: Buy at the next open after a 50-day high, provided price is above its 200-day average. Exit at a 20-day low or when price closes below its 200-day average.
The presenter says the core could be 70% of a conservative portfolio, with sleeves making up the remainder. Elsewhere, the example account is configured with 100% in the core and sleeves layered on top, potentially using margin. These are configurable examples, not a single consistent allocation recommendation.
A screener example filters stocks for an uptrend above the 200-day average, a 60-day high, and a close 8% below the 20-day average, then buys at the next open and sells 10 trading days later.
The presenter recommends matching a strategy to an asset’s observed behavior: momentum strategies for assets that tend to keep rising after highs; mean-reversion strategies for assets that tend to rebound after drops; and defensive assets for periods when stocks fall.
The suggested asset study examines trend and volatility behavior, rebound after drops, continuation after highs, correlation with stocks, and behavior during stock-market declines. A correlation near 0 suggests diversification; +1 indicates near-identical movement, and −1 indicates inverse movement.
Backtesting and reported results
The example test design uses 2022–2024 as the training window and keeps 2025 onward locked as out-of-sample data. The locked data is meant to be evaluated only once. Changing a strategy after seeing that result turns the test data into training data.
The presenter’s minimum checks include realistic costs, next-open fills, recent data, a locked test, return relative to drawdown, sufficient trades, and profitable neighboring parameter settings. Neighbor checks are intended to detect fragile results that only work at one precise setting.
Before testing strategies, the course checks the backtester with planted signals, random/noise data, and a “look-ahead” signal that should be rejected. The reported planted-edge result was 0.8% per trade after 0.1% costs, within the stated expected range of 0.6%–1.2%.
The example strategy funnel requires at least 15 trades for dip buys and 6 for breakouts, plus a profit factor of at least 1.3. Of 44 candidate ideas, 7 reportedly passed all gates. The presenter’s sample passing sleeves were:
- QQQ dip-buy and breakout strategies
- XLK dip-buy and breakout strategies
- XLF breakout
- XLY dip-buy
- Gold dip-buy
The presenter reports that QQQ was selected as the core “engine” and gold as the defensive asset. In that sample, gold reportedly returned about 8% annually on QQQ downtrend days, versus about 2% for cash. The tested bond funds lost money during the sample as interest rates rose.
Reported backtest figures include:
- Core strategy: 24.8% annualized return and 11.2% maximum drawdown on the locked test.
- Combined core-and-sleeve example: about 28.7%–29% annualized return and 13% maximum drawdown on the locked test. Another view reports growth from about $146,000 to $221,000 from 2025 to 2026.
- A broader run starting with $100,000 in 2022 reportedly reached about $260,000, with a worst drawdown of roughly 30% in 2022.
These are presenter-reported historical backtest outputs, not independently verified results or forecasts.
Markets, costs, and macro context
The course defaults to daily bars, in part because they are easier to backtest and can use free historical data. The presenter says faster trading requires more data, live feeds, monitoring, and more careful slippage assumptions.
The example cost assumption is 0.05% per side, or about 0.1% round trip. The presenter estimates that a strategy trading about once per trading day could spend roughly 25% of profits on costs at that assumed rate.
For intraday data, the presenter cites limited Yahoo Finance history—about one month of 1-minute bars, two months of 5-minute bars, and two years of hourly bars—and names paid providers such as Alpaca, Massive, DataBento, and First Rate Data. Quoted provider prices range from about $29 to $199 per month; Alpaca’s paid all-exchange feed is described as $99 per month. These are video claims and may change.
A possible market filter uses VIX and market breadth: if VIX is above its one-year midpoint while breadth remains above 50%, the core holds gold for five trading days. The presenter says a prior study tested more than 1,600 filters, underscoring the risk of selecting a filter by chance.
Broader macro factors mentioned include Fed statements, market fear and volatility, market breadth, and rising interest rates, which the presenter links to falling bond prices in the example period.
Execution, risk controls, and maintenance
The example bot evaluates daily prices after the close, queues market-on-open orders after 7 p.m. New York time, and targets execution at the next market open. The presenter says the timing is chosen to meet Alpaca’s order-handling rules.
The course recommends paper trading for weeks to months before considering real money and says to wait until paper performance and the backtest align. It also presents a progression from alerts, to human approval, to full automation.
Risk safeguards include broker-held stops, reconciliation against actual broker positions, duplicate-order prevention, a run lock, and checks that data is current. A daily account loss greater than 3% blocks new sleeve trades; a loss greater than 5% triggers a pause. A separate rule reduces or stops borrowing if the account falls beyond the backtest’s worst drawdown.
A sleeve’s proposed “kill line” is twice its worst tested drawdown. The system can flag a sleeve for review if, after at least three months live, its trading frequency falls below half or rises above twice its tested rate. The presenter cautions against removing or changing a strategy because of one bad week.
Sleeve replacement is meant to use a previously tested “bench,” check correlation (the example threshold is 0.6 or lower), and confirm that the replacement does not worsen account return relative to drawdown. Rule changes should be tested and logged. Claude may review performance, but the presenter says it should not change trading rules without human approval.
For small accounts, orders must be whole shares. The presenter gives a $2,000 example where a 20% allocation is only $400 and may not buy an ETF share priced around $500. The course also warns that margin, frequent trading, and options introduce additional risks and costs.
The presenter says FINRA removed the $25,000 day-trading rule on June 4, 2026, and advises checking the specific broker’s implementation. This regulatory statement should be verified with the broker or regulator before relying on it.
Assets, instruments, and providers mentioned
- Tickers and funds: QQQ, SPY, IWM, DIA, XLK, XLF, XLY; ETFs tracking stocks, bonds, gold, and utilities; and individual stocks including Nvidia/NVIDIA, Tesla, and Nike.
- Other assets and instruments: Bitcoin and crypto generally; gold; cash; short-, intermediate-, and long-duration bond funds; stocks, options, and futures; VIX; and S&P 500 stocks.
- Platforms, brokers, and data sources: Claude, ChatGPT/Codex, Alpaca, Interactive Brokers (IBKR), Schwab, Yahoo Finance/YFinance, FRED, Massive, DataBento, First Rate Data, Coinbase, Binance, Kraken, and Telegram.
The presenter says IBKR offers broader country coverage and futures, but requires IB Gateway to be running and periodic logins. He describes Schwab API access as requiring approval and periodic reauthentication. Broker terms, access, and pricing should be checked directly.
Disclosures and cautions
The presenter explicitly says the video is not financial advice and does not guarantee profits. He cautions against relying on untested AI trade calls, overfitting, look-ahead bias, omitting costs, using too few trades, ignoring survivorship bias, and moving from backtests to live capital too quickly. He also notes that AI-based qualitative calls are difficult to backtest reliably and should be treated as an optional, limited layer rather than a substitute for testable rules.
Presenter and sources: The presenter is Brendon of AI Pathways. He says he previously worked in investment banking and studied math and economics at UCLA. Sources and services discussed include Claude, ChatGPT/Codex, Yahoo Finance/YFinance, FRED, Alpaca, IBKR, Schwab, Massive, DataBento, First Rate Data, and Telegram, along with prior studies the presenter attributes to GPT/Astra.
Rate this summary
Your feedback will help improve summaries.
Improve this summary
Reprocess with a stronger model when the summary feels incomplete or inaccurate.
Translate summary in another language
Ask questions to this video
Chat for follow-up questions, clarifications, and source-backed answers.