YouTube2Text

Claude creó 12.000 Estrategias de Trading y me quedé con la Mejor (prompts gratis) — Transcript

by Hobbiecode · 3,178 words · 496 segments · language en · Watch on YouTube

Full transcript

  1. 0:01With just a minimal strategy idea and
  2. 0:03three prompts, Claude generates
  3. 0:04thousands of strategies, runs them
  4. 0:06through several robustness tests, and
  5. 0:09selects the best one to export to
  6. 0:10MetaTrader 5 so the robot can manage
  7. 0:12your trading fully automated.
  8. 0:16All this is what you are going to learn
  9. 0:18to do in the next 20 minutes, and you
  10. 0:19will get the three prompts so you can
  11. 0:21apply it yourself.
  12. 0:22But first, I encourage you to subscribe
  13. 0:24to my channel to support all the content
  14. 0:26I create, not just me, but the team
  15. 0:27behind it, and also stay updated on
  16. 0:29everything I'm uploading about trading
  17. 0:30and trading with artificial intelligence
  18. 0:32, so subscribe and now let's start the
  19. 0:34video.
  20. 0:35Well, the first step is to have a clear
  21. 0:36idea of the trading strategy you want
  22. 0:38Claude to generate thousands of
  23. 0:39combinations of.
  24. 0:41We are going to attach the file so it
  25. 0:44analyzes that dataset and not one it
  26. 0:46might invent.
  27. 0:48Therefore, we open Claude on this screen
  28. 0:51as you can see, and I will first attach
  29. 0:54the Nasdaq file I have prepared.
  30. 0:57Now it's going to load; it will take a
  31. 0:59little while. These are the last three
  32. 1:01or four years that I have loaded in this
  33. 1:03dataset.
  34. 1:05If you don't know how to download this
  35. 1:07data or how to get it, you can download
  36. 1:09it for free from the EduaScopy website,
  37. 1:10and if you are a user who uses Strategic
  38. 1:12One, if you are a very frequent user of
  39. 1:14my channel, you will know how to get
  40. 1:16these results from Strategic One, okay?
  41. 1:18Also taken from EduaScopy.
  42. 1:20Well, I have them loaded here, a CSV,
  43. 1:22and I'm going to paste this prompt.
  44. 1:24Check it out, look for the trading
  45. 1:25strategy for my idea, I don't know how
  46. 1:27to program, you write and execute all
  47. 1:29the code.
  48. 1:30This is important, you have to change
  49. 1:31this depending on what you like.
  50. 1:35What I am going to do in this video is
  51. 1:37on the Nasdaq, 5-minute candles,
  52. 1:39intraday strategy, nothing open
  53. 1:41overnight, only the American session,
  54. 1:44only buys, sells, or both, let it decide
  55. 1:46.
  56. 1:48But what I am telling it is I want you
  57. 1:50to generate thousands of strategies,
  58. 1:52look, strategies, generate thousands of
  59. 1:54different strategies, use all the
  60. 1:56possible indicators that can be used in
  61. 1:58MetaTrader 5. Group them into families.
  62. 2:01Vary periods, direction, another
  63. 2:02optional filter, and the exit. Rules.
  64. 2:05100,000 account without compound
  65. 2:06interest, risk always 1%per trade, that
  66. 2:08is, 1,000 dollars.
  67. 2:10I want you to deliver a report in HTML
  68. 2:12to me. Well, we'll see this now when it
  69. 2:13finishes. It takes several minutes, so I
  70. 2:16recommend you copy this, paste it, put
  71. 2:18in your idea, and hit enter, which I'm
  72. 2:20going to do now. Good, there we have it
  73. 2:23.
  74. 2:24And you go grab a coffee. During this
  75. 2:26time, what the Cloud will do is generate
  76. 2:28different strategies, but starting from
  77. 2:30the same base, without leaving the asset
  78. 2:32, always in the US session, always 15 or
  79. 2:345-minute candles, but all the strategies
  80. 2:37it can find or knows from the internet,
  81. 2:39making thousands and thousands of
  82. 2:41variations. We will see in the report
  83. 2:42how many it has actually generated.
  84. 2:45And from there, it will pull some
  85. 2:46statistics and propose the ones it
  86. 2:48considers profitable.
  87. 2:50And from there, we will continue working
  88. 2:52. Well, look, it's already finished. It
  89. 2:53took approximately 12 minutes on my
  90. 2:55machine. It's true that it's very
  91. 2:56powerful. I've tested it on other
  92. 2:58machines and it took half an hour more.
  93. 3:00Therefore, it varies a bit; it depends
  94. 3:02on your machine, on the machine you have
  95. 3:04, okay?
  96. 3:05Well, it tells us here it has tested
  97. 3:0612,000 strategies, session data. Let's
  98. 3:08look at the report first, which is what
  99. 3:09I'm most interested in seeing here. Look
  100. 3:11at that. Nasdaq 100, 5-minute intraday
  101. 3:13candles in the US session.
  102. 3:15Tests from January 2, 2024, that is, 3
  103. 3:16years, I had already told you at the
  104. 3:18beginning.
  105. 3:19Good, with a 100,000 account. 12,000
  106. 3:21strategies. It decided that itself,
  107. 3:23whatever it could find.
  108. 3:25Okay?
  109. 3:27Starting from 167 ideas, 10 families,
  110. 3:31and 11,975 with different results, okay
  111. 3:35?
  112. 3:36There were some, surely there were about
  113. 3:3825 that were exactly the same.
  114. 3:40Of which only almost 20%win, 2,300, and
  115. 3:43the vast majority lose, and 58 do not
  116. 3:45trade.
  117. 3:46It surely must be discounting them from
  118. 3:48here.
  119. 3:50Therefore, here we can see the average
  120. 3:52reference of all of them, the curve of
  121. 3:54all strategies, and obviously, we are
  122. 3:56going to keep the most winning ones, but
  123. 3:58there are still 2,344 that are winning,
  124. 4:00which we are not going to trade with all
  125. 4:02of
  126. 4:13them, we are going to keep the best ones
  127. 4:15.
  128. 4:15Well, which are the ones in blue, right
  129. 4:16? The ones that end up above the zero
  130. 4:18profitability line. In UTC plus 3 if I
  131. 4:21recall correctly, which would be 3:30 in
  132. 4:24Spain.
  133. 4:25Eh, buy at 3:30 and close before the
  134. 4:27session ends. This comparison is very
  135. 4:29interesting because it’s telling us that
  136. 4:31all these strategies that are below this
  137. 4:33average profitability, which would be
  138. 4:36just holding, are useless. You have to
  139. 4:38be above just holding, otherwise don't
  140. 4:39bother trading.
  141. 4:41Results by family. What do we mean by
  142. 4:43family? Trend-following, momentum,
  143. 4:46overbought, oversold, that is, breakouts
  144. 4:48either up or down, volatility and
  145. 4:49channels based on volumes, based on
  146. 4:51strength, candlestick patterns, session
  147. 4:53structure, statistics, and calendar.
  148. 4:55Notice that it has distributed 1,200 of
  149. 4:58each of them, and in each section, it
  150. 5:00has found different ideas.
  151. 5:02In which family has it seen the most
  152. 5:05winning strategies? Well, this is very
  153. 5:07interesting, the volume-based ones,
  154. 5:09which I would totally discard for CFDs,
  155. 5:12and the session structure ones, as well
  156. 5:14as the calendar ones, which I like a lot
  157. 5:16. Look, session structure are those that
  158. 5:19are intraday 5-minute, eh. They are
  159. 5:21those ICT things, all these things that
  160. 5:23I have always said didn't work very well
  161. 5:25, but well, I like objective strategies
  162. 5:26, not subjective ones, which is a bit of
  163. 5:28what I criticize about those types of
  164. 5:30strategies, okay?
  165. 5:31Session structure. It's great that they
  166. 5:33are the ones that the vast majority—
  167. 5:34well, not the vast majority, but of all
  168. 5:36the families, they are the ones that win
  169. 5:37the most.
  170. 5:38And the calendar. Calendar means time
  171. 5:40frame or days, only some days, which is
  172. 5:43called seasonality.
  173. 5:45And here we see median profitability,
  174. 5:47but of course, this is not interesting
  175. 5:49because we would need to see the median
  176. 5:51profitability only of those that are
  177. 5:53profitable, but well. We will see
  178. 5:55further ahead.
  179. 5:57Well, here are more statistics.
  180. 5:58You will see this when the report comes
  181. 5:59out for you, what has been found, well,
  182. 6:01a report that calls the LR and how the
  183. 6:02tests were done.
  184. 6:03We already told you this. Agreed.
  185. 6:05Therefore, what we need to do now is:
  186. 6:08are these 2,344 strategies that are
  187. 6:11profitable really going to continue to
  188. 6:14be so in the future? Well, that is what
  189. 6:17the second step is for. For this, in
  190. 6:18step two, we are going to input the
  191. 6:20following prompt, which is prompt number
  192. 6:22two, okay?
  193. 6:24Now keep the strategies from step one
  194. 6:25that pass these tests and we are going
  195. 6:27to work with those 2,300-odd with the
  196. 6:28same data and rules.
  197. 6:31We are going to perform two tests on
  198. 6:33them, the Monte Carlo test, that is, for
  199. 6:35the winners with at least 100 trades,
  200. 6:3710,000 iterations for each strategy,
  201. 6:39drawing their trades at random with
  202. 6:40replacement.
  203. 6:43In other words, we are going to
  204. 6:44manipulate the trades of each strategy a
  205. 6:46little, without obviously changing the
  206. 6:48nature of that strategy, to see what
  207. 6:50would have happened.
  208. 6:53And the other is permutation, which
  209. 6:55basically means we will look at the
  210. 6:57parameters of each strategy.
  211. 7:00If, for example, it uses momentum, let's
  212. 7:03say an RSI, and it uses a 20-period RSI
  213. 7:06, it will test if a 21, 22, 19, or 18-
  214. 7:08period RSI is still profitable or has a
  215. 7:11similar return to the original strategy
  216. 7:14with that 20-period RSI.
  217. 7:17Therefore, that is a parameter
  218. 7:18permutation test that I run on all the
  219. 7:20strategies I use for trading, okay?
  220. 7:22With algorithmic trading. So, it is a
  221. 7:24very famous test that works very well.
  222. 7:27Finalists, the 10 whose variants earn
  223. 7:29the most for every 1%drop, one per
  224. 7:30indicator, blah, blah, blah.
  225. 7:33I will tell you about that because it's
  226. 7:35about which ones we are going to keep;
  227. 7:37that is, what prompt, what we have to
  228. 7:38tell the AI so that it truly picks the
  229. 7:40best ones for us.
  230. 7:42Right, the same thing, while an HTML
  231. 7:44report, a funnel, a graph, etc., etc. We
  232. 7:46will analyze all of this at the end.
  233. 7:48So I press enter, this will also take a
  234. 7:51few minutes, and remember, in this phase
  235. 7:54, we are not going to create new trading
  236. 7:57strategies.
  237. 7:59All it will do is take those that came
  238. 8:01out of step one, the 2,300-something
  239. 8:03profitable ones, make variations of them
  240. 8:05, and manipulate them a little.
  241. 8:08Why? Because we need it to be stable.
  242. 8:12If that strategy is stable, meaning its
  243. 8:15neighbors or similar versions continue
  244. 8:17to earn the same, it tells us that the
  245. 8:19original has a high chance of continuing
  246. 8:21to be profitable in the future. In other
  247. 8:24words, we move away from a term called
  248. 8:27over-optimization.
  249. 8:29Step two is finished, and the results
  250. 8:31are incredible; what the AI is doing for
  251. 8:33us is helping us a lot.
  252. 8:35I'm going to go directly to the report
  253. 8:36because it will be much better to
  254. 8:37explain all this, and I will display it
  255. 8:39in large format, okay?
  256. 8:41From the funnel, we have passed step one
  257. 8:42, 12,000 strategies, of which 2,344 are
  258. 8:44winners in total out of all those tested
  259. 8:46, okay?
  260. 8:48Duplicates and such have been removed.
  261. 8:50Okay, winners with more than 100 trades
  262. 8:52, which we set in step two, there are
  263. 8:551,964.
  264. 8:56Well, I’ve filtered out others that had
  265. 8:58little trade statistics. We need
  266. 9:00statistics to perform these tests. And
  267. 9:02here we have test one and test two, the
  268. 9:03Monte Carlo.
  269. 9:05As I told you before, it shuffles the
  270. 9:07trades, changes their order, and removes
  271. 9:09a small random percentage of those
  272. 9:10trades.
  273. 9:1395%of the simulations for each strategy
  274. 9:15must be profitable.
  275. 9:18Therefore, we lose a great many
  276. 9:20strategies here, okay?
  277. 9:22So we are left with 95. Then we kept 29
  278. 9:25because many were similar to each other
  279. 9:27.
  280. 9:29And then we move on to test number two,
  281. 9:31which is parameter permutation, which
  282. 9:32basically does this: If, for example,
  283. 9:34you use a 14-period RSI, it checks 16,
  284. 9:3615, 13, 12 to see if it remains stable.
  285. 9:38We’ll see all of this further down
  286. 9:39because it’s very interesting. Look at
  287. 9:41this.
  288. 9:42Drawdown for those that pass test one.
  289. 9:45Well, all this Monte Carlo stuff
  290. 9:47eliminates many of them, which are the
  291. 9:49ones we have above.
  292. 9:51Drawdown, 1%account risk percentage.
  293. 9:54The 95 percent of strategies that pass
  294. 9:56test one, ordered from lowest to highest
  295. 9:59drawdown.
  296. 10:00Well, the drawdown increases
  297. 10:01significantly as we perform a Monte
  298. 10:03Carlo test on all of them, okay?
  299. 10:05Therefore, we are left with far fewer.
  300. 10:07This part here is very interesting, the
  301. 10:09variants of each finalist. This is
  302. 10:11parameter permutation.
  303. 10:13What does this do? Look, strategy number
  304. 10:179020, pivots.
  305. 10:19The orange dot is the original strategy
  306. 10:22, and the blue dots are the simulations
  307. 10:25.
  308. 10:27Notice that the Y-axis is the annual
  309. 10:29return, annualized return, and the
  310. 10:31X-axis, which is down here, is the worst
  311. 10:34drawdown it has, okay?
  312. 10:37Each one with each of the 1000 variants
  313. 10:41, parameters, 20%up, 20%down. Meaning,
  314. 10:44if it uses a MACD, and the MACD period
  315. 10:48is 26 periods, then 20%up would be...
  316. 10:52well, let's say 5, so if we have 26
  317. 10:55periods, it will range from 31 periods
  318. 10:59down to 21 periods. We don't go any
  319. 11:01further because otherwise it would
  320. 11:03distort the original strategy too much,
  321. 11:04okay?
  322. 11:05And so, strategy 9020, which is a
  323. 11:08strategy based on pivots, notice that
  324. 11:11the original one is not in the center of
  325. 11:14the vast majority.
  326. 11:18Notice that this strategy, number 3957,
  327. 11:20which mainly uses the Keltner indicator
  328. 11:22, is in the center, but there are many
  329. 11:24scattered ones.
  330. 11:27Let's look at this one here, Bir's Power
  331. 11:29, number 6395, where all the simulations
  332. 11:32are in a, well, concentrated area; that
  333. 11:34is, there is stability, and besides, the
  334. 11:36original one—which is the one we are
  335. 11:38going to use, we aren't changing the
  336. 11:40original—is more or less in the center.
  337. 11:44This would indicate a stable strategy to
  338. 11:46us, like this one we see down here as
  339. 11:48well.
  340. 11:49Alright, so you now understand this test
  341. 11:51topic a bit more, how important this
  342. 11:52test is, okay?
  343. 11:54And here are the 10 finalists, which is
  344. 11:56, well, what's, well, these are the 10
  345. 11:57we see up here; that is, what we see up
  346. 11:59here is among the very best.
  347. 12:03If I ask, or if you ask the AI, "Hey,
  348. 12:04show me the worst ones," you'll see how
  349. 12:06these charts look, you'll see dots
  350. 12:07everywhere, okay?
  351. 12:10Some statistics for each of them, and
  352. 12:13according to the AI, the three best are
  353. 12:179020, 4042, and 3174057.
  354. 12:20For these reasons, blah blah blah.
  355. 12:22Exact rules for the 10; here they
  356. 12:24explain exactly each one of those 10 to
  357. 12:26me. If I, for example, have chosen 9020
  358. 12:28, then I'll go.
  359. 12:29Pivots against R1 and S1.
  360. 12:32Classic pivots from the previous day,
  361. 12:34buys and a 5-minute candle touches S1
  362. 12:36and closes above it. Only on the close
  363. 12:38above the 200 moving average. Well, you
  364. 12:39can read it yourself as we go.
  365. 12:41But this is absolutely insane. It even
  366. 12:44tells me the top three. And wait,
  367. 12:46because this isn't over yet. Now comes
  368. 12:48the, well, no less important step, but
  369. 12:50definitely one of the most crucial,
  370. 12:51which is converting that strategy you
  371. 12:53want into a trading robot so you can put
  372. 12:55it into MetaTrader 5.
  373. 12:57Therefore, now, I go back to the same
  374. 12:58chat I was working in and I'm going to
  375. 13:00paste this prompt that you yourself will
  376. 13:02also be able to paste.
  377. 13:04Fine, convert the strategy you chose in
  378. 13:06step two into your MetaTrader 5 robot.
  379. 13:09I don't know how to program it, you do
  380. 13:10it.
  381. 13:11Blah blah blah blah blah. You have to
  382. 13:12give me an .mq 5 file, which is the file
  383. 13:15format MetaTrader 5 knows how to read. A
  384. 13:17table with each rule, numbered steps,
  385. 13:19and a step-by-step guide—I'm telling you
  386. 13:21, it's going to generate a step-by-step
  387. 13:22guide for you to know how to install it
  388. 13:24in your MetaTrader 5, because I am not
  389. 13:25going to explain that in this video. I
  390. 13:27have other videos where I explain this,
  391. 13:29but I'll also leave you a document that
  392. 13:30explains it in detail, okay?
  393. 13:33So, we hit enter and now this is the
  394. 13:35task that will take the least amount of
  395. 13:37time, because what it's going to do is
  396. 13:39learn how MetaTrader 5 is coded, and
  397. 13:41since the rules are already fully
  398. 13:43defined and it's an objective strategy,
  399. 13:46it will encode them into programming
  400. 13:48code that you don't even need to
  401. 13:50understand, in a file that you will
  402. 13:52later import into MetaTrader 5, compile
  403. 13:54, and attach to your chart so it can
  404. 13:56trade for you.
  405. 13:59And I've just finished step three, which
  406. 14:01is having the MetaTrader 5 robot, along
  407. 14:03with a document here about my strategy,
  408. 14:05the parameters, testing it before using
  409. 14:07real money, how to connect it to
  410. 14:08MetaTrader 5, and so on.
  411. 14:11I am just going to give you a very
  412. 14:12simple explanation.
  413. 14:13What you can do is either import the
  414. 14:16whole file or click here and copy all of
  415. 14:18this, go to your MetaTrader 5, which I
  416. 14:21have here, go to the IDE tab, which you
  417. 14:23have up here, and wait, because an
  418. 14:26editor will open up here, very simple.
  419. 14:31We go to Experts, New Advisor,
  420. 14:33right-click, new file, new expert
  421. 14:36advisor, we'll name it EA here, I'll use
  422. 14:39Claude, for example.
  423. 14:44Next, next, next, finish. We delete all
  424. 14:47of this and I am going to paste
  425. 14:49everything the robot gave me, okay?
  426. 14:52Once you've pasted it, or if you've
  427. 14:53imported the robot file here, it's the
  428. 14:55same thing, you click compile because
  429. 14:57this is important. When you click
  430. 14:59compile, down on the left, it shows zero
  431. 15:01errors, zero warnings. Perfect, we now
  432. 15:03have the robot ready for MetaTrader 5.
  433. 15:06I close the IDE, algorithmic trading
  434. 15:08must always be connected in green up
  435. 15:10here, I'll right-click on Expert Advisor
  436. 15:13, refresh, and inside Advisors I can now
  437. 15:15see the Claude EA.
  438. 15:18Now, what do we have to do? We have to
  439. 15:20look at the Nasdaq chart and set it to 5
  440. 15:22minutes, which will be down here. Right
  441. 15:24now I don't have it connected to an
  442. 15:25account, but you have to connect it.
  443. 15:27You set it to 5 minutes, you drag it, in
  444. 15:30my case, anyway.
  445. 15:32Here in the Expert Advisor input
  446. 15:33parameters, everything will be exactly
  447. 15:35as you indicated, but Claude always
  448. 15:37leaves you some parameters so you can
  449. 15:39tweak them live and in real-time right
  450. 15:41here in MetaTrader 5.
  451. 15:42You click accept and you will see up
  452. 15:44here on the right that this little blue
  453. 15:46hat icon will appear. Therefore, you now
  454. 15:47have it connected and running
  455. 15:49automatically in your trading account.
  456. 15:50What you have seen up to this point is
  457. 15:52what I promised you at the very
  458. 15:54beginning: three prompts ready to send
  459. 15:56to Claude, starting from a trading idea
  460. 15:58, which generates thousands of
  461. 16:00strategies that we put through
  462. 16:01robustness tests until only a few remain
  463. 16:03. From there, you choose the best one.
  464. 16:07We then export it to MetaTrader 5, to
  465. 16:09MQL5, so you can load it into MetaTrader
  466. 16:115 and have it running automatically for
  467. 16:13you in your trading account.
  468. 16:15All this in less than 20 minutes.
  469. 16:18And the next step I invite you to take
  470. 16:20is to join a documentary I am releasing
  471. 16:23very soon, so you can learn how to use
  472. 16:25artificial intelligence to generate
  473. 16:27truly profitable baseline ideas, just as
  474. 16:29I do, and how to approach your trading
  475. 16:31in a fully automated way, just as I have
  476. 16:34for the last 10 years.
  477. 16:36So, I am sending you this invitation in
  478. 16:37the first comment and in the description
  479. 16:39of this video. It is completely free; it
  480. 16:41is only three days that won't take up
  481. 16:42much of your time, and I am sure you
  482. 16:44will appreciate it a lot.
  483. 16:46So there you have that invitation, you
  484. 16:47also have the three prompts I gave you
  485. 16:49in this video, and I will leave a link
  486. 16:51here so you can download them more
  487. 16:52easily as well; and keep in mind to
  488. 16:54subscribe, give this video a like if it
  489. 16:55has brought you value, share it with a
  490. 16:57colleague who is sure to find it very
  491. 16:59helpful if they are a bit lost, and
  492. 17:00leave any comment because I will read
  493. 17:02and reply to you.
  494. 17:04So, see you in the next video, trader,
  495. 17:05and in the documentary that is coming
  496. 17:06out very soon. Bye, big hug.

About this transcript

This page contains the full transcript of Claude creó 12.000 Estrategias de Trading y me quedé con la Mejor (prompts gratis) by Hobbiecode, generated from the public captions YouTube serves with the video. The transcript has 3,178 words across 496 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 choose a caption track available on the video.

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, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.