Claude creó 12.000 Estrategias de Trading y me quedé con la Mejor (prompts gratis) — Transcript
Full transcript
- 0:01With just a minimal strategy idea and
- 0:03three prompts, Claude generates
- 0:04thousands of strategies, runs them
- 0:06through several robustness tests, and
- 0:09selects the best one to export to
- 0:10MetaTrader 5 so the robot can manage
- 0:12your trading fully automated.
- 0:16All this is what you are going to learn
- 0:18to do in the next 20 minutes, and you
- 0:19will get the three prompts so you can
- 0:21apply it yourself.
- 0:22But first, I encourage you to subscribe
- 0:24to my channel to support all the content
- 0:26I create, not just me, but the team
- 0:27behind it, and also stay updated on
- 0:29everything I'm uploading about trading
- 0:30and trading with artificial intelligence
- 0:32, so subscribe and now let's start the
- 0:34video.
- 0:35Well, the first step is to have a clear
- 0:36idea of the trading strategy you want
- 0:38Claude to generate thousands of
- 0:39combinations of.
- 0:41We are going to attach the file so it
- 0:44analyzes that dataset and not one it
- 0:46might invent.
- 0:48Therefore, we open Claude on this screen
- 0:51as you can see, and I will first attach
- 0:54the Nasdaq file I have prepared.
- 0:57Now it's going to load; it will take a
- 0:59little while. These are the last three
- 1:01or four years that I have loaded in this
- 1:03dataset.
- 1:05If you don't know how to download this
- 1:07data or how to get it, you can download
- 1:09it for free from the EduaScopy website,
- 1:10and if you are a user who uses Strategic
- 1:12One, if you are a very frequent user of
- 1:14my channel, you will know how to get
- 1:16these results from Strategic One, okay?
- 1:18Also taken from EduaScopy.
- 1:20Well, I have them loaded here, a CSV,
- 1:22and I'm going to paste this prompt.
- 1:24Check it out, look for the trading
- 1:25strategy for my idea, I don't know how
- 1:27to program, you write and execute all
- 1:29the code.
- 1:30This is important, you have to change
- 1:31this depending on what you like.
- 1:35What I am going to do in this video is
- 1:37on the Nasdaq, 5-minute candles,
- 1:39intraday strategy, nothing open
- 1:41overnight, only the American session,
- 1:44only buys, sells, or both, let it decide
- 1:46.
- 1:48But what I am telling it is I want you
- 1:50to generate thousands of strategies,
- 1:52look, strategies, generate thousands of
- 1:54different strategies, use all the
- 1:56possible indicators that can be used in
- 1:58MetaTrader 5. Group them into families.
- 2:01Vary periods, direction, another
- 2:02optional filter, and the exit. Rules.
- 2:05100,000 account without compound
- 2:06interest, risk always 1%per trade, that
- 2:08is, 1,000 dollars.
- 2:10I want you to deliver a report in HTML
- 2:12to me. Well, we'll see this now when it
- 2:13finishes. It takes several minutes, so I
- 2:16recommend you copy this, paste it, put
- 2:18in your idea, and hit enter, which I'm
- 2:20going to do now. Good, there we have it
- 2:23.
- 2:24And you go grab a coffee. During this
- 2:26time, what the Cloud will do is generate
- 2:28different strategies, but starting from
- 2:30the same base, without leaving the asset
- 2:32, always in the US session, always 15 or
- 2:345-minute candles, but all the strategies
- 2:37it can find or knows from the internet,
- 2:39making thousands and thousands of
- 2:41variations. We will see in the report
- 2:42how many it has actually generated.
- 2:45And from there, it will pull some
- 2:46statistics and propose the ones it
- 2:48considers profitable.
- 2:50And from there, we will continue working
- 2:52. Well, look, it's already finished. It
- 2:53took approximately 12 minutes on my
- 2:55machine. It's true that it's very
- 2:56powerful. I've tested it on other
- 2:58machines and it took half an hour more.
- 3:00Therefore, it varies a bit; it depends
- 3:02on your machine, on the machine you have
- 3:04, okay?
- 3:05Well, it tells us here it has tested
- 3:0612,000 strategies, session data. Let's
- 3:08look at the report first, which is what
- 3:09I'm most interested in seeing here. Look
- 3:11at that. Nasdaq 100, 5-minute intraday
- 3:13candles in the US session.
- 3:15Tests from January 2, 2024, that is, 3
- 3:16years, I had already told you at the
- 3:18beginning.
- 3:19Good, with a 100,000 account. 12,000
- 3:21strategies. It decided that itself,
- 3:23whatever it could find.
- 3:25Okay?
- 3:27Starting from 167 ideas, 10 families,
- 3:31and 11,975 with different results, okay
- 3:35?
- 3:36There were some, surely there were about
- 3:3825 that were exactly the same.
- 3:40Of which only almost 20%win, 2,300, and
- 3:43the vast majority lose, and 58 do not
- 3:45trade.
- 3:46It surely must be discounting them from
- 3:48here.
- 3:50Therefore, here we can see the average
- 3:52reference of all of them, the curve of
- 3:54all strategies, and obviously, we are
- 3:56going to keep the most winning ones, but
- 3:58there are still 2,344 that are winning,
- 4:00which we are not going to trade with all
- 4:02of
- 4:13them, we are going to keep the best ones
- 4:15.
- 4:15Well, which are the ones in blue, right
- 4:16? The ones that end up above the zero
- 4:18profitability line. In UTC plus 3 if I
- 4:21recall correctly, which would be 3:30 in
- 4:24Spain.
- 4:25Eh, buy at 3:30 and close before the
- 4:27session ends. This comparison is very
- 4:29interesting because it’s telling us that
- 4:31all these strategies that are below this
- 4:33average profitability, which would be
- 4:36just holding, are useless. You have to
- 4:38be above just holding, otherwise don't
- 4:39bother trading.
- 4:41Results by family. What do we mean by
- 4:43family? Trend-following, momentum,
- 4:46overbought, oversold, that is, breakouts
- 4:48either up or down, volatility and
- 4:49channels based on volumes, based on
- 4:51strength, candlestick patterns, session
- 4:53structure, statistics, and calendar.
- 4:55Notice that it has distributed 1,200 of
- 4:58each of them, and in each section, it
- 5:00has found different ideas.
- 5:02In which family has it seen the most
- 5:05winning strategies? Well, this is very
- 5:07interesting, the volume-based ones,
- 5:09which I would totally discard for CFDs,
- 5:12and the session structure ones, as well
- 5:14as the calendar ones, which I like a lot
- 5:16. Look, session structure are those that
- 5:19are intraday 5-minute, eh. They are
- 5:21those ICT things, all these things that
- 5:23I have always said didn't work very well
- 5:25, but well, I like objective strategies
- 5:26, not subjective ones, which is a bit of
- 5:28what I criticize about those types of
- 5:30strategies, okay?
- 5:31Session structure. It's great that they
- 5:33are the ones that the vast majority—
- 5:34well, not the vast majority, but of all
- 5:36the families, they are the ones that win
- 5:37the most.
- 5:38And the calendar. Calendar means time
- 5:40frame or days, only some days, which is
- 5:43called seasonality.
- 5:45And here we see median profitability,
- 5:47but of course, this is not interesting
- 5:49because we would need to see the median
- 5:51profitability only of those that are
- 5:53profitable, but well. We will see
- 5:55further ahead.
- 5:57Well, here are more statistics.
- 5:58You will see this when the report comes
- 5:59out for you, what has been found, well,
- 6:01a report that calls the LR and how the
- 6:02tests were done.
- 6:03We already told you this. Agreed.
- 6:05Therefore, what we need to do now is:
- 6:08are these 2,344 strategies that are
- 6:11profitable really going to continue to
- 6:14be so in the future? Well, that is what
- 6:17the second step is for. For this, in
- 6:18step two, we are going to input the
- 6:20following prompt, which is prompt number
- 6:22two, okay?
- 6:24Now keep the strategies from step one
- 6:25that pass these tests and we are going
- 6:27to work with those 2,300-odd with the
- 6:28same data and rules.
- 6:31We are going to perform two tests on
- 6:33them, the Monte Carlo test, that is, for
- 6:35the winners with at least 100 trades,
- 6:3710,000 iterations for each strategy,
- 6:39drawing their trades at random with
- 6:40replacement.
- 6:43In other words, we are going to
- 6:44manipulate the trades of each strategy a
- 6:46little, without obviously changing the
- 6:48nature of that strategy, to see what
- 6:50would have happened.
- 6:53And the other is permutation, which
- 6:55basically means we will look at the
- 6:57parameters of each strategy.
- 7:00If, for example, it uses momentum, let's
- 7:03say an RSI, and it uses a 20-period RSI
- 7:06, it will test if a 21, 22, 19, or 18-
- 7:08period RSI is still profitable or has a
- 7:11similar return to the original strategy
- 7:14with that 20-period RSI.
- 7:17Therefore, that is a parameter
- 7:18permutation test that I run on all the
- 7:20strategies I use for trading, okay?
- 7:22With algorithmic trading. So, it is a
- 7:24very famous test that works very well.
- 7:27Finalists, the 10 whose variants earn
- 7:29the most for every 1%drop, one per
- 7:30indicator, blah, blah, blah.
- 7:33I will tell you about that because it's
- 7:35about which ones we are going to keep;
- 7:37that is, what prompt, what we have to
- 7:38tell the AI so that it truly picks the
- 7:40best ones for us.
- 7:42Right, the same thing, while an HTML
- 7:44report, a funnel, a graph, etc., etc. We
- 7:46will analyze all of this at the end.
- 7:48So I press enter, this will also take a
- 7:51few minutes, and remember, in this phase
- 7:54, we are not going to create new trading
- 7:57strategies.
- 7:59All it will do is take those that came
- 8:01out of step one, the 2,300-something
- 8:03profitable ones, make variations of them
- 8:05, and manipulate them a little.
- 8:08Why? Because we need it to be stable.
- 8:12If that strategy is stable, meaning its
- 8:15neighbors or similar versions continue
- 8:17to earn the same, it tells us that the
- 8:19original has a high chance of continuing
- 8:21to be profitable in the future. In other
- 8:24words, we move away from a term called
- 8:27over-optimization.
- 8:29Step two is finished, and the results
- 8:31are incredible; what the AI is doing for
- 8:33us is helping us a lot.
- 8:35I'm going to go directly to the report
- 8:36because it will be much better to
- 8:37explain all this, and I will display it
- 8:39in large format, okay?
- 8:41From the funnel, we have passed step one
- 8:42, 12,000 strategies, of which 2,344 are
- 8:44winners in total out of all those tested
- 8:46, okay?
- 8:48Duplicates and such have been removed.
- 8:50Okay, winners with more than 100 trades
- 8:52, which we set in step two, there are
- 8:551,964.
- 8:56Well, I’ve filtered out others that had
- 8:58little trade statistics. We need
- 9:00statistics to perform these tests. And
- 9:02here we have test one and test two, the
- 9:03Monte Carlo.
- 9:05As I told you before, it shuffles the
- 9:07trades, changes their order, and removes
- 9:09a small random percentage of those
- 9:10trades.
- 9:1395%of the simulations for each strategy
- 9:15must be profitable.
- 9:18Therefore, we lose a great many
- 9:20strategies here, okay?
- 9:22So we are left with 95. Then we kept 29
- 9:25because many were similar to each other
- 9:27.
- 9:29And then we move on to test number two,
- 9:31which is parameter permutation, which
- 9:32basically does this: If, for example,
- 9:34you use a 14-period RSI, it checks 16,
- 9:3615, 13, 12 to see if it remains stable.
- 9:38We’ll see all of this further down
- 9:39because it’s very interesting. Look at
- 9:41this.
- 9:42Drawdown for those that pass test one.
- 9:45Well, all this Monte Carlo stuff
- 9:47eliminates many of them, which are the
- 9:49ones we have above.
- 9:51Drawdown, 1%account risk percentage.
- 9:54The 95 percent of strategies that pass
- 9:56test one, ordered from lowest to highest
- 9:59drawdown.
- 10:00Well, the drawdown increases
- 10:01significantly as we perform a Monte
- 10:03Carlo test on all of them, okay?
- 10:05Therefore, we are left with far fewer.
- 10:07This part here is very interesting, the
- 10:09variants of each finalist. This is
- 10:11parameter permutation.
- 10:13What does this do? Look, strategy number
- 10:179020, pivots.
- 10:19The orange dot is the original strategy
- 10:22, and the blue dots are the simulations
- 10:25.
- 10:27Notice that the Y-axis is the annual
- 10:29return, annualized return, and the
- 10:31X-axis, which is down here, is the worst
- 10:34drawdown it has, okay?
- 10:37Each one with each of the 1000 variants
- 10:41, parameters, 20%up, 20%down. Meaning,
- 10:44if it uses a MACD, and the MACD period
- 10:48is 26 periods, then 20%up would be...
- 10:52well, let's say 5, so if we have 26
- 10:55periods, it will range from 31 periods
- 10:59down to 21 periods. We don't go any
- 11:01further because otherwise it would
- 11:03distort the original strategy too much,
- 11:04okay?
- 11:05And so, strategy 9020, which is a
- 11:08strategy based on pivots, notice that
- 11:11the original one is not in the center of
- 11:14the vast majority.
- 11:18Notice that this strategy, number 3957,
- 11:20which mainly uses the Keltner indicator
- 11:22, is in the center, but there are many
- 11:24scattered ones.
- 11:27Let's look at this one here, Bir's Power
- 11:29, number 6395, where all the simulations
- 11:32are in a, well, concentrated area; that
- 11:34is, there is stability, and besides, the
- 11:36original one—which is the one we are
- 11:38going to use, we aren't changing the
- 11:40original—is more or less in the center.
- 11:44This would indicate a stable strategy to
- 11:46us, like this one we see down here as
- 11:48well.
- 11:49Alright, so you now understand this test
- 11:51topic a bit more, how important this
- 11:52test is, okay?
- 11:54And here are the 10 finalists, which is
- 11:56, well, what's, well, these are the 10
- 11:57we see up here; that is, what we see up
- 11:59here is among the very best.
- 12:03If I ask, or if you ask the AI, "Hey,
- 12:04show me the worst ones," you'll see how
- 12:06these charts look, you'll see dots
- 12:07everywhere, okay?
- 12:10Some statistics for each of them, and
- 12:13according to the AI, the three best are
- 12:179020, 4042, and 3174057.
- 12:20For these reasons, blah blah blah.
- 12:22Exact rules for the 10; here they
- 12:24explain exactly each one of those 10 to
- 12:26me. If I, for example, have chosen 9020
- 12:28, then I'll go.
- 12:29Pivots against R1 and S1.
- 12:32Classic pivots from the previous day,
- 12:34buys and a 5-minute candle touches S1
- 12:36and closes above it. Only on the close
- 12:38above the 200 moving average. Well, you
- 12:39can read it yourself as we go.
- 12:41But this is absolutely insane. It even
- 12:44tells me the top three. And wait,
- 12:46because this isn't over yet. Now comes
- 12:48the, well, no less important step, but
- 12:50definitely one of the most crucial,
- 12:51which is converting that strategy you
- 12:53want into a trading robot so you can put
- 12:55it into MetaTrader 5.
- 12:57Therefore, now, I go back to the same
- 12:58chat I was working in and I'm going to
- 13:00paste this prompt that you yourself will
- 13:02also be able to paste.
- 13:04Fine, convert the strategy you chose in
- 13:06step two into your MetaTrader 5 robot.
- 13:09I don't know how to program it, you do
- 13:10it.
- 13:11Blah blah blah blah blah. You have to
- 13:12give me an .mq 5 file, which is the file
- 13:15format MetaTrader 5 knows how to read. A
- 13:17table with each rule, numbered steps,
- 13:19and a step-by-step guide—I'm telling you
- 13:21, it's going to generate a step-by-step
- 13:22guide for you to know how to install it
- 13:24in your MetaTrader 5, because I am not
- 13:25going to explain that in this video. I
- 13:27have other videos where I explain this,
- 13:29but I'll also leave you a document that
- 13:30explains it in detail, okay?
- 13:33So, we hit enter and now this is the
- 13:35task that will take the least amount of
- 13:37time, because what it's going to do is
- 13:39learn how MetaTrader 5 is coded, and
- 13:41since the rules are already fully
- 13:43defined and it's an objective strategy,
- 13:46it will encode them into programming
- 13:48code that you don't even need to
- 13:50understand, in a file that you will
- 13:52later import into MetaTrader 5, compile
- 13:54, and attach to your chart so it can
- 13:56trade for you.
- 13:59And I've just finished step three, which
- 14:01is having the MetaTrader 5 robot, along
- 14:03with a document here about my strategy,
- 14:05the parameters, testing it before using
- 14:07real money, how to connect it to
- 14:08MetaTrader 5, and so on.
- 14:11I am just going to give you a very
- 14:12simple explanation.
- 14:13What you can do is either import the
- 14:16whole file or click here and copy all of
- 14:18this, go to your MetaTrader 5, which I
- 14:21have here, go to the IDE tab, which you
- 14:23have up here, and wait, because an
- 14:26editor will open up here, very simple.
- 14:31We go to Experts, New Advisor,
- 14:33right-click, new file, new expert
- 14:36advisor, we'll name it EA here, I'll use
- 14:39Claude, for example.
- 14:44Next, next, next, finish. We delete all
- 14:47of this and I am going to paste
- 14:49everything the robot gave me, okay?
- 14:52Once you've pasted it, or if you've
- 14:53imported the robot file here, it's the
- 14:55same thing, you click compile because
- 14:57this is important. When you click
- 14:59compile, down on the left, it shows zero
- 15:01errors, zero warnings. Perfect, we now
- 15:03have the robot ready for MetaTrader 5.
- 15:06I close the IDE, algorithmic trading
- 15:08must always be connected in green up
- 15:10here, I'll right-click on Expert Advisor
- 15:13, refresh, and inside Advisors I can now
- 15:15see the Claude EA.
- 15:18Now, what do we have to do? We have to
- 15:20look at the Nasdaq chart and set it to 5
- 15:22minutes, which will be down here. Right
- 15:24now I don't have it connected to an
- 15:25account, but you have to connect it.
- 15:27You set it to 5 minutes, you drag it, in
- 15:30my case, anyway.
- 15:32Here in the Expert Advisor input
- 15:33parameters, everything will be exactly
- 15:35as you indicated, but Claude always
- 15:37leaves you some parameters so you can
- 15:39tweak them live and in real-time right
- 15:41here in MetaTrader 5.
- 15:42You click accept and you will see up
- 15:44here on the right that this little blue
- 15:46hat icon will appear. Therefore, you now
- 15:47have it connected and running
- 15:49automatically in your trading account.
- 15:50What you have seen up to this point is
- 15:52what I promised you at the very
- 15:54beginning: three prompts ready to send
- 15:56to Claude, starting from a trading idea
- 15:58, which generates thousands of
- 16:00strategies that we put through
- 16:01robustness tests until only a few remain
- 16:03. From there, you choose the best one.
- 16:07We then export it to MetaTrader 5, to
- 16:09MQL5, so you can load it into MetaTrader
- 16:115 and have it running automatically for
- 16:13you in your trading account.
- 16:15All this in less than 20 minutes.
- 16:18And the next step I invite you to take
- 16:20is to join a documentary I am releasing
- 16:23very soon, so you can learn how to use
- 16:25artificial intelligence to generate
- 16:27truly profitable baseline ideas, just as
- 16:29I do, and how to approach your trading
- 16:31in a fully automated way, just as I have
- 16:34for the last 10 years.
- 16:36So, I am sending you this invitation in
- 16:37the first comment and in the description
- 16:39of this video. It is completely free; it
- 16:41is only three days that won't take up
- 16:42much of your time, and I am sure you
- 16:44will appreciate it a lot.
- 16:46So there you have that invitation, you
- 16:47also have the three prompts I gave you
- 16:49in this video, and I will leave a link
- 16:51here so you can download them more
- 16:52easily as well; and keep in mind to
- 16:54subscribe, give this video a like if it
- 16:55has brought you value, share it with a
- 16:57colleague who is sure to find it very
- 16:59helpful if they are a bit lost, and
- 17:00leave any comment because I will read
- 17:02and reply to you.
- 17:04So, see you in the next video, trader,
- 17:05and in the documentary that is coming
- 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.