I Gave Claude Code $200k to Trade Gold…(Full Build) — Transcript
Full transcript
- 0:00So about a week ago I was doom scrolling
- 0:02on Instagram and I've been seeing this
- 0:04thing everywhere [music] that Claude is
- 0:05incredibly good at investing. So I
- 0:08wanted to put this to the test and I
- 0:09started to thinking what if I could turn
- 0:12Claude code into a gold coin.
- 0:17>> [music]
- 0:19>> And give this thing a full control over
- 0:21my portfolio, have it running 24/7
- 0:24constantly back testing strategies,
- 0:26watching gold generating trades,
- 0:28optimizing itself and tracking every
- 0:30trade that I place so this thing learns
- 0:32on its own. And for a moment it was
- 0:34actually showing an 81% win rate which
- 0:37is either absolutely insane or this
- 0:39thing is completely broken. The idea was
- 0:41simple if this thing could survive over
- 0:43100 signals and actually show me
- 0:45realistic figures that this thing's
- 0:47going to work then I was going to give
- 0:48it access to my 200k prop firm account.
- 0:51Which may or may not have been a really
- 0:53bad idea. But first I actually have to
- 0:55build this thing which is way more
- 0:57complicated than I originally thought
- 0:59and took a lot more time. So when you're
- 1:00trading gold you actually have to try
- 1:02and figure out the direction of where
- 1:03this thing is going by looking it at
- 1:05different time frames. So all this means
- 1:07is basically each one of these
- 1:08candlesticks represents a certain period
- 1:10of time. So right now each candlestick
- 1:12represents 30 minutes. But for our
- 1:14strategy specifically we wanted to look
- 1:16at the 15 minute chart, the 1 hour
- 1:18chart, the 4 hour chart and the daily
- 1:20chart. And then this is going to allow
- 1:22our system to have a full picture of
- 1:24what's actually going on in the market
- 1:26over different time frames. So the
- 1:27system ended up looking a little bit
- 1:29like this. So we have the gold chart, it
- 1:31takes the last 200 candlesticks from the
- 1:3315 minute chart, takes the last 200
- 1:35candlesticks from the 1 hour chart, the
- 1:364 hour chart and the daily. It then adds
- 1:39this into a post gross database which is
- 1:41basically just a database that we can
- 1:42speak to. And I didn't just want to give
- 1:44this thing one strategy because that
- 1:46strategy might not work in all market
- 1:48conditions. So instead I gave it four.
- 1:50Strategy one hunts liquidity sweeps when
- 1:52price wicks above a key level, grab stop
- 1:55losses then reverses. Strategy two
- 1:57follows trend pullbacks, classic EMA
- 1:59continuation. And strategy three, wait
- 2:01to volatility compression, then breakout
- 2:03expansion. And strategy four, just sends
- 2:05it in strong momentum. Each output has
- 2:07an entry, a stop loss, a take profit, a
- 2:09confidence score, and reasoning to why
- 2:11it's took that trade. So, we've got the
- 2:12data coming in, but now we need a way to
- 2:14actually manage all this data. And I'm
- 2:16going to call this section the brain.
- 2:18So, we had our data coming in, we had
- 2:20our strategies, but now we actually
- 2:21needed to give this thing a real brain.
- 2:23So, somewhere where we could actually
- 2:25see all the results, all the testing
- 2:26that it's doing. So, it built this. So,
- 2:28every 30 minutes it runs a decision
- 2:30pipeline. It expires stale signals,
- 2:33ranks strategies by performance, like
- 2:35you can see here. Liquidity sweeper's
- 2:36coming up top right now. Checks your
- 2:38risk limits, adjust your position size
- 2:41based on volatility, blocks
- 2:42overexposure, and limits your max daily
- 2:45loss to 2%. And if everything passes,
- 2:47and everything lines up between the
- 2:48strategies, it will then send me a
- 2:50signal over Telegram, and these are what
- 2:52I'm going to be using to actually put
- 2:53onto my prop firm account. No emotion,
- 2:56no hesitation, just math. But, here's
- 2:58where it actually gets interesting. So,
- 3:00I introduced something called the Monte
- 3:02Carlo simulation.
- 3:03>> Monte Carlo simulation is a mathematical
- 3:06technique which is used to estimate the
- 3:07possible outcomes of an uncertain event.
- 3:09So, take for example, the calculation of
- 3:12the probability of rolling two standard
- 3:15dice.
- 3:17Well, if you wanted to calculate this
- 3:19probability the brute force way, you
- 3:21would have to roll the dice a whole
- 3:23bunch, say 36,000
- 3:26times if we consider that there are six
- 3:28sides to a dice, we have two of them,
- 3:30and we want to run this a thousand times
- 3:32to get a good sample size.
- 3:35But, with a Monte Carlo simulation, we
- 3:37can reduce the number of rolls by
- 3:39randomly sampling the possible outcomes,
- 3:42knowing there are 36 combination of dice
- 3:43rolls, and calculating the percentage of
- 3:45times that we get, say, a seven.
- 3:47>> So, every four hours it re-backtests
- 3:50itself over a seven-day window, a 14-day
- 3:52window, a 30-day window, and a 60-day
- 3:54window. It then runs forward validation,
- 3:5780% training and 20% testing. If our
- 4:00sample performance collapses, then it
- 4:01gets flagged as over-fitted. Then every
- 4:036 hours it re-optimizes parameters, 80
- 4:06combinations, Monte Carlo shuffle.
- 4:08Basically, to see if randomness can beat
- 4:10the original. And if it goes really
- 4:12wrong, then it's going to throw the
- 4:13parameters away. If it hits eight stop
- 4:15losses in a row, the entire system shuts
- 4:17down after 24 hours. No signals, no
- 4:20trades, just silence. So, you can truly
- 4:23sit with your pain. So, I decided to
- 4:25give it a couple days to sort of do some
- 4:27back test, come up with some data, and
- 4:29then we could check on the metrics and
- 4:31see how it was doing. But, when I went
- 4:32to look at the metrics, [music]
- 4:34something was a little bit off. The win
- 4:36rate, 81%, sharp ratio, nine, over 1,500
- 4:41trades in 30 days, which absolutely
- 4:43makes no sense. Even the best quant
- 4:45funds in the world can't produce that
- 4:47consistency. So, either claw code is
- 4:49crap gold or something was very wrong.
- 4:52So, it's about four or five days later
- 4:55now, and well, I've been placing all the
- 4:58trades it's been telling me to place.
- 5:00>> It's not looking good, babe.
- 5:02It's not looking good.
- 5:04>> So, as you can see, this is my live
- 5:06funded account, and [music] we are
- 5:09$11,500
- 5:11down,
- 5:12which is
- 5:14terrible. We are cooked. Basically, we
- 5:16just let this AI bot just absolutely
- 5:18nuke our trading account. And it
- 5:20actually took me to lose $11,000
- 5:23just to figure out I was wrong with it.
- 5:26So, none of this was actually making
- 5:28sense. So, it's saying it had a 81% win
- 5:30rate, you know, it's doing these back
- 5:32tests, but somehow I'm $11,000 down. And
- 5:35that's when I realized there was a huge
- 5:37issue. So, it turns out that we were
- 5:39accidentally fixing our own trades. So,
- 5:42every back test the trade was being
- 5:43simulated by the wrong bot. So, if a
- 5:45signal was generated at $5,000 say, it
- 5:48was tested at $5,100, which led to loads
- 5:51of instant wins. So, I decided to build
- 5:54this thing from scratch to make this
- 5:56thing actually work. So, you can see a
- 5:58little terrible diagram of it right now,
- 6:01but the fast API handles the health
- 6:03dashboard, the status, the candles, the
- 6:05scheduler. So, this is where we got the
- 6:08data from. So, this is all the
- 6:09candlesticks. It refreshes every 15 to
- 6:1160 minutes, 30 minutes, 90 seconds, and
- 6:134 hours. Then it optimizes this data,
- 6:16sends it through our pipeline, so
- 6:18through the strategy detector. It then
- 6:20picks which strategy to do, monitors the
- 6:22outcome of the trades, does the trade
- 6:25simulator, and does the metrics
- 6:27calculator. And then all this data is
- 6:28fed back into the Postgres database,
- 6:31where things can then be optimized from
- 6:32there. So, the external service, you've
- 6:34got the 12 data API, got the API for
- 6:36Telegram to send it to us. And then for
- 6:38the dashboard, we've got the signal
- 6:40history, the equity curve, the system
- 6:41status, and the chart, which basically
- 6:43shows us a lightweight version of what
- 6:45we look on any trading chart website.
- 6:47And don't worry if you don't understand
- 6:49this. Basically, all you need to know is
- 6:51one API for a website that can get us
- 6:53all the candlestick data, price data,
- 6:55the green and red things you see on a
- 6:57chart. We get Claude code to build the
- 6:59brain behind it. Does all these
- 7:00calculations, you know, figures out our
- 7:02strategies, does all that calculation
- 7:03for us. You don't need to know a lot off
- 7:05the top of your head. We're going to let
- 7:06this thing do the work for it. We
- 7:07connect it to Telegram, so we can
- 7:08actually receive these signals over it.
- 7:10And everything else, we let Claude
- 7:11handle in the back end. You know, and
- 7:13let me know in the comments if you
- 7:14actually want me to make this GitHub uh
- 7:16repo public, so you can all just access
- 7:18it. If that's useful to you, let me know
- 7:20in the comments. If you do actually want
- 7:21to, you know, jump on a call me
- 7:22one-to-one or speak to me one-to-one, I
- 7:24do have a small community below where I
- 7:25can speak to you directly. I can help
- 7:27you with any of your builds. But, let's
- 7:28get back to the video. So, where does
- 7:30the system actually stand now? We've
- 7:32actually got it showing realistic
- 7:34measures. And right now, it's actually
- 7:35showing a 60% win rate, which is
- 7:38extremely good and a little bit
- 7:40suspicious. But, I'm sure now that the
- 7:42data is all working correctly. Is Claude
- 7:44now a gold quant? Probably not. Is it
- 7:47going to replace traders by the end of
- 7:48the year? Probably yes. The metrics are
- 7:50realistic. The system self-heals itself.
- 7:53Does all the calculations for you. It
- 7:55expects risk and can manage this and
- 7:57shuts down during chaos. But the real
- 8:00test is, now that this is fixed, to
- 8:02actually see if we can recover this
- 8:04$11,000 loss and actually make it back.
- 8:07Because we need to actually give this
- 8:08thing a chance and let it run. Now we
- 8:10fix all the bugs. I'm going to let it
- 8:12loose. And we're going to actually
- 8:13either run this account into the ground
- 8:15or make this money back and get the bag.
- 8:17So, I'm going to again, I'm going to be
- 8:19placing all the trades that it gives me
- 8:21for the next week. And I'll catch up
- 8:23with you for part two. Thanks for
- 8:25watching, guys. And see you in the next
- 8:26one.
About this transcript
This page contains the full transcript of I Gave Claude Code $200k to Trade Gold…(Full Build) by GreymatterAI, generated from the public captions YouTube serves with the video. The transcript has 1,725 words across 251 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.