YouTube2Text

I Turned Claude Into a 24/7 Trader — Transcript

by Nate Herk | AI Automation · 8,434 words · 1,137 segments · language en · Watch on YouTube

Full transcript

  1. 0:00So, Claude Opus 4.6 is finally here, and
  2. 0:02it got me thinking because as I was
  3. 0:03scrolling down and I started looking at
  4. 0:04the benchmarks, I noticed right here we
  5. 0:06have a genetic financial analysis, and
  6. 0:08we have about a 4% jump from Opus 4.6.
  7. 0:11And about a week ago, I dropped this
  8. 0:12video where me and Simon traded stocks
  9. 0:15for 30 days with our open Claude agents,
  10. 0:18and my open Claude agent was set up with
  11. 0:20Opus 4.6, and I was able to beat the S&P
  12. 0:22by about 8% as you can see right here.
  13. 0:24This green line is my chart, and this
  14. 0:26gray line is the S&P. So, if you guys
  15. 0:28want to check out this full video, I
  16. 0:29will link that right up here. So, after
  17. 0:30this challenge, I wanted to keep my
  18. 0:32agent running to see if it could keep
  19. 0:33beating the S&P, but now I want to
  20. 0:35upgrade it to 4.7 instead of 4.6. So,
  21. 0:38that's exactly what I want to cover with
  22. 0:39you guys today. How do we build a 24/7
  23. 0:41AI trading agent with Opus 4.6 inside of
  24. 0:44Claude code? We're not even going to
  25. 0:45touch open Claude or Hermes agent. We're
  26. 0:47going to just do this with Claude code.
  27. 0:49And this is all going to be thanks to
  28. 0:50another feature that we just got from
  29. 0:51the Anthropic team called routines. If
  30. 0:53you don't know what that is, I'm going
  31. 0:54to break it down in this video, but I
  32. 0:55also made a full one if you want to
  33. 0:56check that out, also right up here. So,
  34. 0:58basically, this is the unlock. 4.7 plus
  35. 1:01routines means you can have a 24/7 AI
  36. 1:03agent, and 4.7 was built for full
  37. 1:05throttle agentic work, judgment over
  38. 1:07ambiguity, and self-verifying outputs.
  39. 1:10So, it's perfect for these types of
  40. 1:11routines, and that's how I'm going to
  41. 1:12set up my 24/7 trading agent with Claude
  42. 1:15code routines. So, if you follow along
  43. 1:17with this video, you'll be able to
  44. 1:18pretty much duplicate my exact setup and
  45. 1:20have yourself a working agent and start
  46. 1:23trading with it. So, let's go ahead and
  47. 1:25get started. What are we building? We're
  48. 1:26going to create a Claude code project
  49. 1:28that runs on a schedule, something like
  50. 1:30a pre-market cron, a market open, a
  51. 1:32midday, and a close. It's going to
  52. 1:34research the market. It's going to place
  53. 1:35trades via the Alpaca API. It's going to
  54. 1:38journal and make sure that it's writing
  55. 1:40context into the file so it can learn.
  56. 1:42And then it's going to send me every
  57. 1:43day, every day of the week, an
  58. 1:44end-of-day summary to my ClickUp. The
  59. 1:46goal, obviously, is just to beat the
  60. 1:48S&P. We're not looking to do any crazy
  61. 1:49crypto or crazy day trading stuff. I'm
  62. 1:52just kind of doing this as a fun
  63. 1:53long-term investment. Just beat the S&P
  64. 1:55challenge. Like I said, in my first 30
  65. 1:57days I gave Opus $10,000 and we were
  66. 2:00able to beat the S&P by about 8%, which
  67. 2:02is really good, especially in such a
  68. 2:04short amount of time. So, what is the
  69. 2:06tech stack? We're going to be using
  70. 2:07Cloud Code Routines, that's kind of our
  71. 2:08scheduler. For the AI model, we're going
  72. 2:10to use Opus 4.7. For the skills, we're
  73. 2:12going to be using just kind of like
  74. 2:14building our own as we go. It'll be
  75. 2:15stuff like how the agent does research
  76. 2:17or how it makes decisions or how it
  77. 2:19places trades or, you know, makes logs,
  78. 2:21things like that. We're going to use the
  79. 2:22Alpaca API as our brokerage. We're going
  80. 2:25to use the Perplexity API for research.
  81. 2:27You could also just use the native web
  82. 2:28fetch and web search, but I'm going to
  83. 2:30use Perplexity here. And then I'm going
  84. 2:32to get my notifications in ClickUp this
  85. 2:34time rather than Telegram, just cuz I
  86. 2:36live in ClickUp a lot more. So,
  87. 2:37obviously some of these things can be
  88. 2:38interchangeable for you, but if you want
  89. 2:39to just copy my exact setup in this
  90. 2:41video, then feel free. Okay, so how to
  91. 2:43get started with these different tools
  92. 2:44that we need for this video? The first
  93. 2:46one is going to be Alpaca. So, go to
  94. 2:48alpaca.markets.
  95. 2:49You can see up at the top we even see
  96. 2:50want to trade using AI. We launched an
  97. 2:52Alpaca's MCP server to help you trade
  98. 2:54with natural language. So, you could use
  99. 2:55that. I'm just using the endpoints. I
  100. 2:57honestly like to use endpoints a lot
  101. 2:58more. But anyways, you're going to sign
  102. 3:00up right here and you'll click on
  103. 3:01trading API. Now, once you get in there,
  104. 3:04you will have basically a paper trading
  105. 3:05account and right here you can see I've
  106. 3:07got a paper trading account with 100k.
  107. 3:08You could also open up a new account
  108. 3:10right here and that's how you could put
  109. 3:11real money in. You might, like I said
  110. 3:13though, have to just verify your
  111. 3:14account, which could take a couple days.
  112. 3:16And then they're both the same as far as
  113. 3:18the credentials. You basically scroll
  114. 3:19down and on the right-hand side you have
  115. 3:21your API keys right here. You get an
  116. 3:22endpoint and you get a key, but you also
  117. 3:24need like a secret key. So, you have
  118. 3:25like a secret key and then you need like
  119. 3:26an ID. So, you'd hit regenerate,
  120. 3:28generate new keys, and this is where you
  121. 3:30get your key and your secret. And
  122. 3:33once you copy and paste this, just make
  123. 3:35sure to save it because then it's going
  124. 3:37to go away and you'll only be able to
  125. 3:38see the key, but you need both of them.
  126. 3:40Next up I have ClickUp. This is where I
  127. 3:41want to get my notifications. You don't
  128. 3:43have to use ClickUp, you can use Slack,
  129. 3:44you could use, you know, whatever,
  130. 3:46Telegram, WhatsApp. I would go up here
  131. 3:48and go to my settings, and then I scroll
  132. 3:50down and find ClickUp API, and then I
  133. 3:52would just copy this token right here.
  134. 3:54And then similarly with perplexity, I
  135. 3:55would go down here and I would click on
  136. 3:58all settings, I think. And then in here
  137. 4:00I can see API platform and this is where
  138. 4:02I would be able to go find my actual API
  139. 4:04key. If I went down to right here API
  140. 4:06keys, I can make a new one or copy an
  141. 4:08old one. But basically, the way it works
  142. 4:09is every platform has typically API
  143. 4:11keys. You just have to find them in the
  144. 4:13settings somewhere. If you can't find
  145. 4:14them, just do a quick perplexity or
  146. 4:15Google search or even ask Cloud Code and
  147. 4:17it should be able to help you get to
  148. 4:19your API keys. And now that you know how
  149. 4:20to get these keys, just hold on to them.
  150. 4:22We're going to actually plug them in
  151. 4:23later in the video. And then the final
  152. 4:25piece of the puzzle is going to be the
  153. 4:26Cloud desktop app. You can see here you
  154. 4:28can have Cloud chat, you can have Cloud
  155. 4:29co-work, or you can be in Cloud Code.
  156. 4:31And this is where we're going to set up
  157. 4:33these actual routines where now if I go
  158. 4:35to my calendar, you can see every single
  159. 4:37day I've got Bull, which is my trading
  160. 4:38agent, waking up at 6:00, 8:30, um noon,
  161. 4:433:00 p.m. And then on certain days like
  162. 4:45on Fridays, he's doing a weekly review.
  163. 4:46So this is the way I currently have mine
  164. 4:47set up and we're able to manage
  165. 4:49everything right from here inside of the
  166. 4:50Cloud desktop app because of this whole
  167. 4:53routine feature. So all you need to do
  168. 4:55to use the Cloud desktop app is just
  169. 4:56type in Cloud desktop app download and
  170. 4:58you should be able to install it right
  171. 4:59here. You go to the downloads page and
  172. 5:01then you just have to choose the Cloud
  173. 5:03desktop for your operating system. And
  174. 5:05then the only other thing you need to do
  175. 5:06is make sure that you are on an actual
  176. 5:08subscription. So it has to be a paid
  177. 5:10either 20 bucks a month plan or the max
  178. 5:12plans. Now in this video, you might also
  179. 5:14see me use Cloud Code inside of
  180. 5:15something that looks like this, which is
  181. 5:17the VS Code IDE and then we use Cloud
  182. 5:20Code extension inside of it. It's not
  183. 5:21mandatory, but that is where I typically
  184. 5:23prefer to use Cloud Code because I can
  185. 5:25see all of my files over here. So if you
  186. 5:27want to do that, just type in VS Code in
  187. 5:28your browser, open this up. It's
  188. 5:30completely free to download and then go
  189. 5:31ahead and download it and connect your
  190. 5:33Cloud Code account. So that is pretty
  191. 5:35much the text stack that we're going to
  192. 5:36be using today to get all of this set up
  193. 5:38and let's get back to the video. Okay,
  194. 5:40so before we get into the actual
  195. 5:41step-by-step kind of build, we are going
  196. 5:44to need to talk about the mental model.
  197. 5:46So understand this before you write
  198. 5:48anything. The trading strategy is a
  199. 5:50piece of the work, but the memory
  200. 5:51architecture that you're going to use is
  201. 5:53going to be huge.
  202. 5:54So, every time a routine fires at 7:00
  203. 5:56a.m., Claude code basically wakes up
  204. 5:58essentially stateless. It doesn't really
  205. 6:00know anything. So, how do you make a
  206. 6:01stateless agent act disciplined and
  207. 6:03remember rules and learn over time? You
  208. 6:05do that with files and with context. So,
  209. 6:08every routine basically wakes up, reads
  210. 6:11files,
  211. 6:12does the job, and then writes back any
  212. 6:15important lessons or anything in like
  213. 6:16that the next agent when it wakes up
  214. 6:18needs to know, it just writes that down.
  215. 6:20And that's kind of at a very high level
  216. 6:21the type of framework that we're going
  217. 6:23to be using here. So,
  218. 6:24the final thing I wanted to talk about
  219. 6:25before we get into this is the context
  220. 6:27budget. So, treat tokens like money,
  221. 6:30obviously. Every file that you ask the
  222. 6:31agent to read it's going to cost you.
  223. 6:33Each routine gets about 200,000 tokens
  224. 6:34to work with. I mean, we do have the a
  225. 6:36million token context window models now,
  226. 6:38but I don't really like to think of it
  227. 6:40like I have a million tokens to play
  228. 6:41with because context rot. So, system
  229. 6:44instructions will take some up, strategy
  230. 6:45files, your trade log, your API, your
  231. 6:47research. Every run is going to take a
  232. 6:49different amount of tokens, but just
  233. 6:50keep that in mind. And the reason here
  234. 6:52that we're using, if I go back to the
  235. 6:54stack, Claude code instead of just using
  236. 6:56something like, you know, the agent's
  237. 6:58SDK or I mean, I guess that could work,
  238. 6:59but rather than just using like a
  239. 7:01standard automation, is because if we do
  240. 7:03this with routines, we basically get the
  241. 7:06full autonomy of us working with Claude
  242. 7:09code manually because it goes through
  243. 7:11that whole agentic earnest loop of
  244. 7:13figuring things out. And especially with
  245. 7:14Opus for that 7, it's apparently going
  246. 7:16to be really, really good.
  247. 7:18Whereas, if you just had like an
  248. 7:19automation that would do research and
  249. 7:20then, you know, make a trade, you're not
  250. 7:22getting that super variability that you
  251. 7:24probably want with something that could
  252. 7:26be very volatile like trading. All
  253. 7:29right, so now that we got all of that
  254. 7:30stuff out of the way, let's get into the
  255. 7:31strategy. So, step one,
  256. 7:34think of this like you're teaching a kid
  257. 7:35to ride a bike. You have to explain how
  258. 7:38to balance before you go. You have to
  259. 7:40explain to the kid that he's going to
  260. 7:42steer with his hands and he's going to
  261. 7:43pedal with his feet. And even once you
  262. 7:45put him on the bike, you're not just
  263. 7:47going to let him go. You're going to
  264. 7:48hold the handlebars, you're going to put
  265. 7:49your hand on his back, and you're going
  266. 7:50to walk with him until he gets a little
  267. 7:52more comfortable. And then slowly you
  268. 7:53might take off, you know, you might stop
  269. 7:55steering, but you might just run behind
  270. 7:56him. And then slowly you'll put on some
  271. 7:58training wheels. And like you just keep
  272. 8:00bumping it up in phases. You can't
  273. 8:01expect to just throw a kid on a bike and
  274. 8:03it's instantly going to be magic. So
  275. 8:05maybe you want to start with paper
  276. 8:06trading. This is obviously not financial
  277. 8:08advice and I'm not, you know,
  278. 8:09recommending that you go put all of your
  279. 8:10life savings in here and expect to make
  280. 8:12money and then get mad at me. This is an
  281. 8:14experiment for me and I'm trying to show
  282. 8:16you guys what's possible. So just keep
  283. 8:17that in mind. Start with paper trading
  284. 8:19first if you're not comfortable. But
  285. 8:20anyways, the idea is you need a
  286. 8:22strategy. So for me, what I'm going to
  287. 8:24do is I'm basically going to extract all
  288. 8:26of the strategy that we've been using
  289. 8:27from my Open Claw agent, and I'm just
  290. 8:29going to say, "Hey, let's take this over
  291. 8:31to Cloud Code." So for me it's a little
  292. 8:32easier. But for you, if you actually are
  293. 8:34like a manual trader and every day you
  294. 8:36think about things and you do research
  295. 8:37and you place trades or you sell things,
  296. 8:39then just write down your strategy. How
  297. 8:41often are you checking the news? What
  298. 8:43are the signals that make you realize
  299. 8:44I'm going to buy this or I'm going to
  300. 8:45sell this? As much of your gut intuition
  301. 8:48and your routine about trading that you
  302. 8:50can get into this Cloud Code project,
  303. 8:52the better. And then I will over time
  304. 8:53you're going to help it learn from its
  305. 8:55mistakes, you're going to iterate, and
  306. 8:57it's going to get better and better
  307. 8:58every time you use it. But if you're
  308. 8:59starting completely fresh, which in my
  309. 9:02case of the Open Claw trading challenge,
  310. 9:04I literally just said, "Hey, I'm doing a
  311. 9:0730-day challenge. I'm trying to compete
  312. 9:08against my friend Salmon. Go to
  313. 9:10research. Spin up a team of sub agents.
  314. 9:11You're my wealth advisor. Try to beat
  315. 9:13the S&P. Figure out the best plan
  316. 9:15possible." And that's like genuinely all
  317. 9:17that I said to it, which I think is
  318. 9:18pretty cool. And it went off and it did
  319. 9:20a bunch of research. It figured out a
  320. 9:21strategy for me. And then for the next
  321. 9:2330 days it just did that. And I barely
  322. 9:24had to touch it at all.
  323. 9:26So if you want to start off by playing
  324. 9:27around with some research like that,
  325. 9:28then certainly do that. But if you guys
  326. 9:30remember at the beginning of this video,
  327. 9:31I kind of alluded to this benchmark
  328. 9:33here. So in the official release, and by
  329. 9:36the way, I just dropped a full video on
  330. 9:38this new release. I'll tag that up here.
  331. 9:39So, in the official release of Claude
  332. 9:41Opus 4.7, they always drop the
  333. 9:42benchmarks and they compare it to other
  334. 9:44models that are kind of leading in the
  335. 9:46industry as well. And so, this is the
  336. 9:48one I wanted to talk about in this case.
  337. 9:49We have a genetic financial analysis
  338. 9:5164.4%.
  339. 9:53We also have stuff like gradual level
  340. 9:55reasoning and you know, just the ability
  341. 9:56to think really well. Um genetic search
  342. 9:58actually is worse than Opus 4.6, which
  343. 10:00is interesting. But yeah, genetic
  344. 10:02financial analysis. So, what does that
  345. 10:03actually mean? This basically means that
  346. 10:05it is really good at analyzing a
  347. 10:07company. But it's not basically a signal
  348. 10:10or a benchmark for how good this model
  349. 10:13is at trading and specifically day
  350. 10:15trading. Like this doesn't mean that
  351. 10:16it's going to be able to look at like a
  352. 10:17technical analysis and look at the
  353. 10:18candlesticks and the MACD and figure out
  354. 10:21the exact best moment to buy and then
  355. 10:22the exact moment to sell. I'm not going
  356. 10:24to try to day trade with these agents. I
  357. 10:26just don't know enough about it to do
  358. 10:27it. But that's not what this metric is
  359. 10:29saying. This benchmark rewards models
  360. 10:31that can digest filings and write
  361. 10:32coherent fundamentals-driven theses or
  362. 10:35thesis, I guess. And that maps to
  363. 10:37long-term or swing or
  364. 10:39fundamentals-driven strategies, not day
  365. 10:41trading. So, that's why once again,
  366. 10:42we're just going to be trying to beat
  367. 10:43the S&P here. Okay, so that is the
  368. 10:45overall strategy. Let's talk about the
  369. 10:47scaffold. So, what you need to do to
  370. 10:49spin up the Claude code project in about
  371. 10:5160 seconds is you're going to open up a
  372. 10:53new folder and we're going to open up
  373. 10:54Claude code. So, let me hop over to my
  374. 10:56project right here. This is a new
  375. 10:58folder. It's called trading I think
  376. 11:00trading routine. This is basically just
  377. 11:02a settings file. There's hardly anything
  378. 11:03in there. The Claude doesn't D is blank
  379. 11:05and then we have a read me just because
  380. 11:07I turned this into a GitHub repo so I
  381. 11:08can pull it into a routine later. If you
  382. 11:10haven't done that yet, it's fine. We'll
  383. 11:12talk about that in a sec. The reason why
  384. 11:14we're starting here in VS Code is
  385. 11:15because I want to get started in a place
  386. 11:17where I can see all of my files on this
  387. 11:18left-hand side. Because if you're in the
  388. 11:20desktop app, which we will move over to
  389. 11:22here later, you don't get to see all
  390. 11:23your files open on the left-hand side.
  391. 11:25On the left-hand side, you see your
  392. 11:26routines and your other sessions, which
  393. 11:28is great, but when we're first getting
  394. 11:30set up, I like to be able to see
  395. 11:31everything in one spot. So, we're going
  396. 11:33to start here in the VS Code um either
  397. 11:35terminal or the Cloud Code extension.
  398. 11:38So, let me show you guys what I did.
  399. 11:39This is my Telegram chat with Bull, my
  400. 11:41trading bot, and I said, "Hey, I want to
  401. 11:43completely migrate you to a different AI
  402. 11:45agent setup. I need you to break down
  403. 11:46the strategy, the cron jobs, what are
  404. 11:48you looking for when you're doing your
  405. 11:49research, what type of sub agents do you
  406. 11:51have, what are the different signals,
  407. 11:53give me the full breakdown, all of your
  408. 11:55learnings." And so, it gave me all this
  409. 11:57stuff. And so, what I'm going to do is
  410. 11:59I'm just going to basically migrate over
  411. 12:00this strategy into my Cloud Code
  412. 12:02project. You can see we have all of
  413. 12:04these sell signals, we have all of these
  414. 12:06key learnings, and these kind of main
  415. 12:07frameworks, and we have our current
  416. 12:09portfolio. Real quick, guys, when it
  417. 12:11comes time for you to get set up, I have
  418. 12:13this free resource for you. It's a
  419. 12:1513-page PDF, and I am assuming if you
  420. 12:17dropped this thing into Cloud Code and
  421. 12:19then started to brainstorm with it, it
  422. 12:20would help you out a lot as far as the
  423. 12:22infrastructure and the folder structure
  424. 12:24and the way you want to get things set
  425. 12:25up and the way you want to create your
  426. 12:26routines and things like that. So, it
  427. 12:28should be very helpful. This you can
  428. 12:29download for completely free in my free
  429. 12:31school community. The link for that is
  430. 12:32down in the description. Once you get in
  431. 12:34there, just head over to the classroom,
  432. 12:35click on YouTube resources, and you'll
  433. 12:36be able to find it right in there. So,
  434. 12:39let's get back to the video. So, if I
  435. 12:40pull that up real quick, you can see
  436. 12:41here's today. We had a bit of a a jump,
  437. 12:43and then we came back down today. Here
  438. 12:45is the past month, so this is where we
  439. 12:47were with the um open cloud agent. But
  440. 12:49you guys are going to want to go to
  441. 12:50Alpaca and make an account, especially
  442. 12:52if you want to put real money in. You
  443. 12:53might have to take a few days for your
  444. 12:55account to get approved. So, head over
  445. 12:56there and get an account. Then I also
  446. 12:58told it to give me a technical cheat
  447. 13:00sheet as far as like the different API
  448. 13:01end points it uses and how it makes
  449. 13:02those requests, as you can see, just
  450. 13:04because it already has all this
  451. 13:05knowledge. So, why waste time trying to
  452. 13:07train a new agent if we could just
  453. 13:08migrate over all of these memories and
  454. 13:11knowledge to this new agent. And then at
  455. 13:13the end of that, it even gave me an
  456. 13:15export of all of these important files,
  457. 13:17like the agent instructions, the trading
  458. 13:18strategy, the trade log, the research
  459. 13:20log, the weekly review. And I'm just
  460. 13:22basically going to migrate all this
  461. 13:23over. So, let me show you what that's
  462. 13:24going to look like. So, you can see that
  463. 13:26it gave me this zip file of all of those
  464. 13:29seven files and I'm just basically going
  465. 13:30to extract those into this project right
  466. 13:32here. So I'm choosing the trading
  467. 13:34routine project, select folder and then
  468. 13:36extract and we should see all those
  469. 13:37files just popped up right over here on
  470. 13:39this left-hand side. Now what I'm going
  471. 13:40to do is just talk to my Claude. I'm
  472. 13:42going to switch over here to plan mode
  473. 13:43and I'm just going to start talking. All
  474. 13:45right, so I am creating you as a 24/7 AI
  475. 13:49agent trade bot for me. I had a project
  476. 13:51set up with open Claude and
  477. 13:54we were trading, you know, $10,000 using
  478. 13:56Alpaca for the past 30 days and we were
  479. 13:58doing pretty well, but now I want to
  480. 14:00move it over here so we can set you up
  481. 14:02as a Claude code routine. So I just
  482. 14:04dropped in a ton of context for you.
  483. 14:05There's a ton of files in this project.
  484. 14:07Um if you want to just take a second to
  485. 14:09get sort of like
  486. 14:11acclimated to what I dropped in there.
  487. 14:12There's going to be a lot of
  488. 14:13information, but basically
  489. 14:15that's like all of the knowledge and all
  490. 14:17of the strategies and all of the signals
  491. 14:18that our open Claude agent had and how
  492. 14:20it was able to be successful and I just
  493. 14:23want to migrate that over here to you so
  494. 14:24that we're not losing any of our
  495. 14:26knowledge. I'm also going to paste in
  496. 14:27some of the key things that it told me
  497. 14:29that you should make sure to know. So
  498. 14:31I'm going to drop in that stuff right
  499. 14:33below. Now some of this stuff you can
  500. 14:34take with a grain of salt because it
  501. 14:35might have been set up and optimized for
  502. 14:37an open Claude agent harness, but you're
  503. 14:40Claude code. You understand the best way
  504. 14:42to set up your projects and to do
  505. 14:44things. So what's really important is
  506. 14:45that you're ingesting this information
  507. 14:47and you're understanding it and then
  508. 14:49you're helping yourself organize this
  509. 14:50project in a way that makes the most
  510. 14:52sense to you. Okay, so I know that that
  511. 14:54is a ton of information that I just
  512. 14:56chucked into there and you guys might be
  513. 14:57sitting there like, okay, well I don't
  514. 14:58have all these files. What do I do? This
  515. 15:00is where you just start to brainstorm.
  516. 15:01Literally treat this thing as if it is
  517. 15:03your best friend who is the best trader
  518. 15:05in the world and you are just trying to
  519. 15:06give it your strategy now. So if we
  520. 15:08think back to earlier in step one where
  521. 15:09I talked about the strategy, when you
  522. 15:11open up a piece of paper or sorry, you
  523. 15:13take out a piece of paper, you open up a
  524. 15:14Google Doc and you just start writing
  525. 15:16down. How do you actually trade? What's
  526. 15:19your approach? Once you write down all
  527. 15:21this stuff and you basically just brain
  528. 15:22dump about how you want to do it, then
  529. 15:24you plug it into the Claude code, and
  530. 15:25that's where you see how I set up this
  531. 15:27project here. I'm just helping it get
  532. 15:29situated with what we want to do right
  533. 15:30now. And honestly, the more context and
  534. 15:32details that you give it right now, the
  535. 15:34more it asks you questions, the better.
  536. 15:36As you can see, I'm using the
  537. 15:37brainstorming skill from Superpowers,
  538. 15:39and it's going to start off by asking me
  539. 15:40some questions. Okay, so I just answered
  540. 15:42some questions, and I did want to show
  541. 15:43you guys this. So, it alerted me about
  542. 15:45something with security inside of this
  543. 15:47template that Open Claude gave me, it
  544. 15:50had my live Alpaca key in there. So, I'm
  545. 15:53going to go ahead and rotate those
  546. 15:54before we actually push this new one
  547. 15:56into production, but just something to
  548. 15:58be thinking about when you're migrating
  549. 15:59stuff or when you're feeding in API keys
  550. 16:02directly to a chat. Just be careful of
  551. 16:03that kind of stuff. And I'm going to
  552. 16:04show you how we get our API keys set up
  553. 16:06in routines because you don't want to
  554. 16:07put them straight into a GitHub repo.
  555. 16:09You're going to have to set them up in
  556. 16:10the environment variables, so I will
  557. 16:11show you guys that as well. Okay, so
  558. 16:13this point it's come back with a plan.
  559. 16:15So, Nate ran a live money Alpaca trading
  560. 16:17bot called Bull on the Open Claude
  561. 16:19harness for 30 days, and now we have all
  562. 16:21these context files with strategy, with
  563. 16:23trade history, with research notes, blah
  564. 16:25blah blah. The goal of this migration is
  565. 16:26to make Claude code a first-class home
  566. 16:28for this bot. So, we will set up the
  567. 16:29cron scheduling, the notifications.
  568. 16:31We're getting rid of that agent mail
  569. 16:32step, so me and Solomon were having our
  570. 16:34agents trash talk each other. We're
  571. 16:36going to rotate our credentials, of
  572. 16:37course. And then it's proposing a layout
  573. 16:39for the way that the files should be set
  574. 16:41up. So, you can see, it's going to put
  575. 16:42the files in here into the memory, and
  576. 16:45then we're going to be able to prompt
  577. 16:46our routines to always check the memory
  578. 16:48first and update the memory. So, this is
  579. 16:50where it will really help for you guys
  580. 16:51to brainstorm with how the project
  581. 16:52should be set up. Oh, one other thing
  582. 16:54that I forgot to give it here is that I
  583. 16:55want it to use Perplexity for research.
  584. 16:57So, I'm going to come down here to the
  585. 16:58bottom of the plan, and I'm going to
  586. 17:00say,
  587. 17:01"Yeah, this all looks pretty much good
  588. 17:03to go, but one thing I forgot to tell
  589. 17:04you is that we want to use Perplexity
  590. 17:06for research rather than just the native
  591. 17:08Claude code web search and web fetch
  592. 17:10function. So, add in that Perplexity
  593. 17:12will be used for web search, and once
  594. 17:13again, once we set up up routine, that's
  595. 17:15when I'll give you the Perplexity API
  596. 17:17key. Okay, so after this change has been
  597. 17:18made, we should be ready to start
  598. 17:20migrating over to setting up the
  599. 17:22routines. All right, so the new plan has
  600. 17:24come back. So, here's the end-to-end
  601. 17:26check. Secrets, Alpaca, memory file
  602. 17:29commands, dry run, ClickUp, Perplexity,
  603. 17:32nice. We're going to go ahead and accept
  604. 17:34these changes. And you also notice that
  605. 17:36we have auto mode on. So, I think with
  606. 17:38this new update with Opus 4.7, when you
  607. 17:40auto-accept a plan, it turns on auto
  608. 17:42mode, which means it lets Cloud handle
  609. 17:43permission prompts automatically. Now,
  610. 17:46you will have to be careful though
  611. 17:47because doing this is a little bit more
  612. 17:48expensive. So, if you don't want it to
  613. 17:49be auto mode, then you can just switch
  614. 17:51it right off of auto mode, of course.
  615. 17:53But, um yeah, just something I wanted to
  616. 17:54point out. All right, so while all of
  617. 17:56that's still getting set up, let's talk
  618. 17:57about step three, which is guardrails.
  619. 18:00So, before you start working in the
  620. 18:01trading logic, think about this kind of
  621. 18:03stuff. I obviously talked about how you
  622. 18:04could start with paper mode, and then
  623. 18:06you toggle on real trading and put in
  624. 18:08money when you feel comfortable. You
  625. 18:10could do things like, "Hey, max 5% of my
  626. 18:12portfolio per position." You can have a
  627. 18:14daily loss cap. You can tell the agent
  628. 18:16not to do, like only buy three new
  629. 18:17positions per week, or no options ever,
  630. 18:19or don't do this, or always do this.
  631. 18:21Because the agent is going to be
  632. 18:23autonomous, it's going to be eager, and
  633. 18:24if you don't give it guardrails, it
  634. 18:25might just kind of start to, you know,
  635. 18:27go off the rails. But like I said, even
  636. 18:29though I'm migrating a system over, I
  637. 18:30know it's not going to be perfect. So,
  638. 18:32I'm going to watch every single run, and
  639. 18:33I'm going to read through the
  640. 18:35conversation history of every run, and
  641. 18:36I'm going to see if there's things that
  642. 18:37I need to tweak in the prompt, or things
  643. 18:39that I need to tweak in the project
  644. 18:41settings, or the context files. And like
  645. 18:43I said, just kind of keep building the
  646. 18:44plan as we're flying it here. And then,
  647. 18:46that's where we also start to develop
  648. 18:48skills. Because right now we have skills
  649. 18:50maybe for like a research skill, or for
  650. 18:52a trade skill. But we're going to make
  651. 18:53sure that we're getting them actually
  652. 18:55explicitly invoked, and we're going to
  653. 18:56be making sure that that increases the
  654. 18:58consistency, and we're going to make
  655. 19:00sure that the agent is able to give us
  656. 19:02insights every day of, "Hey, here is
  657. 19:04what worked well, and here's what I
  658. 19:05noticed, and hey, here's where I think
  659. 19:06that maybe we should update these skills
  660. 19:08X, Y, and Z, you you whatever." So, a
  661. 19:11combination of thinking about the
  662. 19:12guardrails and thinking about skills is
  663. 19:14how you can continuously make this thing
  664. 19:16better over time. And now that we've
  665. 19:17talked about all that, we will get to
  666. 19:18the routines and the deployment. Let's
  667. 19:20check in on our
  668. 19:22guy right here. And because I turned it
  669. 19:23off auto mode, it was sitting and
  670. 19:25waiting for me to do a permission. All
  671. 19:27right, so everything has been migrated.
  672. 19:29We're looking good, but we're getting a
  673. 19:31little bit to the point where I like to
  674. 19:32reset the context. So, before we move
  675. 19:34on, I'm going to say, "Hey, give me a
  676. 19:36summary of what we've done." And then
  677. 19:37I'm going to clear the context and we'll
  678. 19:38get started again. All right, so here's
  679. 19:40the session summary that it gave me.
  680. 19:42Copy that.
  681. 19:44Do a slash clear.
  682. 19:46Paste that in, hit enter, and now we're
  683. 19:47basically right back at the beginning
  684. 19:49with a fresh window of context. So, this
  685. 19:52is where it gets pretty cool. You can
  686. 19:53see on the left-hand side it has
  687. 19:54reorganized things. We have our scripts,
  688. 19:56we have our memory files, we even have
  689. 19:58some commands in here, and it built all
  690. 19:59of that just because I told it that I
  691. 20:01was trying to migrate stuff over. It
  692. 20:02also updated this Claude.md file because
  693. 20:05now we have Bull back in all of his
  694. 20:08glory, and we have our Claude.md file
  695. 20:09that is about 156 lines. So, now it's
  696. 20:12time to start planning out step five,
  697. 20:14which is the routines. So, we basically
  698. 20:16need to figure out what are the
  699. 20:17different daily triggers that we
  700. 20:18actually want. And we also don't maybe
  701. 20:20want them every day because the market's
  702. 20:21only open five days a week. So, this is
  703. 20:23kind of like a baseline. This is kind of
  704. 20:24how it worked with my Bull trading
  705. 20:26agent. But I'm actually just going to
  706. 20:28come into VS Code and we're just going
  707. 20:30to brainstorm once again. So, I'm going
  708. 20:31to go on plan mode and I'm just going to
  709. 20:33start asking. All right, so now that you
  710. 20:34know everything about this project and
  711. 20:36you understand what we did with Open
  712. 20:38Claude, I want you to help me figure out
  713. 20:40what is the best way that we should be
  714. 20:41setting up these Claude code routines to
  715. 20:44basically simulate that exact same type
  716. 20:46of environment. So, we have those cron
  717. 20:48jobs, but each one is kind of doing a
  718. 20:50bit of a different thing. You know, the
  719. 20:51pre-market one does a bit of a different
  720. 20:52job than the mid-market one. And the the
  721. 20:55day close one does a bit of a different
  722. 20:57job. So, you have a better idea of all
  723. 20:59of our memory files and our skills, and
  724. 21:02you understand the structure of every
  725. 21:04time the agent wakes up and the routine
  726. 21:06is triggered, they need to read the
  727. 21:08files first to, you know, kind of get it
  728. 21:09acclimated with the environment, do what
  729. 21:11they need to do, research, potentially
  730. 21:13make a trade, potentially sell
  731. 21:15something, you know, whatever it is
  732. 21:16based on their best judgment, and then
  733. 21:18update all of the memory files so that
  734. 21:20next time the next agent wakes up, they
  735. 21:22understand what's going on. So, what I
  736. 21:23want you to do is help me figure out
  737. 21:25what are the right structure for these
  738. 21:28um
  739. 21:29cron jobs, and
  740. 21:31most likely we only want them during the
  741. 21:32week when the market's actually open.
  742. 21:34And just like that, I'm able to brain
  743. 21:36dump and Claude's going to do the heavy
  744. 21:37lifting for me and propose some ideas.
  745. 21:40Okay, let's see the plan that it came up
  746. 21:41with. So, stand up five recurring Claude
  747. 21:44code schedule triggers, and we've got
  748. 21:46these different slash commands that it's
  749. 21:48going to be able to utilize. So, all
  750. 21:50five triggers will run on the weekdays
  751. 21:51only except for the weekly review, which
  752. 21:53is Friday only. So, we have a
  753. 21:54pre-market, which is for research
  754. 21:56catalysts and draft trade ideas. It
  755. 21:58won't message me unless it's urgent. We
  756. 22:00have a market open, which is going to
  757. 22:01execute the planned trades and set 10%
  758. 22:04trailing stops that'll go to the trade
  759. 22:06log. Only if a trade is placed will I
  760. 22:08get a notification. We have midday,
  761. 22:10which will cut minus 7% losers and
  762. 22:12tighten stops on winners, also going to
  763. 22:14trade log. So, here you guys can see
  764. 22:15basically it was able to analyze
  765. 22:17our strategy and analyze what we have
  766. 22:19access to and then build me a plan. And
  767. 22:21now what I want to do is basically just
  768. 22:22have it create those prompts for me so
  769. 22:24that I can go ahead and go set up those
  770. 22:26routines in Claude code. All right, so
  771. 22:28those crons look great. So, I don't need
  772. 22:31you to actually create them. What I need
  773. 22:33you to create for me is the prompts. As
  774. 22:35if I was going to run one of those
  775. 22:37commands into a fresh Claude code
  776. 22:38session and I wanted it to do all the
  777. 22:40right stuff, what is the exact prompt
  778. 22:42that I would enter into that session?
  779. 22:44And the one thing that you need to keep
  780. 22:45in mind here is reminding it to
  781. 22:47obviously um read the files before it
  782. 22:49does anything, and update the files at
  783. 22:51the end, and then also when it needs to
  784. 22:53use an API like Perplexity or ClickUp or
  785. 22:55Alpaca, that it should be grabbing those
  786. 22:58keys from the environment variables of
  787. 23:00that environment, not inside a .env
  788. 23:03file. All right, and now with that
  789. 23:05feedback, it should be able to give us
  790. 23:06those prompts, and then we should be
  791. 23:07able to just set up the routines and go
  792. 23:09ahead and test them out. Okay, so while
  793. 23:11this is writing up, there is one more
  794. 23:12thing that I wanted to show you guys
  795. 23:13that is very important. So, in the Cloud
  796. 23:15Code desktop app, when you go to
  797. 23:17routines and you go to create a new one,
  798. 23:18you can see that you can create them
  799. 23:20locally or remote. So, if you create
  800. 23:22them locally like some of these I have,
  801. 23:24this just basically means that it lives
  802. 23:26in your local directory. It can still
  803. 23:27talk to the internet and do all those
  804. 23:28things, but it lives in your machine
  805. 23:31essentially. And that means if you
  806. 23:33closed out of this desktop app, that
  807. 23:35local
  808. 23:36routine would not fire off. And that's
  809. 23:38why these remote routines are so cool
  810. 23:40because your computer can be off, but
  811. 23:41they're still running because they run
  812. 23:43in the cloud. But what that means is
  813. 23:45when you do a remote run, you have to
  814. 23:47have a GitHub repository to have this
  815. 23:50run in, which is why I have this trading
  816. 23:51routine repo set up.
  817. 23:53And so, when they run via a cloud, you
  818. 23:56know, routine, it basically clones that
  819. 23:59repo in the cloud. It spins up a copy.
  820. 24:01It works out of it. It does what it
  821. 24:02needs to do, and then it basically like
  822. 24:04destroys that cloud environment. So, if
  823. 24:05you want them to run remotely and you
  824. 24:07want those files to persist every
  825. 24:09session, you just have to talk to Cloud
  826. 24:10Code and say, "Hey, make sure, you know,
  827. 24:12because we're doing a routine, make sure
  828. 24:14that all of these files that it's
  829. 24:15actually updating, it's able to push
  830. 24:17back and commit back to that main actual
  831. 24:21branch, back to that main." And we just
  832. 24:22got a notification from my trading bot
  833. 24:24because it was market close. But
  834. 24:27anyways, I was saying, make sure that
  835. 24:29it's able to push those changes back to
  836. 24:31the main repo. Otherwise, the next
  837. 24:32agent's not going to pick it up, and
  838. 24:33then what's even the point? So, you can
  839. 24:35start local if you want, and then you
  840. 24:36can
  841. 24:37sort of graduate to the cloud if you
  842. 24:39want, but I definitely just wanted to
  843. 24:40make sure you guys understood that
  844. 24:42difference there. Okay, so that's done.
  845. 24:44You can see it created this new folder
  846. 24:45right here called routines, and this is
  847. 24:47basically the prompt that we'd be
  848. 24:48feeding into each of the different
  849. 24:50routines that we make in order to make
  850. 24:52sure that Bull actually understands what
  851. 24:54to do. And the last thing we need to do
  852. 24:56is actually push all of these new
  853. 24:57changes to this GitHub repo because
  854. 25:00right now here is my trading routine
  855. 25:01private repo. All that's in there is a
  856. 25:03readme and I don't think there's
  857. 25:04anything in here. So, we need to get all
  858. 25:05of these files that we just created, you
  859. 25:07know, these commands, these scripts,
  860. 25:09these memory files. We can just have to
  861. 25:10get all of this into that repo so that
  862. 25:12our routine can actually access it. So,
  863. 25:13all I have to do is say, "Hey,
  864. 25:15push all of these changes, commit
  865. 25:16everything to the repo." By the way, if
  866. 25:18you've never done that before, it's
  867. 25:19super super simple. You go to
  868. 25:21github.com, create an account. It's free
  869. 25:22to create an account. And GitHub is
  870. 25:24really just like
  871. 25:25um it's like working on um a Microsoft
  872. 25:28Word on your computer and that's like
  873. 25:30local. And if you wanted to share it
  874. 25:32with someone, you would have to put it
  875. 25:33into like the shared drive or, you know,
  876. 25:35a a Google Drive or something. It just
  877. 25:37means that you could grab a code base
  878. 25:39from a different machine because you've
  879. 25:41uploaded it somewhere on the cloud. So,
  880. 25:43that's kind of why we're doing this
  881. 25:44whole thing with the routines in the
  882. 25:45cloud. So, when you get to GitHub, you
  883. 25:47come here, you create a new repository
  884. 25:48or
  885. 25:49the easiest way to do it is you just
  886. 25:51come to your Cloud Code and you say,
  887. 25:52"Hey, help me turn this into a GitHub
  888. 25:54repo." And it will say, "Okay, I need to
  889. 25:56authenticate you. Can I use the CLI?"
  890. 25:58And you say, "Yes, go ahead and do
  891. 25:59that." And then it will basically open
  892. 26:01up a tab and it will say, "Hey, can you
  893. 26:03sign in with your GitHub?" You sign in
  894. 26:05and now your Cloud Code just has your
  895. 26:06GitHub credentials. And whenever you
  896. 26:08need to push changes or clone a repo or
  897. 26:11whatever you need to do with GitHub, it
  898. 26:12can just take care of it because
  899. 26:14GitHub's been around for a long time, so
  900. 26:16it knows it way better than you probably
  901. 26:17do. It knows it way better than I do.
  902. 26:19So,
  903. 26:20when in doubt, just ask Cloud Code. All
  904. 26:22right, so if I give this puppy a
  905. 26:23refresh, we should see that we now have
  906. 26:25all of these files popped in here. We've
  907. 26:27got bull trading routine. Awesome. So,
  908. 26:29let's head over to the Cloud Desktop app
  909. 26:31now and start getting set up. So, what
  910. 26:33you're going to do is you're going to
  911. 26:34click on new session and you want to
  912. 26:35open up the local projects right here of
  913. 26:38whichever thing you just set up there.
  914. 26:40So, right here you can see that I'm in
  915. 26:41the folder called trading routine, which
  916. 26:43we were just working in in VS Code. And
  917. 26:45if you guys remember, in VS Code, we had
  918. 26:47these five different routine prompts.
  919. 26:49And inside of each of these, they had
  920. 26:50the cron, they had the actual like
  921. 26:53steps, and then they had like any of the
  922. 26:55skills or commands that they need to
  923. 26:56run. And this is in a folder once again
  924. 26:58called routines. So, before we start
  925. 27:00talking to our new project, we need to
  926. 27:02set up an actual environment for this.
  927. 27:04So, if I go to new routine and I go to
  928. 27:05remote and I go over here to my um cloud
  929. 27:09environments, you can see that you can
  930. 27:10add one. And so, just add one and I'm
  931. 27:13going to pull up my trading one so you
  932. 27:14guys can see. But here, this is where we
  933. 27:16set up things like our API keys and our
  934. 27:17network access. So, I called mine
  935. 27:19trading. I gave it full network and this
  936. 27:22is where I'm going to put in my API keys
  937. 27:23for Alpaca and for Perplexity and for
  938. 27:25ClickUp.
  939. 27:27And then you basically just go ahead and
  940. 27:28save the changes of that environment and
  941. 27:30this is the one that you want your
  942. 27:32actual routines to be scheduled inside
  943. 27:35of. I am going to basically just talk to
  944. 27:37it right here to help us get these
  945. 27:39remote routines set up. Look inside the
  946. 27:42routines folder inside of this project
  947. 27:45and help me set up all of these
  948. 27:46different scheduled routine runs. They
  949. 27:49should all have a cron job in there.
  950. 27:50They should all have a prompt in there
  951. 27:52already and we will be working out of
  952. 27:54this GitHub repo and scheduling off
  953. 27:56these routines. So, let me know if you
  954. 27:57have any questions. Do not exit the
  955. 27:59planning phase until you're 95%
  956. 28:01confident that you know exactly what to
  957. 28:03do and exactly what I'm looking for.
  958. 28:05So, now I'll shoot that off and it
  959. 28:06should be able to come back with a plan
  960. 28:07to actually go create all of those cron
  961. 28:09jobs for us. Okay, now you can see it's
  962. 28:11coming back and asking us some
  963. 28:12questions. So, the first one is which
  964. 28:13cloud environment should they run in?
  965. 28:15We're going to do trading. That's the
  966. 28:16one you guys saw me set up. We want to
  967. 28:17use Cloud Opus 4.7 and we're going to
  968. 28:20use this GitHub repo. Yes, trading
  969. 28:22routine. All right, so it's set up all
  970. 28:24of those routines for us. You see that
  971. 28:26all I had to do was talk to it. It set
  972. 28:27up these crons cuz I don't know what
  973. 28:29exactly this means, but basically that
  974. 28:30means 6:00 a.m. Monday through Friday
  975. 28:32for all of these. Monday through Friday
  976. 28:348:30 a.m., noon, 3:00 p.m. and then this
  977. 28:36one is just 4:00 p.m. on Friday. So, if
  978. 28:38I go over here to my routines and I
  979. 28:40scroll down, you can see that we have
  980. 28:41these new five routines for bull and
  981. 28:43these are all remote. If I click in this
  982. 28:45one for example says every Friday at
  983. 28:474:00 p.m. Central, we're in the right
  984. 28:49repo. If I click into here, we should
  985. 28:51see we see this entire prompt, which is
  986. 28:53correct, and we're in the right
  987. 28:55environment, which is my trading cloud
  988. 28:56environment. And then one other
  989. 28:58important thing that you have to do is
  990. 28:59inside of your actual um routine, what
  991. 29:02you want to do is go to permissions, and
  992. 29:03you want to turn on allow unrestricted
  993. 29:06branch pushes. This removes the branch
  994. 29:08push restrictions, and Claude will be
  995. 29:10able to actually push to any branch, not
  996. 29:11just the Claude {slash} branches. So,
  997. 29:14turn that on for all five of these
  998. 29:15routines here. So, I'm going to turn
  999. 29:16that on for all five of these routines
  1000. 29:18here. So, let's just pretend that it is
  1001. 29:20Friday. I'm going to do a run now to see
  1002. 29:22if this is able to actually work. And
  1003. 29:23when you run these, you can actually
  1004. 29:25click right here, and you can watch them
  1005. 29:26actually work in real time. And best
  1006. 29:28practice with routines is that every
  1007. 29:30single time you build a new one, you
  1008. 29:31should always do a run now at least a
  1009. 29:33few times to make sure that they are
  1010. 29:34working as expected. And exactly why we
  1011. 29:36test out, you can see what happened is
  1012. 29:38when it tried to hit Alpaca, it wasn't
  1013. 29:40able to find the API key because for
  1014. 29:41some reason, once again, it thought it
  1015. 29:43was going to be in a {dot} env, but as
  1016. 29:44you guys know, we don't have a {dot} env
  1017. 29:46because we don't put that in the GitHub.
  1018. 29:47So, I'm coming back into this session
  1019. 29:49that set up these five, and I'm just
  1020. 29:50going to say, "Hey, remember, all of the
  1021. 29:52API keys are going to be stored in the
  1022. 29:53environment variables. So, all of the
  1023. 29:54prompts must explicitly state that."
  1024. 29:56Okay, so the issue was they weren't
  1025. 29:58spelled exactly word for word, letter
  1026. 30:00for letter. So, I fixed that, and you
  1027. 30:02can even see, for example, this one,
  1028. 30:04they're all now coming through, but for
  1029. 30:05example, in this one, I have the word
  1030. 30:07API right here between Alpaca and
  1031. 30:09secret. So, they have to be matching one
  1032. 30:12for one, otherwise it will think that
  1033. 30:13they're not there. But anyways, now that
  1034. 30:15that has been figured out, it's actually
  1035. 30:17able to look through all of these
  1036. 30:18things, it's able to look through the
  1037. 30:19memory, and it's going to execute our
  1038. 30:21weekly review here. And there we go,
  1039. 30:22just like that, the weekly review has
  1040. 30:24been ran. I also told it that I fixed
  1041. 30:25the Alpaca secret key, so now all of
  1042. 30:27that's been updated. And if you go over
  1043. 30:29to my GitHub, you can see that it was
  1044. 30:31able to push these actual commits to
  1045. 30:33this repo. This one was just a test one
  1046. 30:35that it was running on the background as
  1047. 30:37well, but it was able to actually give
  1048. 30:39us the weekly review, and you can see it
  1049. 30:40was committed by Claude, and it made
  1050. 30:42changes to this actual MD file. So now,
  1051. 30:45the next time it actually will be able
  1052. 30:46to pick it up and we have our stuff all
  1053. 30:48synced up. And alongside that weekly
  1054. 30:49review, you can see that in my internal
  1055. 30:51automations channel, sandwiched between
  1056. 30:53two YouTube notifications, we have the
  1057. 30:56weekly review that the run just sent us.
  1058. 30:58We have our portfolio, we have versus
  1059. 31:00the S&P, and we have any trades that we
  1060. 31:02were making, and then, you know, some
  1061. 31:03best and worst, and also it graded
  1062. 31:06itself a C for the week. So, we'll see
  1063. 31:08how this is able to improve. So, I just
  1064. 31:10spun up this test so you guys could see
  1065. 31:11that we are able to talk to Alpaca right
  1066. 31:13now. You can see that we're able to get
  1067. 31:15the current balance. And if I go into
  1068. 31:17here, we should see 9859. And back in
  1069. 31:20Claude Desktop, where it pulled it,
  1070. 31:229859. And just like that, we have set up
  1071. 31:24a 24/7 AI agent trade system with Opus
  1072. 31:274.7. We've got our 6:00 a.m., our 8:30
  1073. 31:29a.m., we've got our noon, and our 3:00
  1074. 31:31p.m. And then on Fridays, we have our
  1075. 31:33actual weekly review as well. Now, of
  1076. 31:35course, like I talked about earlier, it
  1077. 31:37is on you to now keep testing, keep
  1078. 31:39iterating, making sure that everything's
  1079. 31:40working, and upgrading your strategy as
  1080. 31:42you go. And maybe you want to add some
  1081. 31:43more crons in. Maybe you want to take
  1082. 31:44some away. Maybe you want to add one on
  1083. 31:46just like a Sunday night to do some more
  1084. 31:48research to prep for the week. However,
  1085. 31:49you would actually want to set up your
  1086. 31:51trading strategy if you were doing it
  1087. 31:53manually. Now, I know you guys are
  1088. 31:54thinking like I have four automations
  1089. 31:56per day basically plugged in now with
  1090. 31:58Claude routines, and that's going to eat
  1091. 32:00away at my session limits, right? I
  1092. 32:02mean, yes and no. I'm definitely going
  1093. 32:03to be watching it, obviously. But keep
  1094. 32:05in mind, when I did this with my open
  1095. 32:06Claude agent for 30 days, I was also
  1096. 32:08plugged in my Claude subscription, and I
  1097. 32:10was still doing my own workflows, and I
  1098. 32:12was never really hitting my limits. It's
  1099. 32:14all about managing your context. And I'm
  1100. 32:16going to have a full video dropping
  1101. 32:17about that, another one coming out soon.
  1102. 32:19But I can tell you for certain that if I
  1103. 32:21were to set up all of these crons and
  1104. 32:22have the same sort of autonomy and
  1105. 32:24agentic workflow-ness, and I was just
  1106. 32:27doing this via API, then that would 100%
  1107. 32:29be way more expensive than what I've got
  1108. 32:32set up here. We have now deployed, and
  1109. 32:33now we just go ahead and track. And what
  1110. 32:35is the hidden lesson here? The hidden
  1111. 32:36lesson is that files aren't just memory,
  1112. 32:38but they're essentially the agent's full
  1113. 32:39personality and discipline. Like with
  1114. 32:41Open Claw, you set up your soul.md file
  1115. 32:43and you've got your agents.md file and
  1116. 32:45you got all these different files. So,
  1117. 32:46it's really about how do you make sure
  1118. 32:48that you orchestrate this in the right
  1119. 32:49way so that it can access the right ones
  1120. 32:51when it needs to. So, anyways, I hope by
  1121. 32:53the end of this video you guys are able
  1122. 32:54to follow along and set this up. I'm
  1123. 32:56going to be giving away this document
  1124. 32:57and it's going to have way more
  1125. 32:58information in there basically about
  1126. 32:59everything that we've gone over today
  1127. 33:01and I'll drop that in my free school
  1128. 33:02community. The link for that is down in
  1129. 33:04the description. Once again, completely
  1130. 33:06free. But, that is going to do it for
  1131. 33:07today. So, if you enjoyed the video or
  1132. 33:08you learned something new, please give
  1133. 33:09it a like. It helps me out a ton. And as
  1134. 33:11always, I appreciate you guys making it
  1135. 33:12to the end and I'll see you in the next
  1136. 33:13one.
  1137. 33:14Thanks, everyone.

About this transcript

This page contains the full transcript of I Turned Claude Into a 24/7 Trader by Nate Herk | AI Automation, generated from the public captions YouTube serves with the video. The transcript has 8,434 words across 1,137 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.