This website uses cookies

Read our Privacy policy and Terms of use for more information.

Welcome back to the Miles Deutscher weekly newsletter! 

I turned Claude's newest model into a stock trader. It scans a list of stocks, works out the size, and places the order with the stop and target already attached. It does all of that while my laptop is closed. 

Replayed on this year's real prices, it turned $10,000 into $11,644. The S&P 500 did $11,087 over the same stretch. 

I'll walk you through the whole build below, with the prompts. I'll also show you the part that made me trust it more than any of the backtest numbers. 

In markets, it was meant to be AI's big week. Nvidia beat, Anthropic pulled off the biggest IPO ever, and the Nasdaq still fell 10%. Bitcoin printed its 7th red week in a row and wicked to $55K. 

Inside MHC, Surf caught a +149.68% BTC bounce in the middle of the crash, and 1 member made +2,092% betting against chip stocks. 

We've also got a Black Friday offer on MHC this week, the lowest price of the year. Whatever price you join at is what you pay at every renewal, for as long as you stay subscribed. Grab the Black Friday offer → 

After our main breakdown, stick around for AI Skills & Prompts, this week's market update, and the MHC Recap of setups from inside the room.

AI X TRADING: This week's AI workflow built for traders

I Gave Claude My Trading Rules and Closed the Laptop

If you trade, you know the feeling of spotting a setup when you're busy, or half-asleep, and doing nothing about it. Or worse, doing something sloppy about it.

In my 7 years of trading, most of my mistakes have come down to execution. I knew the plan and then didn't follow it.

So I built a trading desk where Claude Fable 5.2 does the execution. I set the rules once. It finds the trade, sizes it, and places it with a stop loss attached. I filmed the full build here.

The broker

I used Alpaca for this. It's easy to connect to Claude, and it has a free paper trading account, so you can test everything with fake money first. You can hook up Interactive Brokers too, it's just more fiddly.

You give Claude your Alpaca keys in a .env file that it sets up for you. Never paste keys into the chat itself.

The first thing I ask is a boring safety check: "Check my Alpaca paper account and tell me the cash balance, open positions and open orders. Don't place anything." That way I know it's reading the paper account and not my real one.

Once that works, you can trade by typing. I told it "buy Nvidia with 20% of the account," and it bought 12 shares at $162.85, about $1,954 of my $10,000.

Step 1: the rule book

This is the most important part of the whole build.

The rule book is a plain text file called rules.md. It lists every decision I make on a trade, and Claude reads it before it does anything. It never has to guess.

→ What it can trade. A list of 30 big US stocks in stocks.txt. They're easy to buy and sell, and there's a lot of data on them.

→ Size. 20% of the account per trade, in whole shares.

→ Stop and target. Stop at 2x the average daily range below entry, target at 4xabove. On these stocks, the stop usually lands around 5% below price, so a 20%position loses about 1% of the account if it gets hit.

→ Time limit. If a trade hasn't gone anywhere in 30 trading days, it sells at the open.

→ Limits. 5 positions max (5 x20% is the whole account), and no new trades if the account is down 3% on the day.

→ Mode. "Alert" or "order". More on that in step 3.

Your risk rules have to come from you. If you're not sure, have Claude suggest a starting point and explain why, then argue with it until you're happy.

Then I made a second file, CLAUDE.md, which Claude Code reads at the start of every session. It says: read the rules before any trade, show me the shares, stop and target, and place every trade as a bracket order.

A bracket order is a buy with the stop and target attached. The broker holds those orders, so the trade stays protected overnight even when Claude and my laptop are off.

The last line in that file is my favourite: if anything looks wrong, place nothing.

Step 2: pick a strategy and test it

A strategy is just an entry, an exit and a size. We already have the size and the exit, so we need an entry.

There are 4 places I'd look. Your own trading (describe your setup, paste your journal, or your TradingView Pine Script). Published strategies from well-known traders and sites like Quantpedia. Free GitHub repos like TradingAgents or VibeTrading. Or Fable itself.

For the video, I asked Fable for 3 classic long-only ideas: a breakout, a pullback in an uptrend, and an oversold bounce. Then I had it backtest all 3 over 5 years of real prices, with $10,000 and my exact rule book.

The breakout won at $17,762. Holding the S&P 500 made $17,465. And just holding all 30 stocks made $21,237, more than any of the 3 strategies.

That's worth sitting with for a second. It's been a huge 5 years for big stocks, so anything that waited for a signal missed some of the run. In a different market, the

order could flip, and the strategy gives you rules for getting out, which buy-and-hold doesn't.

I went with the breakout. It buys a stock when it closes at its highest level in 55trading days, and only if it's above its 200-day average, so it only buys stocks that are already going up.

Step 3: the analyst and the trader

I split the work between 2 models.

A cheaper model (Claude Sonnet 5.5) is the scanner. It checks the list against the entry rule, and you could run it every morning or every 10 minutes.

Fable 5.2 makes the decisions. It reads the rules, checks what I'm already holding in Alpaca, looks at the scanner's list, works out the trades, and writes everything to a log.

Now the mode. On "alert", it tells me what it wants to buy and waits for me to say"take the trade". On "order", it just places it. Switching is 1 word in the rule book.

For stocks, I mostly run alert mode, honestly. Getting all the research done for me and then replying "take it" from my phone is already a massive upgrade.

Step 4: make it run without you

Right now the desk only runs while my computer is on. You've got a few options to fix that.

→ Claude scheduled tasks. These run a prompt at a set time on Anthropic'scomputers, so it works with your laptop closed. Put the folder in a GitHub repo so it can read your files.

→ An always-on agent. Claude has its own, and there are others.

→ A VPS. This is my preferred option. You rent a small always-on computer, install Claude Code on it, and connect Telegram so you can talk to it from your phone.

What it would have made

I replayed the desk on this year's real prices. $10,000 became $11,644 (+16.4%) over 75 trades. The S&P 500 did +10.9%, and holding all 30 stocks did +13%.

On the Monday night I recorded, the scan found 8 stocks. My rules only allow 5positions, so it bought the 5 strongest: Johnson & Johnson, Coca-Cola, Apple, Procter & Gamble and Disney.

That's the bit I mentioned at the top. 8 signals came up and it took 5, because the file said 5. I want that kind of discipline from a trader, and honestly I don't always manage it when I'm trading by hand.

Do this before next Tuesday (under 30 minutes)

Open Claude Code in a new folder and paste these in order. Use a paper account.

Prompt 1: the rule book interview   

Create rules.md in this folder. It's the rule book for my trading desk. Ask these questions one at a time, then write the file:

1. Which stocks am I allowed to trade?

2. How much of the account goes into each trade?

3. How many positions can I hold at once?

4. How much can the account lose in a day before I stop opening trades?

5. Where does the stop go on each trade, and where does the target go?

6. How long do I hold a trade that isn't going anywhere?

If I'm not sure about one, suggest a starting point and explain it. Leave a line for the entry rule and a line for the mode (alert or order). I'll fill those in later.

Prompt 2: the desk instructions

Create CLAUDE.md in this folder with these instructions:

You run a trading desk on my [BROKER] paper account. Before any trading action, read rules.md and follow it exactly. Show me the shares, stop, and target, then place the order as a bracket order. Never trade a stock that isn't in stocks.txt.Write every action to log.md. The broker account is the source of truth. If anything looks wrong, place nothing and explain why in the log.

Prompt 3: the backtest

Suggest 3 well-known long-only entry rules for the stocks in stocks.txt: a breakout, a pullback in an uptrend, and an oversold bounce. Write each one using the stop, target and time limit style in rules.md.

Then write a backtest that tests all 3 on daily prices over the last 5 years, starting with $10,000 and using the same position size and limits as rules.md.Include trading costs. Compare them with holding the S&P 500 and holding all the stocks in stocks.txt. Show return, max drawdown, Sharpe ratio and number of trades for each. If the data is missing or unreliable, tell me instead of guessing.

Where this goes wrong

The 5-year test ran through a strong market for big tech. Last week the Nasdaq fell 10% in 5 days. A long-only breakout system would have bought strength into that, and the stops would have done a lot of work.

Stops aren't perfect either. If a stock gaps down overnight, a bracket stop fills at the next available price, which can be well below your level.

And a replay isn't a live account. I'd run this on paper for a few months and only move real money once it behaves the way the test said it would.

Picking the right strategy for the market you're in is the part a bot can't do for you. Our analysts argue about that every day inside MHC.

AI SKILLS & PROMPTS: Manually curated prompts, skills, workflows & more

4 Claude Tricks That Make Your Setup Cheaper and Smarter

If you built anything with Claude this year, like a trading desk, a research skill, or a watchlist script, a few of these will save you money and fix mistakes you didn'tknow you had.

We went through Anthropic's docs and picked the most useful ones. I put all of them in 1 guide here.

→ 1. Audit your old setup with the new model

Every time a new Claude model comes out, Anthropic's Alex Albert runs the same audit over his existing projects. A smarter model catches things the old one missed.

Paste this into Claude Code inside your project:

Read this entire project and identify anything broken, inconsistent, inefficient, or no longer needed.

Fix what you're sure about and list the rest for me to review.

I'd point it at your Skills and rule files too. If a Skill was written with an oldermodel, 1 bad instruction in it affects every task it runs. Review the changes before you accept anything that touches real money.

→ 2. Stop paying top prices for simple lookups

Claude Code often sends file searches to a helper called Explore, and that helper can end up running on your most expensive model just to find a file. You can give it a cheap, read-only version:

Create a personal Explore subagent in ~/.claude/agents/ using model: haiku. Give it read-only file-search tools (Read, Grep, Glob), and use it for code base lookups. Show me its configuration before saving.

For bigger jobs, use the 10-80-10 split: a strong model plans, cheaper models do the bulk of the work, and the strong model reviews. It's the same reason my trading desk uses a cheap scanner and saves Fable for decisions.

Plan with Opus, and have Haiku/Sonnet workers do independent research or checks, and review their findings before making changes. Don't delegate if a single session is simpler.

→ 3. Find the mistakes Claude keeps repeating

Type /insights in Claude Code. It reads your recent sessions and builds a report on where things keep going wrong. Then turn that report into rules:

Read my Claude Code insights report. Find the three most frequent mistakes, with examples from the report. Suggest one short rule for each that I can add to the relevant Skill or project instructions. Show the changes first; don't edit anything yet.

Anthropic's own team keeps a "Gotchas" section in each Skill for exactly this.

→ 4. Undo a bad run without starting again

If Claude heads down the wrong path, type /rewind or press Esc twice. Pick the point just before the mistake and go again from there, keeping the useful research.

The catch: rewinding the conversation doesn't undo everything. It won't reverse things Claude already did outside Claude Code, like an order it placed with your broker. That's one more reason to keep a trading desk on paper while you'rebuilding it.

Do this: run prompt 1 on your most-used project today, and /insights at the end of the week. Add the 3 rules it suggests and see if the same mistakes come back.

MARKETS: The catalysts and moves that matter this week

Weekly Market Update

On paper, last week should have been a great one for AI. Nvidia reported revenue that more than doubled, and Anthropic listed in the biggest IPO ever.

Instead, the Nasdaq fell 10%, and Bitcoin hit its lowest price in over 2 years.

→ Bitcoin overview

BTC closed its 7th red week in a row at $60,094. That's the longest losing streak since the Terra collapse in 2022, and about 30% off the start of the run in early October.

On Saturday it wicked to $55,130, the lowest since September 2024, and $1.8B of positions got liquidated, mostly longs. It's bounced to about $61,600 this morning.ETH is around $1,730.

My read: losing $62K was a proper breakdown. We lost both the horizontal support and the downtrend line, and the selling was a lot more aggressive than the June fakeout.

Getting back above $58K was a decent first sign, and we've done that. But I want a reclaim of $62K before I treat this as anything more than a bounce. Below us, the next big level is the realised price around $53.5K, roughly the average on-chain cost basis of the whole market.

My plan: I'm not catching knives on thin weekends. If I add anything on capitulation, it's mainly gold and big tech. In crypto, I'll only take a swing if the 4-hour momentum picks up.

→ Key takeaways: the week AI stopped carrying markets

1. Good AI news got sold.

Nvidia's first report since Jensen Huang's exit was strong, and the stock fell anyway. Tech companies that beat forecasts this season fell 1.5% on average on the day, the worst reaction to good news since at least 2001. Chip stocks had their worst week since the one after 9/11.

Why it matters for your bags: crypto has traded with the AI trade all year. When good news gets sold, the market is de-risking, and crypto is usually the first thing people cut.

2. Stocks had a historic week.

The S&P 500 fell every single day, with 4 drops of 1% or more. That's only happened 5 other times since World War II, including September 2001 and October 2008. Over the week, the Nasdaq lost 10.02% and the S&P 500 lost8.61%.

Why it matters for your bags: the damage is concentrated in AI and chips. The typical S&P 500 stock is about flat since the end of September. That makes this look more like an AI unwind than a full recession scare, which is a better backdrop for a recovery.

3. Anthropic popped, then gave most of it back.

Anthropic priced at $83 and raised $81.3B. It opened at $111.50 and closed day 1at $97.17. By Friday, it closed at $88.91, after dipping to $83.05, 5 cents above the IPO price.

Last week I told you the Hyperliquid pre-IPO perp was trading at $103.93. It turned out to be too optimistic.

Why it matters for your bags: last week I said we could test the "people are selling crypto to buy the IPO" theory. If that was the main problem, the selling should have eased after Thursday. It got worse. So IPO cash was at most part of the story.

4. The ETFs are still the biggest seller.

Spot Bitcoin ETFs lost $1.79B last week, the biggest week of outflows since June and the 4th losing week in a row. November is at $4.14B out. Total ETF assets are$71.35B, down from about $110B in mid-September.

Why it matters for your bags: ETF buyers are in around $81K on average and Strategy around $75K. A lot of holders are underwater, and many of them will sell into bounces to get out near breakeven. I want to see a run of green ETF days before I trust a rally.

5. There are real signs of capitulation.

Holders realised $11.3B in losses in 7 days, about 8x the gains booked. The big cluster of leveraged longs between $59K and $62K got wiped out, and the Fear &Greed index is at 11.

Why it matters for your bags: a lot of the forced selling is done. But we checked every red-week streak this long, and none of them marked the bottom. Price made a lower low later every time. So I'd treat the first green week as a breather.

6. The Fed is still hiking into this.

The October Fed minutes showed nearly all officials expect a hike in December, and 2 floated a half-point move.

Why it matters for your bags: Wednesday's PCE number is the last big inflation read before that meeting. A hot print brings back the 50 basis point talk, and

that's the opposite of what crypto needs.

MHC RECAP: Setups and wins from inside Miles High Club

This Week Inside MHC

→ Miles on $HYPE ( ▼ 1.54% )

The biggest HYPE long on Hyperliquid is 1.38M HYPE, about $83M at 5x, with liquidation price around $52.96. A flush to $53 could start liquidating it and add selling to an already weak market.

I'm not front-running that liquidation hunt, it's too obvious and crowded. If we wick to $53 and the selling gets absorbed, that's where a bounce gets interesting. Getting back above $60 and holding is the first step, and HYPE is at about $62.90this morning.

→ Morin on $JUP ( ▼ 4.46% )

Morin wants a rounded retest into the daily supply zone at $0.24 to $0.26 to short. JUP hasn't made new lows like most alts, and the weekly 12 and 25 EMAs sit right in that zone.

His trigger is a sweep inside the zone or price accepting back below it, with the stop above the zone. JUP is at about $0.24 this morning, so this one is live.

→ Paradise and Fabian on $ZEC ( ▼ 6.49% )

Paradise and Fabian see ZEC differently right now. Paradise added more spot this morning: a daily divergence into the previous all-time high, holding inside his

weekly trend band. He's clear he isn't calling the bottom and wants to build the rest if price ranges here.

Fabian is waiting. He wants ZEC to reclaim the levels it lost without breaking the~$680 low before he accumulates again. ZEC is around $790 now.

→ Room win of the week

LimsAlgo went long on a fund that goes up when chip stocks go down, resulting in a 2,092% trade.

Every plan above was posted in the room with its levels and invalidations before price got there, including the ones that lost. If BTC revisits $55K, that's whereyou'll see how they trade it, live.

We went through the stops on the scorecard; Surf still caught a +149.68% BTC bounce in the crash, and LimsAlgo made +2,092% on the chip unwind. Six full-time traders cover crypto, macro, equities and futures. If you want to follow that live, the Black Friday plans are the lowest price of the year.

Whatever price you join at is what you pay at every renewal, for as long as you stay subscribed. Cancel, and that price is gone. You can also pay in crypto on the 6 and 12-month plans.

The sale ends Nov 30.

Remember: not financial advice; always do your own due diligence.

CONTENT PIPELINE: Latest content from Miles Deutscher Finance

New From Miles

YouTube: [I Tested Gemini Neon 4 vs Claude. What You Need To Know.] Watch now →

𝕏: [10 (real) GTA VI business models to make serious money]. Read now →

Skool: New prompts, workflows, research & more. Join here (100% free) →

MHC: Live setups and analysis from our traders, every day. Join MHC →

See you next Tuesday,
Miles Deutscher & team

Want to sponsor or partner with us? Reach out at [email protected]