YouTube2Text

I Built an AI Trading System With Claude + TradingView — Transcript

by Humbled Trader · 5,066 words · 713 segments · language en · Watch on YouTube

Full transcript

  1. 0:00I've been using Cloud Code, Trading
  2. 0:02View, and various other AI tools to
  3. 0:04build a pre-market scanner, strategy
  4. 0:06filters, and a Pine Script strategy on
  5. 0:09Trading View. And I'll show you how to
  6. 0:11do so in this video. AI is a talk of the
  7. 0:14town. While you see a lot of AI
  8. 0:16enthusiasts on YouTube integrating
  9. 0:19Claude or Codeex with their trading
  10. 0:21view, and those videos are great, don't
  11. 0:24get me wrong, but they're not traders
  12. 0:26after all. Remember AI is mostly just
  13. 0:29slop without specialized knowledge
  14. 0:31behind it. Trading is the same. You need
  15. 0:34real trading experience first. Then AI
  16. 0:36becomes a tool to sharpen your edge
  17. 0:39instead of generating generic
  18. 0:41strategies. The thing is AI won't
  19. 0:44magically make you profitable. So today
  20. 0:47I want to show you my take as a
  21. 0:49full-time trader with more than 10 years
  22. 0:51of experience. How to automate your
  23. 0:53trade planning process with claude code
  24. 0:56and trading view. So here's what you'll
  25. 0:58learn in this video. First, how to set
  26. 1:00up trading views connection to claude.
  27. 1:02All the potential use cases and how you
  28. 1:04can overcome the limitations. Number
  29. 1:07two, how to create your own pre-market
  30. 1:09gap scanner and news briefing. Three,
  31. 1:12create your own strategy, then back
  32. 1:14testing your own strategy on Trading
  33. 1:16View with Pinescript. Number five, more
  34. 1:19AI trading automations sending alerts
  35. 1:22straight to your phone. And finally, the
  36. 1:24bonus chapter of this video, how to use
  37. 1:27Trading View's own AI that's still in
  38. 1:29beta. Before we start, I just got to say
  39. 1:32this. I'm not a technical person. I have
  40. 1:35no background in coding or tech, but I
  41. 1:37am a trader and I'm leveraging AI tools
  42. 1:40to automate and optimize my process
  43. 1:42today. So, if a non-technical person
  44. 1:45such as myself can do this, then so can
  45. 1:48you. Today's video is jam-packed. If
  46. 1:51you're ready to follow along, make sure
  47. 1:52to drop a like down below and subscribe
  48. 1:55because I'm about to release a lot more
  49. 1:57videos about using AI to level up your
  50. 2:00trading. All right, let's start with
  51. 2:02setting up trading view connection to
  52. 2:05clot code. I'm not going to spend
  53. 2:07forever here. You can just read this
  54. 2:09expose over here, which I'll link down
  55. 2:11below. The author breaks down all the
  56. 2:13technical details of how uh Claude can
  57. 2:16now read the charts source code. So,
  58. 2:19props to this guy for figuring out this
  59. 2:22MCP workaround. I made some
  60. 2:24modifications and simplify this process.
  61. 2:27So, you can easily copy and paste all
  62. 2:29the prompts that I'm using for this
  63. 2:31video demo and to set up my trading AI
  64. 2:33pipeline in the video. The link is in
  65. 2:36the description. So, to start, here are
  66. 2:38the two things you need to get right
  67. 2:39now. Go to claude.ai AI and install
  68. 2:43cloud code on your desktop. And number
  69. 2:45two, you need to install Trading View
  70. 2:47desktop version. So you cannot use a
  71. 2:50web. You have to use a desktop like the
  72. 2:51one you're seeing seeing right now. This
  73. 2:54is running on my Mac. So here's the
  74. 2:56caveat. You need to do this trading view
  75. 2:58and cloud connection on a Mac OS. I
  76. 3:01first tried it on my uh PC computer
  77. 3:04right here and it didn't work because of
  78. 3:06the desktop file on the official
  79. 3:08website. it's like a different Microsoft
  80. 3:11file or something like that. It doesn't
  81. 3:13matter. I'm not technical. I just trade.
  82. 3:16So, if you run into that problem, just
  83. 3:18ask your AI to solve it for you. For the
  84. 3:20subscriptions for Claude or Codeex,
  85. 3:23which you can do the same thing here,
  86. 3:25too. You need at least the $20 per month
  87. 3:28paid plan um at least to get started. Um
  88. 3:32for me personally, I'm using the max
  89. 3:34plan, which you can see on screen over
  90. 3:35here. Um, I'm using the $100 a month
  91. 3:38plan and that's enough for me or for all
  92. 3:40the things I'm doing. As for Trading
  93. 3:42View, you need a paid Trading View
  94. 3:44subscription to do this connection. At
  95. 3:47least the essential plan, the cheapest
  96. 3:49one, I think it's about $13 to $15 a
  97. 3:52month. If you use my referral link down
  98. 3:54below, I believe you get $15 credit. So,
  99. 3:57that's going to help you get started.
  100. 3:59Once you have these two subscriptions
  101. 4:01and a desktop installed, you're finally
  102. 4:04now ready to get started. So just go to
  103. 4:07step number three on my blog and copy
  104. 4:09this into cloud code. Essentially that
  105. 4:12installs the MCP. You copy from this
  106. 4:16GitHub over here which is the one that
  107. 4:19you can see from this expost. You can
  108. 4:21verify. You can see a lot of people
  109. 4:23watching it and using it. 2.9,000 stars.
  110. 4:27So this is legitimate and that's the one
  111. 4:29I personally downloaded as well. So once
  112. 4:32you copy that, you just enter.
  113. 4:35And during this process, Claude is going
  114. 4:36to ask you a lot of different
  115. 4:38permissions. So you can just read the
  116. 4:40different prompts and follow along. And
  117. 4:41once it's done installing, you're going
  118. 4:43to have to restart Claude. Once you
  119. 4:45restart it, go to a new session and copy
  120. 4:47this prompt and run TV health check and
  121. 4:50tell me if Trading View is connected. So
  122. 4:53just run this prompt. So you can see now
  123. 4:55that you run the prompt, it's showing
  124. 4:57that Trading View is connected. Um, by
  125. 5:00the way, your desktop obviously needs to
  126. 5:02be open right now. The link is live and
  127. 5:04API available. The chart is now on
  128. 5:06NASDAQ AMD on the one day chart. Let's
  129. 5:09check if that is correct.
  130. 5:12Okay, so that's the daily chart on the
  131. 5:13NASDAQ. Okay, great. I'm going to
  132. 5:15simplify this and go to the five minute
  133. 5:17chart because that will be the chart
  134. 5:19that we'll be using. Now that the
  135. 5:21connection is established, you can try
  136. 5:23and test out some really basic prompts.
  137. 5:26It can do almost anything as long as
  138. 5:28Claude can read all the different
  139. 5:31candlesticks on the daily chart and the
  140. 5:33essentially all the source code behind
  141. 5:35it. Let me just do a quick demo right
  142. 5:37now. Can you draw the levels for Intel?
  143. 5:41Um draw the recent higher days. Um the
  144. 5:45pre-market highs and lows and the 50 52-
  145. 5:49week highs and lows as well as alltime
  146. 5:52highs.
  147. 5:57So you can see Claude is switching time
  148. 6:00frames live.
  149. 6:04Okay. So you can see Claude has just
  150. 6:06drawn the 52- week highs and they
  151. 6:09actually have like different styles and
  152. 6:11labeled it as well. That's pretty cool.
  153. 6:13Um daily highs, daily lows, pre-market
  154. 6:15highs, pre-market lows. Okay, now that
  155. 6:17you've tried the basic use cases, let's
  156. 6:20move on to what actually matters for
  157. 6:22active trading. The goal for me today
  158. 6:24here is very simple. I want to build a
  159. 6:27complete pre-market trade planning
  160. 6:29pipeline from scanning for stocks to
  161. 6:31trade to building my strategy and then
  162. 6:33back testing it. Now remember I did
  163. 6:36mention earlier that trading view and
  164. 6:38claw connection. Right now there is some
  165. 6:40limitations. One is that trading view
  166. 6:43cannot scan the entire market for you
  167. 6:45all at once. It's only able to scan and
  168. 6:48provide you data on a basket of stocks
  169. 6:51that you selected and told it to do
  170. 6:53specifically. But no worries, there are
  171. 6:55some easy workarounds for this. And it's
  172. 6:58really fast, too. So, what I decided to
  173. 7:00do, which is way faster and simpler, by
  174. 7:03the way, is to create a preliminary
  175. 7:05pre-market scan, which will give me all
  176. 7:08the top gappers, and then put the
  177. 7:10results from that first scan, I call it
  178. 7:12scanner A, into my strategy scanner for
  179. 7:16my strategy to trade. That would be
  180. 7:18scanner B. So, let's build that right
  181. 7:20now. What I'm going to build first is a
  182. 7:22simple pre-market scanner. All right,
  183. 7:24let's start building the pre-market
  184. 7:26scanner. Now, there are two or three
  185. 7:28prompts to use and you can copy them
  186. 7:31from my blog post here on my website.
  187. 7:34It's free. You don't even need to enter
  188. 7:36your email. Let's start building the
  189. 7:38pre-market scanner. Now, if I go to my
  190. 7:41blog post, so I can just copy it. Uh,
  191. 7:44this one, copy, paste.
  192. 7:48So, you can see that I'm asking to build
  193. 7:50a pre-market scanner every morning
  194. 7:52before the open. Build me something that
  195. 7:54does this. So, I'm scanning for all the
  196. 7:57criteria we just talked about. Stocks
  197. 7:59that moved up more than So, I'm scanning
  198. 8:01for the big movers for my trend join
  199. 8:04loan setup. By the way, stocks that gap
  200. 8:06up more than 5% from previous day, price
  201. 8:09above $3 per share, and over 50K
  202. 8:12pre-market volume. Um, you can obviously
  203. 8:15adjust that to however fits you better,
  204. 8:17but for me, that works. And I'm actually
  205. 8:20going to go to uh auto mode, so stops
  206. 8:23asking me for directions.
  207. 8:26And then you can see that I tell it the
  208. 8:28news catalyst source to use. So for the
  209. 8:31tickers and the percentage I'm fetching
  210. 8:33from Yahoo Finance and for the briefing
  211. 8:36uh news catalyst briefing I'm sourcing
  212. 8:38them from as you can tell Benzinga and
  213. 8:41then I tell it the format I want to see.
  214. 8:44I want to see ticker price gap
  215. 8:45percentage then one catalyst sentence.
  216. 8:49So it's building that right now. So this
  217. 8:52process should take you about a minute
  218. 8:54or two minutes especially if it's your
  219. 8:56first time doing it. Um but so give it
  220. 8:58some time.
  221. 9:01Amazing. So you can see these are the
  222. 9:03results that gave me for um the gappers.
  223. 9:07You can see the gappers pre-market.
  224. 9:09Today's a Saturday. So this is obviously
  225. 9:12not from today. This is probably from
  226. 9:14Friday. Stocks over 5% price about $3.
  227. 9:18top 10 gappers and the news catalyst. So
  228. 9:21you can see the tickers sedg, Figma,
  229. 9:24EMP, VG, Wayne, team, and you can see
  230. 9:27all the catalyst and you can see all the
  231. 9:30results each morning is saved to a new
  232. 9:32JSON file with a date specified. And
  233. 9:36don't worry, later I'm going to show you
  234. 9:37how to deploy and send that pre-market
  235. 9:40scanner results to your phone every
  236. 9:43single morning. Now, let's move on to
  237. 9:45the strategy scanner filters. Now that
  238. 9:47we have the pre-market scanner down,
  239. 9:50let's dive into strategy building and
  240. 9:52the scanner behind it. I'll be demoing
  241. 9:54today with my favorite set strategy,
  242. 9:56which is the trendway long setup. This
  243. 9:59is my favorite setup that I mentioned in
  244. 10:01so many of my YouTube videos. And by the
  245. 10:04way, every single weekend I curate a
  246. 10:06watch list of three to four trade ideas
  247. 10:09based on my strategies. You can get that
  248. 10:11for free by signing up with the link
  249. 10:13down below. I'm also developing a lot of
  250. 10:15AI tools to help traders level up their
  251. 10:18day trading and swing trading. So, make
  252. 10:21sure to stay tuned. We're going to build
  253. 10:22the strategy scanner filter to read all
  254. 10:25the results that we've generated from
  255. 10:28the pre-market scan. The strategy filter
  256. 10:31essentially will tell you which of these
  257. 10:32candidates are valid for entries and
  258. 10:35exits. Now, to build this trend long
  259. 10:37strategy scanner, you just need to copy
  260. 10:39my prompt here. Don't worry. Uh I'll
  261. 10:42show you exactly what it is. So let me
  262. 10:44copy and paste. Now it's building. So
  263. 10:46essentially you can extend it and see
  264. 10:48that I'm asking it to build a trend
  265. 10:50joint long strategy scanner that filters
  266. 10:52stocks down to which ones that meet my
  267. 10:55day trading entry criteria. I'm asking
  268. 10:58to do a test. You can see it's doing a
  269. 10:59test on AMD, Nvidia, MU. And these are
  270. 11:02the prerequisites. So while it's
  271. 11:04running, these are the criteria I'm
  272. 11:06asking it to build for the strategy
  273. 11:08scanner. Number one, I wanted to run
  274. 11:10after 10:00 a.m. market time. The price
  275. 11:13of the stock needs to be above
  276. 11:15yesterday's daily high, and yesterday's
  277. 11:18close needs to be above the 200 SMA. The
  278. 11:21price needs to be above today's
  279. 11:23pre-market highs, and the price needs to
  280. 11:25be above today's high of day.
  281. 11:27Essentially, again, I'm joining
  282. 11:28strength. It needs to be a higher date
  283. 11:30breakout. If all five of the criteria
  284. 11:34passes, then it's a hit. Then now the
  285. 11:37scanner will trigger an entry. The
  286. 11:39difference between this scanner and the
  287. 11:41previous um pre-market gap scan we
  288. 11:43created is that this strategy scanner
  289. 11:45needs to run on trading view. That's
  290. 11:48where the connection to claude comes
  291. 11:50into play. Also just make sure that your
  292. 11:52trading view desktop must must be
  293. 11:54running and the charting tab needs to be
  294. 11:57active. So you can see now that it's
  295. 12:00built the second scanner. So, this run
  296. 12:03was a lot faster um than the pre-market
  297. 12:05gap scan. They finished building the
  298. 12:08scanner in about two minutes. I think it
  299. 12:09already has a context from the previous
  300. 12:12one. Now, at this point, I'm sure you're
  301. 12:14wondering, "All right, Shay, but does
  302. 12:16this strategy actually work?" Now, this
  303. 12:19is where the fun begins. We can back
  304. 12:21test the strategy scanner we just
  305. 12:23created on Trading View. And once again,
  306. 12:26you can just ask Claude to do this for
  307. 12:28you. Okay, I want you to back test the
  308. 12:31strategy we just created in Pine Script.
  309. 12:35Um, back test MU as far as you can go on
  310. 12:40the five minute chart.
  311. 12:48All right, we are back. Let's see what
  312. 12:51the back testing did. So what it did is
  313. 12:54essentially it created like um pine
  314. 12:57strategy um on trading view and using
  315. 13:00the criteria we input earlier. This is
  316. 13:03all the trades I did. So there the net
  317. 13:06P&Ls. Okay. So you can see it gives you
  318. 13:09the date to some longs um some losses
  319. 13:13some wins. Oh pretty decent a lot of
  320. 13:16greens but also like AMD has been really
  321. 13:20really strong. So keep that in mind.
  322. 13:23And here are the key metrics. Not bad.
  323. 13:25Not bad. So, total P&L over 14 trades is
  324. 13:31$1,200.
  325. 13:33And there's a max equity draw down here
  326. 13:35as well. Profitable night out of 14.
  327. 13:37Profit factor is 2.48. That's really
  328. 13:40good. Uh, but again, I want to caveat by
  329. 13:44saying that this is only one ticker. And
  330. 13:46you can see the details they provide you
  331. 13:47here. It's around the same. and the
  332. 13:49initial capital we're using a thousand
  333. 13:51dollar.
  334. 13:53Obviously, you wouldn't be using 100% of
  335. 13:55the equity per trade, but again, this is
  336. 13:57just a back test. But again, that was a
  337. 13:59really limited back test. Let's extend
  338. 14:02this to a lot more tickers now. And I
  339. 14:05think I'm going to use higher time
  340. 14:07frames to speed this up. Good job. Now,
  341. 14:10I want to extend this back test to more
  342. 14:14tickers. Uh, I want to back test on MU,
  343. 14:17Nvidia, Tesla, Apple, Amazon, Meta,
  344. 14:22Google going far as far as you can on
  345. 14:26the 15minute chart.
  346. 14:32So, essentially, I want to extend this
  347. 14:34back test to all the magnificant
  348. 14:37magnificent seven, even though I don't
  349. 14:39think I got seven. What am I missing?
  350. 14:41Well, I'm missing Netflix, but it's it's
  351. 14:42okay. You you get the idea. I want to
  352. 14:44extend this to a magnet max 7 and on the
  353. 14:4815 minute time frame now.
  354. 14:56Okay. So, I'm not going to lie, that did
  355. 14:58take a while. Um, but we got some decent
  356. 15:02results. You can see we have Tesla,
  357. 15:04Nvidia, AMD. Um, so no trades on Tesla.
  358. 15:07That's fine. But what happened to
  359. 15:08Google? Anyways, this just to show you
  360. 15:11that um the strategy does work. But once
  361. 15:14again, it's highly selective. But as you
  362. 15:17can see, since we are we were back
  363. 15:18testing on the I think 15 minute time
  364. 15:21frame, you are producing a lot less
  365. 15:24trades. If you were on the five minute
  366. 15:26time frame, there will be a lot more
  367. 15:27trades. Um and again, my criteria like
  368. 15:30all the ones I list out earlier is
  369. 15:32really really strict. So if you want to
  370. 15:34take more trades, which you know, up to
  371. 15:37you. Um I would prefer higher win rates
  372. 15:39and higher returns than to take more
  373. 15:41trades. But again, you can play around
  374. 15:43with this. This is just a foundation
  375. 15:45strategy for you to get started. And
  376. 15:47this is where the real work comes in as
  377. 15:49a trader. As you can tell, this is a
  378. 15:52really good foundation, but it's based
  379. 15:54on very selective criteria and it's only
  380. 15:57you're only back testing on only a
  381. 15:59select few tickers. So, make sure you go
  382. 16:01in yourself and test out different entry
  383. 16:03rules. And truth be told, I'm still in
  384. 16:06the process of testing and reiterating
  385. 16:08to make sure this applies across all the
  386. 16:12stocks on my watch list. I don't have
  387. 16:14all the answers for you today, but I'll
  388. 16:16be making follow-up videos on this very
  389. 16:18soon. So, I want to show you some
  390. 16:20examples of how I would reiterate and
  391. 16:23test out the strategies using Claude.
  392. 16:26I see. I think the amount of stocks you
  393. 16:28can back test is really limited using
  394. 16:31Pinescript. I want you to switch to
  395. 16:33Python now to back test this exact same
  396. 16:36strategy and I want to expand you to you
  397. 16:39the universe to all the stocks on my
  398. 16:43watch list. I believe there are around
  399. 16:4430 stocks. So expand the back test to
  400. 16:47those 30 stocks using the last 30 days.
  401. 16:56So you can see Claude is now hard at
  402. 16:59work uh writing me a back testing um
  403. 17:03Python and I can uh tell it what tickers
  404. 17:06to run. And again all of these prompts
  405. 17:08will be available on my blog post that
  406. 17:11you can just copy and paste. But you do
  407. 17:13need to reiterate this to fit your own
  408. 17:16strategy and your own capital as well.
  409. 17:21All right. So that was a lot faster than
  410. 17:23the previous one using Python. So you
  411. 17:26can do the same with all the other
  412. 17:28tickers you want to back test on. So
  413. 17:30basically within my watch list I have 32
  414. 17:32tickers and I was back testing the last
  415. 17:3530 days. And this is the portfolio
  416. 17:38totals and I'm trading with $10,000
  417. 17:42account 54% win rate and a total P&L.
  418. 17:46This is not bad. Uh a couple of tickers
  419. 17:49with no signal Meta and Robin Hood.
  420. 17:50That's fine. And you can see these are
  421. 17:52the rest of the tickers and these are
  422. 17:55all the tick I thought I had a lot more
  423. 17:57tickers. Oh, these are top 10 um
  424. 18:00winners, but a total all the tickers on
  425. 18:02my watches are here. You can see. So, I
  426. 18:05basically asked you to back test with
  427. 18:06everything here. There's a total of 32
  428. 18:09tickers.
  429. 18:10Um so again, this is just an example how
  430. 18:13how you can reiterate and find anything
  431. 18:16that you can improve your strategy on.
  432. 18:20This is actually really good result. I
  433. 18:22don't think I had this when I first this
  434. 18:24kind of result when I first built this.
  435. 18:26But yeah, play around with it. It's
  436. 18:27actually really fun. Okay, so far we
  437. 18:29built many things with Trading View and
  438. 18:32Claude and of course Python and other
  439. 18:34resources. We built a pre-market scanner
  440. 18:37that shows you all the gappers on the
  441. 18:39day. Then we built the strategy scanner
  442. 18:42that allows you to scan for the stocks
  443. 18:45that fit your entry and exit criteria
  444. 18:48for the trend join long strategy. And
  445. 18:51number three, we back tested the
  446. 18:53strategy with a pine script on trading
  447. 18:55view as well as asking Claude to extend
  448. 18:57that to build a Python to for us to back
  449. 19:01test even more tickers. So the next
  450. 19:03thing to build naturally is to automate
  451. 19:05everything. So the scanner will fire on
  452. 19:08its own pre-market send you the alert
  453. 19:10and then the the strategy and the
  454. 19:13testing will start on its own. Okay. Now
  455. 19:16I want to automate both scanners. The
  456. 19:19pre-market scanner I wanted to first
  457. 19:22start at 8:30 a.m. market time
  458. 19:27and run every 30 minutes until 2:00 p.m.
  459. 19:32The strategy scanner, I want it to only
  460. 19:35start after 10:00 a.m. and run 5 minutes
  461. 19:40after the pre-market
  462. 19:43scanner. And the strategy scanner is
  463. 19:45only going to run based on the tickers
  464. 19:48produced by the pre-market scanner. And
  465. 19:51I want this to run also until 300 p.m.
  466. 20:01Okay, I think it did it. That wasn't too
  467. 20:03bad. Uh that was only like five minutes.
  468. 20:06Okay, so okay, let's see what it did.
  469. 20:10So every job both jobs are loaded with a
  470. 20:13full schedule. Okay. So you can see the
  471. 20:16pre-market scanner. These are the time
  472. 20:17frames that's going to run every 30
  473. 20:19minutes. So 12 runs a day. Yeah. All the
  474. 20:22way till um 2:00. And the trend join
  475. 20:26long scanner again which uh the scanner
  476. 20:29is based off the results from the
  477. 20:30pre-market scan. Then that's why that's
  478. 20:32why it needs to go 5 minutes after runs
  479. 20:35from 10:00 all the way to 2:30.
  480. 20:39Okay. Sweet. So, and it also shows you
  481. 20:41all the files created and all that. Um,
  482. 20:45okay. Okay. This is great. By the way,
  483. 20:47if you're trying to learn more about
  484. 20:49integrating AI into your trading, then
  485. 20:52you should definitely attend my in real
  486. 20:54life master class this July in Toronto,
  487. 20:57Canada for Blossom Kong. Blossom Kong is
  488. 21:01the ultimate conference series for
  489. 21:03retail investors who want to learn,
  490. 21:05connect, and grow in real life. It's
  491. 21:07coming soon this summer in Toronto,
  492. 21:09Vancouver, and New York City. If you're
  493. 21:11a retail investor, then check out the
  494. 21:13link down below, and I hope to meet you
  495. 21:16soon in real life. So, I'm going to show
  496. 21:18you the results on my Telegram. These
  497. 21:20are results that you're going to see
  498. 21:21each and every single morning. So, at
  499. 21:238:30 a.m., you're going to see the
  500. 21:24pre-market gapper preview. You'll see
  501. 21:27the tickers percentage, and the news
  502. 21:29catalyst. Then after open, you know, I
  503. 21:32don't trade right after open. After
  504. 21:33about 10 o'clock, that's when the
  505. 21:36strategy scanner will go. That's when
  506. 21:38you'll see something like this called
  507. 21:39trend join long watch list. And it's
  508. 21:42going to show you if there's any setups
  509. 21:44and any candidates available. So
  510. 21:47essentially, you're going to see this
  511. 21:48every 30 minutes during the trading
  512. 21:50days. You're going to see the gap list
  513. 21:53and the news briefing and then you're
  514. 21:55going to see the strategy scanner
  515. 21:57telling you if there's any candidates
  516. 21:59that fit the trend joint loan strategy.
  517. 22:02Okay, now I'm going to walk you through
  518. 22:04how to set up Telegram notifications so
  519. 22:07you get these messages like the one I
  520. 22:09just showed you on my screenshot. Now,
  521. 22:11along with the automation, I want all
  522. 22:14the runs,
  523. 22:16the results from both scanners after
  524. 22:19each scheduled run to be sent to my
  525. 22:23Telegram in this exact format.
  526. 22:29Okay, so I just basically copy and
  527. 22:31pasted the format I have. So you can see
  528. 22:34scanner A premarket gappers
  529. 22:37and then scanner B the trend join long
  530. 22:40hits.
  531. 22:44So again you can copy this prompt on my
  532. 22:46blog but I want it exactly in this
  533. 22:48format otherwise it's going to be really
  534. 22:50messy.
  535. 22:52So, after you put in that prompt, it's
  536. 22:54going to show you how to do that and
  537. 22:56I'll walk you through to I'm going to
  538. 22:58create new one on my um on my phone.
  539. 23:04Okay. So, it's going to So, basically
  540. 23:07just I just asked Claude and it's going
  541. 23:09to walk you through the Telegram
  542. 23:11process. So, in Telegram, search for
  543. 23:13botfather
  544. 23:15and uh you're going to do all these.
  545. 23:17Okay, I'm just going to do this right
  546. 23:19now. So, go to bot father and I want a
  547. 23:23new bot. New. New bot.
  548. 23:29I'm going to name it HTML 123.
  549. 23:33Okay. Now that we're done, I'm going to
  550. 23:35copy this token access. I'm just going
  551. 23:38to give it to Claude.
  552. 23:43So, once you have that from a Telegram,
  553. 23:45just give it to Claude. Um, of course
  554. 23:46I'm blurring this for obvious reasons.
  555. 23:51So, it's saving the token now. Great.
  556. 23:55And then it's gonna continue for you.
  557. 23:57So, yeah, basically Cloud is going to
  558. 23:59walk you through everything and make
  559. 24:02sure at this time you start the bot. So,
  560. 24:05I'm going to make sure I'm talking to
  561. 24:07the bot. Okay. Hello. Start. I need to
  562. 24:10make sure that I'm starting the bot.
  563. 24:13Uh, I did press start.
  564. 24:17Okay.
  565. 24:20So, retry again.
  566. 24:23Okay. So, now you can see on my iPhone
  567. 24:25screenshot uh recording here. This is
  568. 24:27the pre-market gappers. Amazing.
  569. 24:30Amazing. Amazing. I do see the gap list.
  570. 24:36Now, also show me an example of the
  571. 24:40strategy scan
  572. 24:42result message on Telegram as well.
  573. 24:46So, I wanted to run again as well. So,
  574. 24:49again, this is just a sample. Um, but
  575. 24:52the pre-market gappers is the first one
  576. 24:54we're going to see. And then the
  577. 24:56strategy scanner is going to use is
  578. 24:58going to scan on all of these results
  579. 25:03since you should see a trend join long
  580. 25:05message in your bot chat with three
  581. 25:07sample hits. Amazing. Okay. So, you can
  582. 25:11also see this too. So, that's the
  583. 25:12strategy scanner. Just to double check,
  584. 25:15the uh the telegram will be triggered as
  585. 25:19soon as there's new runs on the
  586. 25:21pre-market scanner and the strategy
  587. 25:23scanners as well, right throughout the
  588. 25:26entire day.
  589. 25:29Amazing. As you can see this on screen
  590. 25:32here is the wiring that we just created.
  591. 25:36You get a pre-market scan, 12 fires a
  592. 25:39day, and you're going to get 12 Telegram
  593. 25:41messages. If it has too much then you
  594. 25:43can obviously revise it on your own.
  595. 25:45Then you get a trend joint long strategy
  596. 25:47runs as well. Okay. Like I mentioned
  597. 25:50earlier there's a bonus section to this
  598. 25:53video. The trading view AI chart
  599. 25:56co-pilot the public beta is now
  600. 25:59available. So they've been also on the
  601. 26:01DL on this. I didn't even know about
  602. 26:03this until after I finished all the back
  603. 26:06testing and building all the back tester
  604. 26:08on Python. So, they have this. There's
  605. 26:11still some limitations, but I just want
  606. 26:13to show you what it can do. It can
  607. 26:15actually make a lot of the back testing
  608. 26:18a lot easier. So, give this article a a
  609. 26:22read. Uh, and make sure you uh have the
  610. 26:25uh Chrome extension for the Trading
  611. 26:27Review Remix. That's their AI model
  612. 26:30they're calling it. So, make sure you
  613. 26:31have this. And again, you still need to
  614. 26:33a paid subscription on Trading View once
  615. 26:36again. Um so now let's go to our charts
  616. 26:39here. Um so it can actually start back
  617. 26:42testing now. So so remember earlier that
  618. 26:46claude and the trading view MCP
  619. 26:48connection they cannot do that many back
  620. 26:50testing but now with this I think you
  621. 26:52can back test a lot more. So let me make
  622. 26:54sure I have the strategy loaded in. I
  623. 26:57want you to run the back test on all the
  624. 27:01stocks in my watch list for the last 90
  625. 27:06days on the 15 minute time frame
  626. 27:11using the current strategy that's loaded
  627. 27:14the demo TJL strategy.
  628. 27:20All right, let's see if it works.
  629. 27:24There you go. Okay.
  630. 27:33Oh, amazing. First batch of six.
  631. 27:37Okay. So, you can see it's able to do
  632. 27:40it's showing that you I should have just
  633. 27:42bought and hold. Yeah, you're probably
  634. 27:43right. But again, we're using very
  635. 27:45limited samples.
  636. 27:48So, I want to continue all the way.
  637. 27:56All right, let's see what we got here.
  638. 27:59The results.
  639. 28:04So, I'm not sure why the same back test
  640. 28:06on Trading View itself. Um, at least
  641. 28:09using the the Remix bot, it's not
  642. 28:12working, but as you can tell that it's
  643. 28:14it gives you a lot of options to
  644. 28:16optimize it. So you guys can play around
  645. 28:18with it. And I'm gonna I might do like a
  646. 28:21follow-up video on the Trading View
  647. 28:24remix as well. The next thing I want to
  648. 28:26try to see if I can do is to give me the
  649. 28:29pre-market watch list, the gap scans.
  650. 28:32Can you create pre-market gap scan of
  651. 28:35the top 10 gappers on the day with their
  652. 28:39ticker percentage change? Sorry,
  653. 28:43percentage gap pre-market by 8:30 a.m.
  654. 28:48and any news catalyst that they may
  655. 28:51have.
  656. 28:53The stock must be above $3 per share and
  657. 28:58pre-market must be trading at least
  658. 29:0020,000 shares.
  659. 29:03So the exact same criteria we did with
  660. 29:06claude in trading view earlier. I want
  661. 29:08to see if this trading view AI can do
  662. 29:11the same.
  663. 29:13Okay. Yeah, you're correct. There's no
  664. 29:16nothing on Sunday. But oh, so it's able
  665. 29:19to give me all the list I asked for
  666. 29:20pre-market. Amazing. But I think the
  667. 29:24limitation is that it's not able to send
  668. 29:26it to my telegram. Let's find out.
  669. 29:29Are you able to send me that watch list
  670. 29:32every single morning to my telegram? So,
  671. 29:35let's find out. I don't think I can.
  672. 29:38Yeah, it's saying that we cannot do
  673. 29:40that. We need to run the scan on demand
  674. 29:43every single morning, but maybe in the
  675. 29:47future you can run like external
  676. 29:50automations. I think I'm going to keep
  677. 29:52playing around with this, but just so
  678. 29:54you know that a lot of the limitations
  679. 29:55we saw earlier with Claude um you can
  680. 29:58solve that within Trading View Remix,
  681. 30:01but again there's so there's always some
  682. 30:03other limitations like with this one you
  683. 30:05have to you cannot schedule it. You have
  684. 30:07to run it on demand every single
  685. 30:09morning. But it's definitely really cool
  686. 30:11to try out. If you want me to make a
  687. 30:13follow-up video on the Trading View
  688. 30:15remix, especially, you know, with
  689. 30:18following up on the back testing I did
  690. 30:20earlier, let me know down below. If you
  691. 30:23watch it this far, you'll know one
  692. 30:25thing. Trading View Pine Script simply
  693. 30:28lets you back test. It doesn't allow you
  694. 30:30to turn that Pine Script or indicator
  695. 30:33into an automated trading system. But
  696. 30:36don't worry, I'm already on it. I've
  697. 30:38already started trading this back tested
  698. 30:41strategy using interactive brokers API
  699. 30:44and these on screen are the results so
  700. 30:47far. So, make sure to subscribe and turn
  701. 30:49on the notification bell because next
  702. 30:52week I'm going to post a video that'll
  703. 30:54walk you through the exact step-by-step
  704. 30:56process just like I did today. Once
  705. 30:58again, the full blog with every single
  706. 31:00prompt and all the links and resources
  707. 31:02are linked down below. Like I mentioned
  708. 31:05earlier, AI cannot make you profitable.
  709. 31:08You, as the human, still needs to learn
  710. 31:11how to trade and still have a trading
  711. 31:13strategy. So, make sure to watch this
  712. 31:15video to learn my two favorite trading
  713. 31:18strategies over

About this transcript

This page contains the full transcript of I Built an AI Trading System With Claude + TradingView by Humbled Trader, generated from the public captions YouTube serves with the video. The transcript has 5,066 words across 713 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.