Master ALGO Trading In Less Than 90 Minutes (NO Coding) | $1M+ Profits — Transcript
Full transcript
- 0:00He has done close to a million dollars
- 0:01in verified profits of which over
- 0:03250,000 is on Kinfo. To execute this
- 0:07kind of surgical action, you need speed.
- 0:10You need emotionless execution. You
- 0:12don't write a single line of code. Not
- 0:15one. But you can still make money with
- 0:1640% success rate. So there is what we
- 0:19call the this algorithmic trader has
- 0:22created profitable trading algorithms
- 0:24without knowing how to code. And in this
- 0:26episode, he will reveal exactly [music]
- 0:28how you can do the same.
- 0:30>> As a breakout trader, this is how I size
- 0:32my trade. A good trader cut his loss
- 0:34quickly, let his profit run to target,
- 0:37manage his position size based on.
- 0:39>> Introducing Noel T. Noel goes through
- 0:42the exact process of developing his
- 0:45trading algorithm.
- 0:46>> I don't know about you, but I I am a U.
- 0:48I'm imperfect and I prefer an algo that
- 0:51will handle all this action for me. This
- 0:53is a very important metric that you need
- 0:55to analyze as a an algo trader and you
- 0:58have a whole other metric that you know
- 1:00because
- 1:00>> he shares the exact platform he uses in
- 1:04order to develop these and shows exactly
- 1:06how you can do the same.
- 1:08>> This software lets you code a bot
- 1:11without learning how to code without
- 1:13writing single line of code. So as an
- 1:15aggro trader, it is important to know
- 1:17this metric because you will be more
- 1:19confident when you will trade with your
- 1:21own money cuz you know you never have to
- 1:23take an execution again. You never have
- 1:25to manage your own trade again. Build,
- 1:27develop, and manage algorithms instead.
- 1:31Welcome everyone back to Chart Fanatics,
- 1:33the go-to channel for all of the very
- 1:35best strategy and concept breakdowns
- 1:37with some of the very best traders in
- 1:39the world. We're talking of which today
- 1:41we are back in Miami after LA and we're
- 1:44back home in the move Miami and they're
- 1:46in a new place [music] as you can tell.
- 1:48It's incredible. But today we have a
- 1:50phenomenal trader. He has done close to
- 1:52a million dollars in verified profits of
- 1:54which over 250,000 I think 270,000 to be
- 1:57a bit more accurate is on Kinfo which is
- 2:00incredible a verification platform
- 2:01there. He is an algorithmic trader. Our
- 2:04first both on charts and words of wisdom
- 2:07which we'll be shooting after this. But
- 2:08here on chart for you're wondering how
- 2:10do we showcase algorithmic trading?
- 2:12Well, you're going about to find out and
- 2:13this is actually a masterass into how to
- 2:15do so with no coding experience and this
- 2:19is the future of trading in my opinion
- 2:20and in many professionals opinion
- 2:23[music] as well. So without further ado,
- 2:26it is the one and only now fell.
- 2:29>> Thanks for having me.
- 2:30>> How do I say it? Correct.
- 2:31>> Yes.
- 2:32>> Perfect. And aka his name on X is Ultra
- 2:35Instinct, right? Yes. Perfect. But here
- 2:37we are. So, thank you for being here.
- 2:39First of all,
- 2:40>> thanks for having me. I'm super excited
- 2:41because again, you know, I've been
- 2:42recently having many conversations with
- 2:45professional traders and and
- 2:46non-professionals alike talking about
- 2:48how algorithmic trading is one already
- 2:51changed the markets, but two is going to
- 2:52be even more uh prominent, popular, and
- 2:57we're going to see a lot more uh changes
- 2:59in the market due to algorithmic trading
- 3:01and the advancements and especially with
- 3:03AI coming around, which I know we just
- 3:05briefly talked about, but where do you
- 3:07think it's best to begin in terms of uh
- 3:09what we're going to be talking about
- 3:10Today
- 3:10>> first we have to know the advantage of
- 3:14algorithmic trader. So a good trader cut
- 3:18his loss quickly, let his profit run to
- 3:22target, manage his position size based
- 3:25on volatility and trade setup. To
- 3:27execute this kind of surgical action,
- 3:30you need speed. You need emotionless
- 3:34execution
- 3:35and you need many hours per day of
- 3:39monitoring without fatigue. I don't know
- 3:41about you, but I I am a human. I'm
- 3:44imperfect and I prefer an algo that will
- 3:47handle all this action for me. Another
- 3:49benefit of algo trading is um you have
- 3:52to access the data. There is no gray
- 3:55zone. it is black or white.
- 3:58>> You define your entry logic
- 4:04and you define your exit logic
- 4:10and you then back test it.
- 4:15You want to back test your strategy
- 4:17across
- 4:18many year
- 4:22[clears throat] and many market regime.
- 4:25This is very important.
- 4:27>> Market cycles.
- 4:28>> Yes.
- 4:34>> So when you back test the strategy, you
- 4:37have access as an algo trader to
- 4:39multiple trading metric. One of them
- 4:41that is very important is what we call a
- 4:45risk adjusted return such as we call it
- 4:49the UPI.
- 4:50>> Mhm.
- 4:51>> Or the sharp ratio. Just to explain to
- 4:53your audience what this mean. So let's
- 4:56say you have
- 4:57strategy
- 5:00A.
- 5:02It deliver 20% a year of return. Right.
- 5:07But it is exposed 100% of the time in
- 5:11the market.
- 5:12>> Mhm.
- 5:15Right. And you have strategyb
- 5:22where it also deliver 20%
- 5:26return per year
- 5:28but it is only exposed 10%
- 5:33of the time
- 5:35in the market.
- 5:39So as an algo trader you have the choice
- 5:42between these two strategy right. Let me
- 5:45ask you a quick question. Which one
- 5:47would you choose?
- 5:48>> I was looking at this at face value. I
- 5:50would say this one.
- 5:51>> This one. Good answer. Why? Because your
- 5:54capital is working only 10% of the time
- 5:57in the market which mean you are less
- 6:00exposed to black swan events and at the
- 6:04same time it deliver a nice 20% a year
- 6:07of return. This means also that 90% of
- 6:11the time you can deploy your capital on
- 6:14other strategy on other market you have
- 6:17the potential to maybe have better
- 6:20return than 20%. So if you have three,
- 6:23four, five strategy diversified across
- 6:25multiple instrument, multiple time
- 6:27frame, you can achieve a pretty
- 6:30interested interesting annual return per
- 6:33year.
- 6:33>> Right? So this is what we call the risk
- 6:35adjusted approach in algo trading. Hey
- 6:38guys, before we get into this incredible
- 6:40episode, I want to say a massive thank
- 6:41you for all of your support so far on
- 6:43both words of wisdom and chart fanatics.
- 6:46We have grown immensely and are still
- 6:48the fastest growing channels in the
- 6:50trading industry. Now, a way to give
- 6:52back to every single one of you. If you
- 6:53want profitable strategies completely
- 6:56for free, go to chart fanatics.com. The
- 6:59links in the description, put your email
- 7:01in, and every single week we will send
- 7:03you a free PDF with a profitable
- 7:05strategy of the guests that we host. As
- 7:07well as on the website, you can go
- 7:09straight there and you can go through
- 7:10the library of strategies completely for
- 7:13free. Just input your email. On top of
- 7:14that, we launched a Chart fanatics free
- 7:17Discord community that has already over
- 7:1910,000 members of traders across the
- 7:22world. We have our live traders from
- 7:24Chart Fanatics Live in there. I'm
- 7:26documenting every single one of my
- 7:28trades in there. And we have exclusive
- 7:29discounts, massive giveaways, and so
- 7:32much more just to give back to every
- 7:34single one of you. Let's not forget
- 7:35updates on every episode and things that
- 7:38we are bringing to this industry that's
- 7:40going to change it forever. But for now,
- 7:42the links for that are in the
- 7:43description. Let's get into this
- 7:44episode.
- 7:45>> In terms of uh back testing, we may go
- 7:47over it already, but I just wanted to
- 7:48ask.
- 7:49>> Yeah.
- 7:49>> Is that also an automated
- 7:51>> Yes.
- 7:52>> approach to collecting that data? Yeah.
- 7:53>> And is there any is there a specific
- 7:56platforms you use or is it something
- 7:57that you have to build yourself?
- 7:59>> Yeah. So with the coming of AI right
- 8:02now, everybody can go to chat GBT write
- 8:05a prompt and it will generate a coding
- 8:08strategy, right? But it doesn't mean
- 8:10that the strategy will work. You need to
- 8:13have a robust process to make sure that
- 8:16your strategy is robust, right? And you
- 8:20have a software that is specialized for
- 8:22this. I use strategic quant x sqx. It is
- 8:25a trading system builder. The benefit of
- 8:28this system trading builder is first you
- 8:31don't write a single line of code, not
- 8:34one. Right? you have access access to
- 8:38already to all the data that you need,
- 8:40all the stock that you need. So it's a
- 8:43matter of clicking the rule that you
- 8:45want to choose back test across the year
- 8:48that you want and you will have access
- 8:50to many metrics such as the risk
- 8:52adjusted u approach that I showed you.
- 8:55Mhm.
- 8:55>> So it is pretty user friendly but of
- 8:59course you need to have a robust process
- 9:01to make sure that the strategy that you
- 9:03will put your hard real earn money um
- 9:07to make sure that it is robust enough.
- 9:10So uh just to continue another metric
- 9:12that said it is important we call the
- 9:15draw down right
- 9:19this is very important why because I'm
- 9:24pretty sure you saw this online but if
- 9:27you have a 50% draw down right for your
- 9:31audience let's say you start with a
- 9:33$100,000 account your account dropped to
- 9:35$50,000 this represent 50% of draw down
- 9:38to make it back you need 100%
- 9:43return right
- 9:46it's pretty pretty difficult right so
- 9:50the approach is to have lower dry down
- 9:54hopefully realistically on my part
- 9:58between 20 25%
- 10:00is pretty realistic right normal across
- 10:05all the back tests that I did this is
- 10:07pretty average right But if you want to
- 10:10make back this 20 25% you don't have a
- 10:13lot to make. Maybe 30% 35% pretty
- 10:17achievable right across the the the
- 10:21future. So um the idea is why we
- 10:26concentrate on because people right when
- 10:30they you see them participate in US
- 10:32investing championship or competition
- 10:35they will show crazy return. Yeah. Even
- 10:38the great uh Larry Williams,
- 10:41>> he beat the record. He made around
- 10:4310,000% in one year. But he even himself
- 10:48said that at one point he was up $2
- 10:50million, but he ended the competition
- 10:52with $1 million and he started with
- 10:55$10,000. The return is outstanding, but
- 10:59the draw down is 50%.
- 11:01>> Yeah.
- 11:01>> So, you have to ask yourself about your
- 11:03risk tolerance. Are you ready to trade a
- 11:06strategy with 50%
- 11:09to maybe potentially make 100 or more or
- 11:1220 25%. So it has to fit your risk
- 11:16tolerance
- 11:17>> for that. So this is a very important
- 11:20metric that you need to analyze as a
- 11:23nargo trader and you have a whole other
- 11:26metric that you know because when you
- 11:28trade a strategy right uh when you know
- 11:32the inside inside out I know for
- 11:34instance as an algo trader where is my
- 11:36max draw down what is my annual return
- 11:39what is my percent of time that I am
- 11:41exposed to the market right I know what
- 11:44is my maximum consecutive losses
- 11:47I have all these metrics to manage my
- 11:50expectation when I trade my with my real
- 11:53money. So as an algo trader, it is
- 11:56important to know this metric because
- 12:00you will be more confident when you will
- 12:02trade with your own money because you
- 12:04know the data, you know how it performed
- 12:06during the last bare market, bull market
- 12:09and so on. Yeah, it's interesting you
- 12:11mentioned in terms of the metrics in
- 12:12terms of the risk tolerance is very very
- 12:14important as an individual because
- 12:16everyone's risk tolerance is going to be
- 12:18different but equally as you mentioned
- 12:21that you have to think about what is the
- 12:24goal of the trader because if you're
- 12:25just an independent trader trading your
- 12:27own capital and as long as you accept
- 12:29your risk tolerance and what the reality
- 12:30of that is then that's fine but then
- 12:32equally if the goal of the trader is to
- 12:34say get investor capital or trade
- 12:36someone else's money then it's less
- 12:39still important what can handle but it's
- 12:41equally okay what would a investor be
- 12:42happy with right so like looking at the
- 12:45two examples on the board an investor
- 12:48probably is going to be looking at the
- 12:4920 25% as more acceptable even that
- 12:52might be slightly large for that
- 12:53investor right so I think it does come
- 12:54down to as well the goal of your trading
- 12:57um you know some people's goal is to
- 12:59attract investor capital and and to
- 13:00trade other people's money a lot of
- 13:02traders of course are really focused on
- 13:04that independent route a lot of traders
- 13:06nowadays are trading even funding
- 13:08companies and and these prop firms as
- 13:10they're called. Uh or there might be
- 13:12traders who are trading at traditional
- 13:13prop firms, right? And all of these
- 13:14different endeavors or paths will
- 13:17dictate as well what's acceptable or
- 13:20not. Of course, the independent route
- 13:22means whatever you're accepting is most
- 13:24important and I think that is the goal
- 13:26of most traders out there. But that's
- 13:28definitely a really important thing
- 13:30you've highlighted there in terms of
- 13:31understanding the draw down. So have you
- 13:33seen you know dependent on the strategy
- 13:35and and how it's been configured there
- 13:38are different draw downs and different
- 13:39metrics that come out and then do you
- 13:41then select what's acceptable for you
- 13:43and not
- 13:45>> yes this is a ve very good point uh
- 13:48because as an ago trader there is
- 13:51another concept that we use a lot right
- 13:54so trading the market you either make
- 13:58money with three-way either with
- 14:00breakout directional trading
- 14:02main reversion, right? Or choppy market,
- 14:06right? So,
- 14:09I trade mainly breakout. This means that
- 14:14my success rate is around 40%. Right?
- 14:17This may sound counterintuitive with a
- 14:19lot of people, but you can still make
- 14:20money, of course,
- 14:21>> with 40% success rate. So, there is what
- 14:25we call the risk
- 14:28of ruin.
- 14:31Right. And this pretty much will tell
- 14:34you how much you can size.
- 14:37>> Yeah.
- 14:37>> So the first uh setting of uh this risk
- 14:42of rune calculator is what is your
- 14:44winning percentage?
- 14:50Mine is around 40%.
- 14:52>> Yeah.
- 14:53What is your riskto-reward
- 15:00ratio?
- 15:02This mean you risk $1,000 to make 2,000
- 15:05$2,000. So in this situation, mine is
- 15:09around two, sometimes three, but let's
- 15:12say two.
- 15:12>> Okay.
- 15:13>> Right. [snorts] And um the the the third
- 15:17setup is how how much in percent term is
- 15:21your average loss.
- 15:25Right? Mine is around 0.5%.
- 15:29>> Okay.
- 15:29>> Right. Sometime lower sometime but the
- 15:32average is around 0.5%.
- 15:34So what is the risk of ruin
- 15:38roughly if you want to give me is it
- 15:4010%, 15%, 5%.
- 15:44>> Yours I would say is would be quite low
- 15:47risk of run
- 15:48>> near zero.
- 15:49>> Yeah.
- 15:50>> Between let's say 0 to 2%.
- 15:52>> Of risk of run and you can play with all
- 15:56of these parameter. There is a lot of
- 15:59calculator online that you can try it.
- 16:01If you have, let's say, a higher winning
- 16:03percentage rate,
- 16:04>> you will likely have a less riskreward
- 16:07to ratio. Yeah. Probably around 0.5 0.4.
- 16:11But if you risk more than 1%,
- 16:14>> you your risk of run will greatly
- 16:16increase.
- 16:17>> Yes.
- 16:17>> So on my end as a breakout trader, this
- 16:21is how I size my trade. So if I have a
- 16:25strategy, I will allocate let's say
- 16:28between five to 25% of my account on a
- 16:30single algo. But I have to make sure
- 16:33that my average loss is 0.5% or lower.
- 16:37>> So when you do that, let's say you
- 16:38assign 20 to 25% of your capital to one
- 16:41algorithm, right? So one strategy, but
- 16:43then the 0.5% is that of the 20 25% of
- 16:47the overall or is that 0.5 of the total
- 16:49capital?
- 16:50>> No. Yeah, it is on the allocated fund.
- 16:53Got you. Mhm.
- 16:54>> Right. So if I let's say I have a
- 16:56$100,000 I risk
- 16:59>> to be aggressive 25% $25,000. I want to
- 17:02make sure that my average loss does not
- 17:04exceed 0.5% of my $25,000
- 17:08>> dollar which when you look at the
- 17:11portfolio level it's it's even lower the
- 17:13loss. So your risk of run is again lower
- 17:18than it should be.
- 17:19>> Up to 6 million in futures funding.
- 17:22That's only possible at one place, Apex
- 17:24Trader Funding. You can get up to 20
- 17:27accounts at Apex. No other futures firm
- 17:30offers anything even close. And that is
- 17:32why Apex pays out the most [music] out
- 17:35of any futures firm. Already have paid
- 17:38out over half a billion dollars. Half a
- 17:40billion dollars so far to traders just
- 17:42like you across the world. They're no
- 17:44stranger to the podcast or chart
- 17:46fanatics. We've had some of the record
- 17:48holders of largest payouts in prop firm
- 17:50history. obviously only through Apex
- 17:52with Trader Kane who did over $1.9
- 17:55million in a single payout and Jadecap
- 17:58who's also done over $2.3 million in a
- 18:01single payout at Apex. Not only can you
- 18:04get up to 20 accounts, but also it's
- 18:06only a one-phase evaluation. There's no
- 18:08daily draw down. Up to $25,000
- 18:11of each payout is 100% yours to keep and
- 18:1490% profit split thereafter. And most of
- 18:17all, there's no profit cap. Now, don't
- 18:20forget, you can get a payout at Apex
- 18:22every 8 days. So, you can get either
- 18:24their 25K account all the way up to
- 18:26their 300K account and you can get up to
- 18:2920 accounts. Now, make sure when you're
- 18:31getting an account at Apex, you use the
- 18:33code CF for up to 90% off at Apex Trader
- 18:37Funding. The link is in the description
- 18:39below. Use the code CF. Get up to 6
- 18:43million in futures funding today. Let's
- 18:45say for example you have a strategy that
- 18:48you know may not perform
- 18:50>> consistently through the year. Just
- 18:51going back to your original point of the
- 18:53two examples, strategy A, strategy B.
- 18:55Say you have strategy B that's only in
- 18:57the market 10% of the time but can
- 18:59provide a 20% return with that example.
- 19:03Does that mean that potentially the
- 19:05percentage of winners is higher for that
- 19:07particular strategy? Does the average uh
- 19:10loss or risk that you're willing to put
- 19:12onto those sort of that sort of strategy
- 19:14higher as well? Is there is there any
- 19:16metrics that allows you to then increase
- 19:18uh your risk size without having to
- 19:21maybe adjust your risk or ruin size
- 19:23because the strategy itself is what some
- 19:26may class as an a star setup if you will
- 19:28a star strategy. Is that something you
- 19:30do with algorithmic trading as well
- 19:31where you grade your strategies or have
- 19:34strategies that may perform better but
- 19:36maybe frequency is less versus strategy
- 19:39where frequency is higher but the
- 19:41performance is not bad because obviously
- 19:43you wouldn't use it then right but the
- 19:45performance is say just a more average
- 19:47performing strategy. A very good
- 19:49question is um as an algo trader you
- 19:52have to be uh conservative that's mean
- 19:56that you have to expect that the
- 19:58strategy that you will make that you
- 20:00will allocate will fail.
- 20:02>> Okay.
- 20:03>> Right. So uh there is a concept we call
- 20:07Monte Carlo Monte Carlo test. So
- 20:10basically the Monte Carlo test is you
- 20:12reshuffle your trade to see what is your
- 20:15worst outcome because nowadays every
- 20:18software will generate a beautiful
- 20:21equity curve but it doesn't mean this is
- 20:24the equity curve that you will have in
- 20:26real time with your real money.
- 20:28>> So you have to have some process to turn
- 20:32off the strategy. I always use this
- 20:35analogy. Uh when you manage a portfolio
- 20:38of strategy, it's like managing
- 20:41a a sports team, your goal is to let
- 20:44your A+ player on the field
- 20:46>> and removing the less performing one,
- 20:48right?
- 20:49>> So some people, some algo trader for
- 20:52instance, if the draw down of the
- 20:54strategy that they deploy exceed one and
- 20:57a half times sorry the usual draw down
- 20:59that you see on the back test, they will
- 21:01just turn it off. Okay,
- 21:02>> that's mean that it is failing probably
- 21:04failing.
- 21:05>> Mhm.
- 21:05>> Then it's the moment to replace it with
- 21:07a new one.
- 21:08>> Okay.
- 21:08>> Right. But the logic to uh go back to
- 21:11your question is the same. So if my algo
- 21:15have 40% I will deploy it as you know to
- 21:19respect my average loss of 0.5%. Right?
- 21:22But the beauty of the algorithmic
- 21:25trading is let's say you have an algo
- 21:27that trade based on volume and you have
- 21:29another algo that trade on based on
- 21:31price action and the two have the same
- 21:34signal.
- 21:35>> Okay.
- 21:35>> Right.
- 21:36>> Mhm.
- 21:37>> Um we call this like it's like ensemble
- 21:40trading an ensemble. It's like a voting
- 21:42system.
- 21:43>> Okay.
- 21:43>> So you have this guy that trade volume
- 21:45this guy trade price action the other
- 21:47guy trade mini reversion and the three
- 21:49of them give you the signal to go long.
- 21:52Okay.
- 21:52>> Right.
- 21:53>> Maybe this is the time to press heavier.
- 21:57>> Okay.
- 21:57>> Because it will the the quality of the
- 22:00signal will likely be higher. Right? And
- 22:03this is where you can size a bigger
- 22:06amount. So let's say you size 10% of the
- 22:08volume guy, 10% on the price action on
- 22:11the other on the mini reversion. Now you
- 22:13have 30% of your account on this single
- 22:16trade.
- 22:16>> Mhm.
- 22:17>> But they have of course different exit.
- 22:19But to get back to your to your question
- 22:23>> um yeah you can definitely increase the
- 22:25size
- 22:26>> but it has to be robust system.
- 22:29>> Yeah. So it has to be you know in in
- 22:31line with the data still because it
- 22:32doesn't change of course which even to
- 22:34the the discretionary manual traders is
- 22:37the same principle like it's all backed
- 22:38off data. They won't just do it based on
- 22:40feeling, right? Which is uh well to be
- 22:43to completely honest some of them have
- 22:45said there's a bit of intuition in there
- 22:46of course as well. But to your point
- 22:48just to finish off on that topic as you
- 22:50say so they you notice that free are
- 22:52sort of converging uh to give the same
- 22:55signal. Do you manually have to increase
- 22:57that size or is that still something
- 22:58that's automated?
- 22:59>> Automate 100% automate. Is it a case
- 23:03where let's say that if the signal is
- 23:04saying tick tick take t take t take
- 23:06across all three it will just automate
- 23:08that this decision that's been
- 23:10pre-planned or you still need to even
- 23:12though it's automated in its delivery do
- 23:13you have to make the adjustment or that
- 23:15adjustment's already programmed coded
- 23:17>> yeah it is done completely automatically
- 23:20>> and you have to look you will also look
- 23:23at in the back test that's why I always
- 23:26pound on the table you have to back test
- 23:28your strategy
- 23:29>> so and your portfolio so at some point
- 23:31in your portfolio Let's say you have a
- 23:33strategy on Apple and the three system
- 23:37that are supposed to be uncorrelated,
- 23:41right? They all fire the same signal,
- 23:43but you will be heavier on Apple,
- 23:46>> right? So, you will go long Apple uh
- 23:49based on this three algo, right?
- 23:51Hopefully, these algo are are not that
- 23:53exposed to the market. So, it's going to
- 23:54be in and out, right? You will not hold
- 23:56it for days
- 23:58>> or week. But yeah, it is completely done
- 24:01automatically.
- 24:02>> I love that. So I know we could keep
- 24:04going with the whiteboard, no doubt, and
- 24:06do some stuff, but I know everyone at
- 24:07home probably feeling the same way. This
- 24:09is great, but we want to see the code or
- 24:11the algorithm, the platforms. So should
- 24:13we should we uh pivot across to there?
- 24:15>> Sure.
- 24:15>> Perfect. Yeah.
- 24:16>> So, now that we've gone through the
- 24:18whiteboard section where we've sort of
- 24:19mapped out the mindset behind using
- 24:21algorithms and sort of how robust they
- 24:24need to be and the data collection and
- 24:25the risk of ruin and the risk
- 24:27calculations and the things that need to
- 24:28be thought out before implementing an
- 24:31algorithm, we're now going to go through
- 24:33a toz step-by-step process of actually
- 24:36building an algorithm without using
- 24:38code. So, no coding experience
- 24:39necessary. uh the different parameters
- 24:41we'll look at everything all a toz to
- 24:44actually have an algo that can trade for
- 24:46you in the markets. So where should we
- 24:48begin with that?
- 24:49>> Perfect. So this is a trading system
- 24:53builder. It is called strategy quant x.
- 24:57So this software lets you code a bot
- 25:02without learning how to code without
- 25:04writing a single line of code. Right? So
- 25:07if we go here in the screen you can see
- 25:10that um
- 25:13on this setting it says what to build.
- 25:16So for the sake of this example we want
- 25:19to build a long only we have the choice
- 25:22to build short both long and and short
- 25:24but we're going to stick to only long.
- 25:28Um we're going to use genetic evolution.
- 25:31You can use random generation. So
- 25:34basically random generation it will
- 25:37try randomly different set of rule. So
- 25:40let's say buy when RSI is below 30 and
- 25:44if it's Friday by the stocks. So this is
- 25:48by random generation or genetic
- 25:50evolution right
- 25:52>> or genetic evolution.
- 25:53>> Genetic evolution it's because it will
- 25:57optimize the setting of the indicator
- 25:59right. So it will say okay buy when RSI
- 26:023 is below 1.5 you know what I mean
- 26:06>> right so uh it's it it will really
- 26:09curfeit the strategy but this is not
- 26:11what we want
- 26:13>> because we will have after that
- 26:15>> a filtering process
- 26:17>> because we're going to test the strategy
- 26:18across multiple parameter so we're going
- 26:21to take the same strategy we're going to
- 26:22say okay I'm going to say to the
- 26:23software test it when RSI is below 20 30
- 26:2740 15 10 and so on. And if we have a r a
- 26:32wide range of profitability, then we
- 26:35know the strategy is robust.
- 26:36>> Okay.
- 26:37>> When the strategy is not robust,
- 26:39>> when it pick the setting that you want,
- 26:43>> it will fail.
- 26:44>> Yeah.
- 26:44>> Because it cherrypicked the data to have
- 26:48the perfect equity curve.
- 26:49>> Okay.
- 26:50>> Right. But this is not what we want. We
- 26:52want a robust one that's work across
- 26:55multiple setup. Gotcha. Right. Yeah.
- 26:58>> For uh the number of condition to
- 27:00generate um
- 27:03we have the choice of using one rule
- 27:06only, two rule, three rule, four rule
- 27:08and so on. But um the more rule that you
- 27:12will use the likely this strategy will
- 27:15be overfit. Meaning it's going to fit
- 27:18only the data will which will when you
- 27:21will be trading it with real money in
- 27:23real time, it will fail, right? because
- 27:26it's easy to generate nice looking
- 27:27equity curve. You want something robust.
- 27:30So we want to stick to maybe two entry
- 27:33rule to three
- 27:35>> entry rule and for exit rule you want
- 27:39maybe one to two. I'll stick to one
- 27:41right
- 27:42because at the end we're going to have a
- 27:44maximum of three rule of entry. So we
- 27:47reduce the likelihood of the strategy
- 27:49not performing.
- 27:50>> Right?
- 27:54So we have a stop loss it's going to be
- 27:56required. You have the choice of a
- 27:59percentage stop loss between 1 and 10%.
- 28:01You have ATR based it use volatility
- 28:05stop right because as you know when
- 28:07market are calm it doesn't move a lot
- 28:10but when market are very volatile the
- 28:14average moving per day is higher. Yeah.
- 28:16Right. So you want an ATR based and or
- 28:18it can only use an indicator which mean
- 28:22if the close is below a catner channel
- 28:24just exit the trade basically right so
- 28:27this is the parameter that's you give to
- 28:30SQX same logic is applied with profit
- 28:34target is it required yes person yes
- 28:39>> and we can use also an indicator level
- 28:42right so this is what we want to build
- 28:46So this is the interesting part here the
- 28:48building block the the building block.
- 28:51So here you have predefined condition.
- 28:54>> Yeah
- 28:54>> you have uh you see um
- 28:58hammer pattern you have a lot of rule
- 29:01bullinger bar close above lower band u
- 29:04all these are automatically generated.
- 29:07Let's say you want to go to RSI go to
- 29:10the letter R. Um
- 29:14we can see here
- 29:16that's
- 29:18error size here right resize change
- 29:20direction downward area cross above
- 29:23level and so on you can select them all
- 29:26or not but I just selected it randomly
- 29:29just choose choose random 100 block I
- 29:32can add more if I want to choose other
- 29:35indicator ATR edx um CCI you name it
- 29:41they have it probably uh so have a lot
- 29:44of indicator that the software will try
- 29:46to generate a strategy with. So this is
- 29:49very interesting here. You can use your
- 29:52type of stop, right? You can use maybe
- 29:55the daily low of the bar to exit the
- 29:57trade, Fibonacci,
- 29:59uh you name it. There is many many
- 30:01indicator here.
- 30:02>> In terms of the indicator, is it only
- 30:04what's available on the platform or are
- 30:05you able to import a custommade
- 30:08indicator? I know a lot of traders I
- 30:10know personally have started to you know
- 30:12build indicators around their trading
- 30:14even if it's like a specific metric like
- 30:16liquidity for example or uh you know a
- 30:18particular pattern that they use and
- 30:21they use an indicator to make that
- 30:22easier for them to spot or automate that
- 30:24process. Are you able to say import that
- 30:26onto this platform?
- 30:27>> Yes.
- 30:27>> And then therefore you know it would
- 30:29would it automatically just pick up the
- 30:30code from that etc and have parameters
- 30:33in there?
- 30:33>> Yes, you have the possibility to add
- 30:35what we call here in Strategic Quant X a
- 30:37custom block.
- 30:38>> Okay. So this block you will import your
- 30:40indicator and it will use it
- 30:43>> to generate strategy.
- 30:44>> Amazing. It's the wble you can see here
- 30:46we have predefined condition indicator
- 30:49the stop type if you want limit market
- 30:51order and so on.
- 30:53>> Here you have the exit you want to exit
- 30:55after two bar three bar you have
- 30:57trailing stop uh you can use an
- 30:59indicator for an exit rule right you can
- 31:02enter at market stop see enter at
- 31:06market. So you can choose your type of
- 31:09uh money management. Here we we're going
- 31:11to try it on Apple. That is a stock. So
- 31:14we're going to choose a stock size by
- 31:16price.
- 31:16>> Okay.
- 31:17>> I just put an initial capital of 25,000
- 31:20$25,000.
- 31:22Um but you can use let's say you trade
- 31:25future market, you can use fixed size.
- 31:28So maybe just buy one contract, right?
- 31:32>> Completely doable. You can try crypto
- 31:35too, right? You can risk a person amount
- 31:39of your account. There is a whole garden
- 31:43variety of money management method that
- 31:45you can choose from.
- 31:46>> Yeah.
- 31:46>> But for this example, we're going to try
- 31:49stock size by price, right? And the
- 31:52ranking. What is the ranking? Um,
- 31:56basically it is the filter that you
- 31:59force strategic want X. You said okay I
- 32:02want my strategy to have at least
- 32:04>> a return to draw down ratio what we
- 32:07talked earlier of four.
- 32:09>> Mhm.
- 32:09>> We want at least a profit factor of more
- 32:13than 1.5 1.3. Right. We want at least an
- 32:17average trade per month of two.
- 32:19>> Okay.
- 32:20>> Right.
- 32:21So you can add a whole range of um you
- 32:26know filter uh you can choose from.
- 32:29Let's say some we talked about uh the
- 32:31risk adjusted return earlier right we
- 32:34can use the sharp see sharp ratio is
- 32:38already here you can use the UPI index
- 32:42user performance index
- 32:45>> this is another risk adjusted metric so
- 32:48you you have a lot of the the metric
- 32:50that you can use
- 32:51>> and you would just input your desired
- 32:54yes but there is a
- 32:58an approach to
- 32:59Right? You don't want to curfeit the
- 33:01strategy. You want to give a lot of
- 33:04space to the the strategy context to
- 33:06generate good strategy because if you
- 33:08say okay, I want a strategy that make
- 33:11100% a year. It would likely be curve
- 33:14fit.
- 33:14>> So you want to have a
- 33:16>> when you say curve fit does that mean
- 33:18essentially it's just making a strategy
- 33:19that you want but the data and the
- 33:22robustness of it isn't really there.
- 33:23>> Exactly. Yes. it would it will look good
- 33:26on the the back test but not in real
- 33:29life.
- 33:29>> Okay.
- 33:29>> So you don't want to lose money. So you
- 33:31want to make sure that it is robust and
- 33:33one method to do that is to not give
- 33:35strategy qu x uh too much severe uh
- 33:40filter.
- 33:41>> Mhm.
- 33:42>> So so this is the
- 33:46standard filter that we can do. But um
- 33:50now we're going to I'm going to just
- 33:52clear here strategy.
- 33:56>> So those are strategies that before we
- 33:57started just testing it.
- 33:59>> Yes. Now the datab bank is uh empty. So
- 34:03we're going to start it here.
- 34:07So now you see strategic quant x is
- 34:10starting to work is starting to do
- 34:14million of simulation.
- 34:15>> Okay. thousand even easily we can
- 34:17achieve million of simulation with this
- 34:19kind of stuff.
- 34:20>> So right now it's doing it through trade
- 34:22station on Apple on the is that the D1
- 34:26daily time frame is it?
- 34:27>> Yes.
- 34:28>> Yes on the back. We're using the we are
- 34:31using the engine trade station because
- 34:33we want it to generate the code of trade
- 34:36station or multi chart. But let's say
- 34:38you trade another platform
- 34:40>> say meta trader
- 34:42>> okay
- 34:42>> or something else you can generate the
- 34:46code with meta trader.
- 34:47>> So in this case what is it's going to do
- 34:49this back test collect all this data
- 34:50we'll get there no doubt obviously when
- 34:52it gets to you know embedding it onto
- 34:53the platform right we'll come back to
- 34:55that a little shortly but in terms of
- 34:57what we've done here. So it's now
- 34:58showing you here the parameters of what
- 35:00you set.
- 35:01>> Exactly.
- 35:02>> Right. So if we just walk through this
- 35:03whilst it's still generating. So what to
- 35:05build is obviously simple strategy long
- 35:07only uh stop loss and and
- 35:10required yet
- 35:11>> using ATR. It has generic uh genetic
- 35:15sorry
- 35:15>> evolution.
- 35:16>> Yeah. Genetic evolution 100 generations
- 35:18max. Four islands. 100 per island start.
- 35:22>> Yes. and and the building block that you
- 35:24see here is the rule for generating
- 35:30the strategy.
- 35:31>> Okay.
- 35:31>> As well as the indicator.
- 35:33>> So we have roughly 140 entry block. Um
- 35:38money management. You can see here it's
- 35:39stock size by price.
- 35:41>> Yes.
- 35:42>> Right. So as you can see here it's
- 35:44already started to generate. Yeah.
- 35:46>> Right. as well.
- 35:47>> Obviously, the more powerful the
- 35:49computer, the better is because it will
- 35:51generate it very quickly.
- 35:53>> But so you you can see here it generated
- 35:56a strategy here with a net profit of
- 35:58$7,000,
- 36:00$451
- 36:02trade with a profit factor of 1.54.
- 36:09Um you can see the draw down is about
- 36:11$1,600.
- 36:13>> Mhm.
- 36:13>> Right. So all the metric that we spoke
- 36:16about you we if you remember we have a
- 36:20filter of having a return to draw down
- 36:23ratio above four.
- 36:24>> Yes.
- 36:24>> So it it respected it. So get this this
- 36:29is how we generate ago. So let's say an
- 36:33example for um the strategy here. This
- 36:37is one strategy that strategic quant x
- 36:40>> has developed
- 36:41>> developed right and um
- 36:44>> so showing you the data through all
- 36:45those years.
- 36:46>> Exactly. Exactly. When you go trade
- 36:49analysis, you have all this metric. You
- 36:52can see net profit per year. Where is
- 36:54your profit per factor per year? How
- 36:56much
- 36:56>> how many number of trade what were what
- 36:59were your winning percentage per year,
- 37:01right?
- 37:02>> You can see which one is a loser year,
- 37:06winning year, right?
- 37:08>> Interesting.
- 37:08>> What is your maximum profit by weekday?
- 37:11You can see here that Friday is a good
- 37:14day to trade it. Right?
- 37:15>> So when you look at this data, is
- 37:17anything
- 37:18Well, there's two qu or a couple
- 37:19questions to go from here. One, I know
- 37:22that the audience might be thinking it's
- 37:23like, okay, if it's this easy to develop
- 37:26a strategy, you know, an automated
- 37:28strategy and algo, surely everyone would
- 37:30just do this and and then implement,
- 37:32right? But what what is the reality then
- 37:34after at this stage we have all these
- 37:36strategies that's been developed off
- 37:38these parameters. What do you do from
- 37:39here? Like how are you then looking at
- 37:41this data and then making decisions? Are
- 37:43there tweaks you need to make? Is there
- 37:45certain things you need to be aware of?
- 37:47Are there things that you go okay yes
- 37:50it's generated this many strategies but
- 37:51these ones are no good to look at and
- 37:53these are the ones that I need to focus
- 37:55on more. Are there things that you
- 37:57adjust from here still?
- 37:59>> These strategy are curfeitted
- 38:02>> which mean most of them will not perform
- 38:06well in life environment.
- 38:07>> Okay.
- 38:08>> So you need a robust process to filter
- 38:11out this strategy. Right. Earlier we
- 38:14spoke that we want a robust strategy.
- 38:18For instance, we wanted to work on a
- 38:20whole variety of setting.
- 38:24>> Let me give you an example. If the
- 38:26strategy here is okay, buy when below
- 38:3015, you want the strategy to be
- 38:33profitable. Buy when RSI is below 10, 5,
- 38:3625, 30, right? You want to have a map of
- 38:40profitable parameter. that uh give you
- 38:44confidence to go to the next robustness
- 38:46test because there is many many
- 38:48robustness test that you have to go
- 38:50through you can start with 5,000 for
- 38:54instance on my part I can have you know
- 38:56in the result part more than 10,000
- 38:59strategy
- 38:59>> okay
- 39:00>> but at the end I'll end up with maybe 25
- 39:05potential that I will trade life
- 39:08>> so from these 25 I have okay I have the
- 39:12confidence that okay this strategy they
- 39:14all passed all the robustness test
- 39:16because I always like to use this
- 39:18analogy right building an algo is like
- 39:22preparing a fighter for the unknown
- 39:25>> right
- 39:26>> if you're training a fighter you want to
- 39:28make sure that your fighter is able to
- 39:30box to throw kicks to fight on the
- 39:32ground
- 39:33>> you want a training a whole diverse set
- 39:36of training for your fighter because you
- 39:38will give him a better chance to win the
- 39:40fight M
- 39:41>> the same logic apply in algo trading
- 39:43right you want to have as much as
- 39:47robustness tests you your goal basically
- 39:49is just to break the strategy
- 39:51>> right you want to break it you will test
- 39:53it on another market to see how it
- 39:55perform you know that okay the strategy
- 39:58is profitable across a big set of
- 40:01parameter that's good it's work on other
- 40:04market that's good right earlier we
- 40:07spoke about uh knowing what is the the
- 40:10worst outcome Yeah,
- 40:11>> with Monte Carlo test, right? With Monte
- 40:13Carlo test for instance, it will
- 40:15reshuffle the trade and see what is the
- 40:18worst outcome. So now here you see the
- 40:20the equity curve look very nice. But uh
- 40:23when you when you do the Monte Carlo
- 40:26test, the equity curve is very ugly. So
- 40:29you just throw it to the garbage to the
- 40:32garbage.
- 40:32>> It would have to even after the Monte
- 40:34Carlo test, it would have to produce
- 40:36similar results like positive return.
- 40:38>> Yes. Yes, for it to be robust and to be
- 40:40more trustful.
- 40:41>> Yes. In ter in term of draw down, in
- 40:43term of performance, the equity curve
- 40:45will be just uglier, you will look at
- 40:47it, right? Like
- 40:48>> when you say reshuffle, what does that
- 40:49mean in terms of
- 40:50>> so um in term of sequence? So let's say
- 40:54you have this this is on in term of
- 40:56trade a win loss win loss loss loss win.
- 41:00>> So it will reshuffle the trade sequence
- 41:03to see what was your worst outcome.
- 41:06>> Mhm. So as an algo trader, you will
- 41:10trade a strategy with real money and at
- 41:13some point it will just start with
- 41:14losses, right? If I know in my Monte
- 41:17Carlo test my max consecutive loss were
- 41:2010, I know that what that was the worst
- 41:24outcome. So I will continue to trade it
- 41:26even if I have 10 consecutive losses
- 41:29because I know at some point I'm going
- 41:31to be on the winning trajectory.
- 41:33>> Okay.
- 41:34>> Okay. So this is with Monte Carlo test
- 41:36you can you know with Robinson there is
- 41:38many many Robson tests you can just
- 41:41modify the open high low close price
- 41:43having a scentic price action and test
- 41:46the strategy to see if it's work or not.
- 41:48>> Mhm.
- 41:49>> So all these tests are available in SQX.
- 41:52You can do it automatically as a
- 41:55workflow. We call it a workflow. So
- 41:57let's say it's you want a 10,000
- 42:00strategy to be in the data bank. when it
- 42:03finish it will test it. Let's say it
- 42:06will do the Monte Carlo.
- 42:08>> So from the 10,000 let's say there is
- 42:105,000 left and after that it will test
- 42:13it let's say on another market.
- 42:14>> Yeah.
- 42:15>> So on the 5,000 you have only 2,000
- 42:18available. So you have many many many al
- 42:21uh robustness test that you go through
- 42:22before trading the strategy because many
- 42:25of the strategy are curfeitted. You need
- 42:27to have a robust process to filter out.
- 42:29Mhm. Let's take a break for a minute
- 42:31there, guys, cuz I want to tell you
- 42:32about our incredible sponsor,
- 42:33Tradezeller. Tradezeller is the number
- 42:36one trading tool in the entire trading
- 42:38industry. Tradezella allows you to
- 42:40become a more profitable trader. Allows
- 42:43you to make immense progress as a
- 42:45trader, no matter if you're a beginner
- 42:46or an advanced level trader, because it
- 42:48makes journaling easy. It makes
- 42:50journaling something that is fun and
- 42:52enjoyable and something that is
- 42:54interactive. So, no matter if you're a
- 42:56crypto trader, no matter if you're a
- 42:57futures trader, no matter if you're a
- 42:58forex trader, no matter if you're a
- 43:00stock trader, all you have to do is
- 43:02select your broker, your platform of
- 43:04choice, and connect it to Tradesella,
- 43:07and it will automatically sync your
- 43:09trades and pull all of that data onto
- 43:12the dashboard, making journaling and
- 43:14finding your [music] edge and adapting
- 43:16your edge so easy. In collaboration with
- 43:19Tradzella and Chart Fanatic
- 43:21specifically, we are actually getting
- 43:23the playbooks from the episodes that
- 43:25we're filming with these incredible
- 43:27verified traders and adding [music] them
- 43:29as playbooks onto Trade Zela. So, you
- 43:31can actually go on there and see the
- 43:33rule sets already predefined. So, make
- 43:36sure you check that out as well. Now,
- 43:37you can actually get 10% off your
- 43:40monthly subscription using CF10 on
- 43:42Tradzella right now. But more
- 43:44importantly, I would say CF20 for 20%
- 43:48off your yearly subscription with
- 43:50Tradezella. The links for Tradezella are
- 43:52in the description below. So, make sure
- 43:54you go check them out. Use CF20, get 20%
- 43:57off your yearly subscription, become a
- 43:59better trader today. Now, let's get back
- 44:01to the episode. So, um yeah, so here
- 44:05this is a strategy that is um
- 44:09generated. So now we're going to import
- 44:11the code and um export it into the
- 44:16trading station that we use and you will
- 44:18see that um once it's imported and
- 44:21exported into the trading station it
- 44:23will automatically send the trade.
- 44:25>> Okay. The process in itself is easy but
- 44:28what is difficult is having a robust
- 44:30strategy.
- 44:31>> Yeah. So when you talk about that
- 44:32robustness as well in terms of the
- 44:34different criteria is that where you
- 44:36would adjust it in the uh the building
- 44:40phase that we we originally started on
- 44:42you would adjust these different RSI
- 44:44filters.
- 44:44>> Yes.
- 44:45>> And see the performance. Do you collect
- 44:47the the data together? Was it all
- 44:50separate?
- 44:51>> Uh no it's all separate. So here we have
- 44:54what you call a we can do it here but we
- 44:58have what we call a custom project.
- 44:59Right. So this is all workflow right? So
- 45:05let's take this workflow, right? This is
- 45:07the build phase.
- 45:08>> Mhm.
- 45:09>> That we did, right?
- 45:11>> Yeah.
- 45:11>> It's going to start building and after
- 45:13that it's going to retest it on another
- 45:16out of sample data, right? And after
- 45:18that it will test it on another time
- 45:20frame.
- 45:21>> Okay. So what our original one was
- 45:23Apple.
- 45:23>> Yeah.
- 45:24>> Um on the daily time frame. Yes. Right.
- 45:26So in this case it would then test it on
- 45:28say Tesla.
- 45:29>> Yes. Yes, on a 4 hour time
- 45:31>> on the on the NASDAQ, on gold, on bonds.
- 45:34>> So it will do different assets first and
- 45:38then it will do time frame after or
- 45:39same.
- 45:40>> It depend on your workflow that you
- 45:41want. Okay.
- 45:42>> This is just a generic workflow, right?
- 45:45>> Yeah. This is on there, right?
- 45:46>> Yeah. Yeah. This is a generic workflow.
- 45:48But just for uh example, yeah, it's a
- 45:52generic thing. Yeah. So if we go to the
- 45:54custom project here and we click start
- 45:57you will see first it will clear the
- 45:59data bank and it will start building
- 46:01strategy right and this is ES
- 46:05>> okay
- 46:06>> may take a little bit longer because we
- 46:07are on a hourly time frame so there is a
- 46:10lot of data to for strategy X
- 46:12>> how far back does it go
- 46:14>> the
- 46:15>> as much as the data allows it to
- 46:17>> oh
- 46:19for early 2000
- 46:21>> so you have 25 year data.
- 46:25>> So if you have a strategy that make it
- 46:27to the end
- 46:29>> you have more confidence because you
- 46:30have 25 year on of data from 2000 to
- 46:342025 we have a lot of bare market a lot
- 46:37of a lot of volatility event and if your
- 46:40strategy survive this
- 46:43>> you have high confidence to trade it
- 46:46live it doesn't mean it would work don't
- 46:48get me wrong it may fail. Yeah,
- 46:50>> right. Even if it fail, it's okay. We're
- 46:53going to stop it because look, we have
- 46:56hundred if not thousand of strategy
- 46:58which will be running on the background.
- 47:00We call this incubation.
- 47:02>> Mhm.
- 47:03>> Incubation is when you run your strategy
- 47:05with simulation money, right? So what?
- 47:09>> Okay. So like before you go live.
- 47:11>> Yeah. Simulation money. So
- 47:12>> and even when you go live, as you
- 47:13mentioned, it could still not work.
- 47:15>> Exactly.
- 47:15>> You still have more in that incubation
- 47:17phase to phase in, phase out. Exactly.
- 47:19So if the one doesn't work, I know a
- 47:22strategy that is working on simulation
- 47:24one. Okay.
- 47:24>> Is performing.
- 47:26>> So I have an additional confident
- 47:28because it work on seen data.
- 47:30>> Yeah.
- 47:30>> New data and it did well.
- 47:32>> Mhm.
- 47:33>> So I'm going to just grab it, replace
- 47:35the one that is not performing and trade
- 47:37it.
- 47:38>> Yeah.
- 47:38>> Right.
- 47:39>> In terms of right now it's doing the
- 47:40building strategies again.
- 47:42>> Yes.
- 47:42>> Does it then wait to complete that to
- 47:44then move on to the phase three?
- 47:45>> Exactly. So now it's going to go to the
- 47:47phase three and after it finished from
- 47:49the phase three probably now here we
- 47:51have 44 strategy right we will probably
- 47:54have less less strategy after that it's
- 47:56going to go retest time frame here
- 47:58>> by the time it gets to final you might
- 48:00only have five
- 48:01>> exactly
- 48:02>> but those are robust at this point
- 48:03>> exactly
- 48:04>> okay but you can customize all of these
- 48:06elements
- 48:07>> exactly
- 48:07>> that are there so if we were to take
- 48:09just the example we were on so we did
- 48:11Apple originally y so let's say just run
- 48:13us through what that would look like for
- 48:14you um not that we actually have to do
- 48:17it cuz it probably take a lot of time
- 48:18but just generally for the flow for
- 48:19people at home who might be look
- 48:20thinking of doing this
- 48:22>> what would that look like for you in
- 48:23terms of okay Apple number one we had
- 48:25daily time frame what would those
- 48:27adjustments look like for you if you
- 48:28were to be doing that yourself
- 48:30>> okay
- 48:31>> through that flow of like steps to
- 48:33>> so this is a generic workflow this is
- 48:35not my own workflow right I have my own
- 48:38workflow I have a lot more uh steps yes
- 48:42more much more steps
- 48:44>> and Just to give you an idea here. Um,
- 48:47well, I'm going to we already have 200
- 48:50strategy. And if we look at uh let's say
- 48:53I'm going to click uh this one.
- 48:56>> So, yeah. So, this one just $240.
- 48:59>> So, when you're looking at that, what
- 49:01would what are you thinking? You're
- 49:02looking at this one. You're looking at
- 49:03the data. You're thinking, okay, what
- 49:05are the key markers you're looking at to
- 49:07go this is no good. This is good.
- 49:10Um well first it has to generate a lot
- 49:13of strategy because I think there is a
- 49:15bug here but when you look for instance
- 49:17at
- 49:19um the trading metrics such as profit
- 49:22factor
- 49:23>> right you can see that we have between
- 49:251.4 1.5 we have interesting return
- 49:28annual return
- 49:31>> look here annual percent rate of return
- 49:33is about 77%.
- 49:35>> Right. And this is trading future.
- 49:37>> Yeah
- 49:37>> right. So this is a return on margin
- 49:40right look this is crazy return 208
- 49:44>> Mhm. return like I've said these
- 49:47strategy are are most likely curfeitted
- 49:50if you don't apply the robustness test
- 49:53on it right but let's say I'm going to
- 49:55>> when you look at that you wouldn't go
- 49:56>> no no no I'm not going well
- 49:58>> you're going to go yeah
- 49:59>> okay something's wrong there
- 50:00>> so not something is wrong but um I'm I
- 50:04have to wait and to go to all this
- 50:06process to maybe judge it so let's say
- 50:09I'm going to just stop it here I'm going
- 50:10>> would you let's say for example when you
- 50:12go through this process let's say
- 50:13there's one as you say 208%.
- 50:15>> Yeah.
- 50:16>> Going through that process and it still
- 50:18makes it out the other end, would it be
- 50:20would it have adjusted do you think to
- 50:21then be more accurate? Let's say if it's
- 50:23gone down to 100%. But it's gone through
- 50:25your the robustness test and gone
- 50:27through all the steps. Then is that
- 50:30something you go okay this is more of a
- 50:32realistic we yes I will have more
- 50:34confidence for sure and uh I'll have to
- 50:37look at the draw down right. So to to be
- 50:41to size it, you can see here the draw
- 50:42down of the 208% we're talking about
- 50:4513,000,
- 50:47right? So if I'm going to allocate
- 50:50$100,000 to Yeah.
- 50:52>> this strategy, then my return will be
- 50:56lower.
- 50:56>> Mhm.
- 50:57>> Than this on thingy is this uh I know
- 51:00obviously we ran a random test. Is it
- 51:01on? I know the original one was on
- 51:0325,000.
- 51:04>> Yes. But this is our future.
- 51:06>> Okay. It's on future and it use the
- 51:09margin required to trade.
- 51:11>> So that's why you see higher number
- 51:14because if you need $25,000 to trade the
- 51:17one ES future contract then it will
- 51:20calculate the return based based on
- 51:21that. Got
- 51:22>> right
- 51:24so um let me yeah so here the initial
- 51:29capital is on 10,000. So the return is
- 51:31calculated based on $10,000,
- 51:33>> right?
- 51:34>> But this is the first step of the
- 51:36workflow.
- 51:36>> Yep.
- 51:37>> It's not time to get excited. [laughter]
- 51:40>> We have to continue.
- 51:41>> It's very easy to get. Yeah.
- 51:43>> So if I run the project, let's say from
- 51:46another out of sample test.
- 51:48>> Okay. So this is taking is it going to
- 51:52take the number that we had stopped at?
- 51:53Yeah.
- 51:54>> And run it through this now.
- 51:55>> Exactly.
- 51:56>> Okay. So it's we're going to retest out
- 51:58of sample another time frame.
- 52:01>> Where was it out of sample? Where is it
- 52:03testing?
- 52:04>> This is the workflow. So have
- 52:06multi-step. We were in the build uh
- 52:09build step strategy. Now we are on the
- 52:12retest step strategy.
- 52:14>> Is that the Monte Carlo?
- 52:15>> No, Monte Carlo is here. Step five MC MC
- 52:19test.
- 52:20>> So when it says out of sample, what does
- 52:22that mean?
- 52:23>> We were looking at ES is it then? And is
- 52:25that where it's doing on S&P for
- 52:26example?
- 52:27>> Yeah. No. So in algo trading when you
- 52:30build a strategy you have to use the in
- 52:33sample and out of sample.
- 52:34>> Okay.
- 52:35>> Right. So you will say to SQX look build
- 52:39a strategy from 2000 to 2008.
- 52:42>> Okay.
- 52:42>> Right. And after that once you build a
- 52:44strategy I want you to test it on 2008
- 52:48to 2025 to see how it's perform.
- 52:50>> Okay.
- 52:51>> This the this is a step to reduce curve
- 52:53fitting. Mhm.
- 52:54>> Because you will see if the strategy is
- 52:56not perfect, it will likely perform on
- 52:58inseen data out of sample. It is just
- 53:01insane data. The software doesn't look
- 53:03at it,
- 53:04>> right? Um
- 53:06>> so then it'll be like raw. It would just
- 53:07be like how did this actually perform in
- 53:09this?
- 53:10>> Yes.
- 53:11>> So you have the in sample,
- 53:12>> you have the strategy, let's say the one
- 53:14that have 200%. But if you tested on
- 53:17from 2008 to 2025 which is out of sample
- 53:21and seen data the software does did not
- 53:24see this data.
- 53:25>> Okay.
- 53:26>> You will see how it perform.
- 53:27>> Okay.
- 53:28>> If the performance is rep representative
- 53:32of the in sample that's we may have a
- 53:35potential candidate
- 53:37>> start to build more confidence.
- 53:38>> Exactly. Exactly.
- 53:40So for you for example like if you're to
- 53:43do that process for yourself right now
- 53:45what what data would you use as in
- 53:47sample and then what would you use as
- 53:48out sample?
- 53:49>> Very good question. Very good question.
- 53:51Um I like to use
- 53:55uh a a diverse range of market regime in
- 54:00both.
- 54:00>> Okay.
- 54:01>> Right. You know the saying that say that
- 54:04everybody is a genius in a bull market.
- 54:06Yeah.
- 54:06>> Right. But the same logic apply with
- 54:08this kind of software. You have to
- 54:11select a data set that you have multiple
- 54:14>> bare market, bull market, very volatile
- 54:18event, even low volatility events. So
- 54:22you want to make sure that your strategy
- 54:24is doing okay during this period. And
- 54:28after that, you're going to test it on a
- 54:30set that was not seen by by SQX to see
- 54:33if it's performed well. How does that
- 54:34how does that work in terms of it wasn't
- 54:36seen by SQX? What does that mean?
- 54:38>> Well, surely it has all the data, right?
- 54:40>> Yes, it has all the data, but the data
- 54:42that's it used to build the strategy, it
- 54:45will not uh use the out of sample data.
- 54:48>> Okay.
- 54:48>> So,
- 54:49>> so then it will how does it so it will
- 54:50just run the parameters. Does that make
- 54:52sense? Like in the outer sample, it will
- 54:54just run the parameters of the
- 54:55>> it will run the strategy on the out of
- 54:57sample data set,
- 54:58>> right? So, let me let me just show you
- 55:00here.
- 55:02>> Um let's take
- 55:04that.
- 55:04>> So you can see here this is the init
- 55:06sample.
- 55:07>> Yeah.
- 55:07>> Out of sample. So here it used all the
- 55:11data which is not good. So what we want
- 55:14to do
- 55:20when we build the strategy we go to
- 55:22data.
- 55:23>> Mhm.
- 55:25>> And we will select you see here data
- 55:28range part.
- 55:29>> Yep. So you see OOS this mean out of
- 55:33sample test. This mean that strategic
- 55:35quant X will not use this data from 2014
- 55:39to 2019 to build the strategy. It will
- 55:42only use from 2007 to 2014 to build the
- 55:46algo.
- 55:47>> Okay.
- 55:47>> And after that once it's build it here
- 55:50it will test it here.
- 55:51>> Okay.
- 55:52>> Right. It is inseene data. Yeah. So when
- 55:54you say build it, it's going to build it
- 55:57using the parameters and or or checking
- 55:59the parameters that we selected, right?
- 56:02>> So the ticker of Apple, let's say daily
- 56:04time frame, and then we chose, you know,
- 56:06certain indicators or technical patterns
- 56:09>> for it to build it from. So like RSI,
- 56:11yeah, uh daily high, low close, uh the
- 56:14volume, etc. We selected these so that
- 56:16when we select the the date range for
- 56:18the in sample, it uses that data to
- 56:22formulate the algo and show you you know
- 56:25sharp ratio expectations. Right.
- 56:28>> And then from that you then select the
- 56:30outer sample and it will run the algo on
- 56:32that out sample.
- 56:32>> Exactly.
- 56:33>> Okay.
- 56:33>> And this is when you see if your
- 56:35strategy is robust or no.
- 56:37>> Okay.
- 56:38>> Because if it just lose money that's
- 56:40when that's it is not robust enough.
- 56:42>> Right. That's why it's important to have
- 56:44multiple strategy to see which one will
- 56:47perform an out of sample data.
- 56:49>> Yeah.
- 56:50>> So uh yeah if we go back
- 56:58say in this workflow
- 57:01generic one it they didn't use the outer
- 57:03sample they just use the foot but on my
- 57:06methodology
- 57:07>> I always use out of sample. It's
- 57:09important. It's the first step to make
- 57:12sure if your strategy is robust or not.
- 57:14Right.
- 57:15>> Um, so this is the Monte Carlo test that
- 57:20I was talking you about.
- 57:21>> Mhm.
- 57:21>> Right. Let me just
- 57:25here. Do you do remember that we had at
- 57:28some point $13,000?
- 57:30>> Yeah.
- 57:31>> By reshuffleling the trade, the worst
- 57:34outcome were $34,000.
- 57:37Right.
- 57:37>> Mhm. So this mean that um you you do not
- 57:42have to consider the first dry down
- 57:44figure that that you see on the back
- 57:46test.
- 57:47>> This one's more important.
- 57:48>> Yeah, definitely. Definitely because
- 57:50this is the real the worst case the
- 57:53worst outcome at 95% confidence level.
- 57:56So we have 34,000 and here you can see
- 57:59different equity curve.
- 58:00>> Yes,
- 58:00>> this is the first one. You can see this
- 58:02one is the poorest one.
- 58:04>> It doesn't mean that uh you lost money
- 58:06at the end. At the end you make money.
- 58:08>> Yeah.
- 58:08>> But look at the volatility of the equity
- 58:11curve.
- 58:11>> And does it come back to as you said at
- 58:12the near beginning?
- 58:13>> Yeah.
- 58:14>> What is your draw down tolerance or risk
- 58:16tolerance? So you look at that and go
- 58:18okay this is the average over here we
- 58:20can see the cluster
- 58:22>> but here is an outlier. However that is
- 58:24a reality that could take place.
- 58:25>> So am I willing to accept this? And if
- 58:29the answer is no then you would
- 58:30obviously move on or retest some things,
- 58:31reshuffle some things.
- 58:32>> Yes. Uh if the answer is yes then
- 58:35>> or maybe size more.
- 58:37>> Okay.
- 58:37>> Right. So if um instead of allocating
- 58:4130,000 and you one still want to trade
- 58:43the strategy instead of allocating
- 58:4630,000 you can allocate $60,000
- 58:49because if the draw down come
- 58:51>> Mhm.
- 58:51>> the proportion will be lower by the fact
- 58:54that you sized bigger. I don't know if
- 58:56it makes sense.
- 58:57>> Yeah.
- 58:58>> Yeah.
- 59:00So yeah. So let's say um
- 59:04the workflow is done um and you're
- 59:07satisfied with some strategy.
- 59:10We you can see that we can access the
- 59:12code just uh here this is the source
- 59:17code already generated. You can see we
- 59:20have different platform we have trade
- 59:22station multi chart we have uh expert
- 59:24advisor we have uh meta trader we have
- 59:28many platform I use multi chart. Mhm.
- 59:31>> So now it will update the code.
- 59:34See this is the full code.
- 59:36>> Yeah.
- 59:37>> We can see
- 59:40this is the rule. Do you do remember I
- 59:43wanted not a lot of rule right? We can
- 59:46see long entry signal. We have two value
- 59:49x signal two two value. Right. We copy
- 59:55the code.
- 59:57Right. Copy here.
- 59:59and we go to the trading platform here.
- 1:00:03I am with multi- chart
- 1:00:07we'll say apple test res.
- 1:00:12Okay.
- 1:00:15We paste it. All right.
- 1:00:18And we compile the code.
- 1:00:24Once we compile the code,
- 1:00:28we just opened a chart
- 1:00:35with Apple and we answer today and it
- 1:00:38will trade automatically.
- 1:00:43>> I didn't write any single line of code.
- 1:00:46>> I know I [laughter]
- 1:00:47is incredible. But what is interesting
- 1:00:49and I think would uh well not only is it
- 1:00:50that that you can do that no code and
- 1:00:53have these parameters especially I think
- 1:00:55the indicator element that we talked
- 1:00:57about would you know change the game for
- 1:00:58a lot of people because you know they
- 1:01:00might not use your traditional
- 1:01:02indicators that are already loaded in
- 1:01:04there and I know a lot of people are
- 1:01:06very much interested in their
- 1:01:07discretionary trading styles that a lot
- 1:01:10of them like I said building indicators
- 1:01:12for and are available to them. So then
- 1:01:14now knowing that they can imp implement
- 1:01:16it into this platform start developing
- 1:01:19back test using it even you know the
- 1:01:21interesting thing is using that data
- 1:01:23just from a back testing data collection
- 1:01:25perspective as a discretionary manual
- 1:01:27trader is very beneficial no doubt um
- 1:01:29and being able to see these different
- 1:01:31iterations and what the worst case
- 1:01:32scenario can be as a discretionary
- 1:01:34trader is very powerful which a lot of
- 1:01:37discretionary traders avoid doing right
- 1:01:39collecting that data
- 1:01:41>> especially on the back test front um so
- 1:01:43That's beneficial. But equally, being
- 1:01:45able to do that is 100% something that a
- 1:01:49lot of people will probably open their
- 1:01:50eyes to. But as I said, what's super
- 1:01:52interesting, however, is that even as an
- 1:01:55algo trader, there's a lot of work and
- 1:01:59input that's necessary on a manual
- 1:02:01perspective of doing these iterations,
- 1:02:03making sure to review the data, is this
- 1:02:06robust enough or not, doing those
- 1:02:08reflections. it's still necessary to get
- 1:02:10to the point where you have an algorithm
- 1:02:12trading for you because I think a lot of
- 1:02:14people assume ah algo trading hands off
- 1:02:17not too much work right they think it's
- 1:02:19easy right and before we wrap up on this
- 1:02:21segment and we'll go to the podcast we
- 1:02:22will dive deeper into the processes and
- 1:02:24then of course your own journey
- 1:02:27>> what's the reality when it comes to
- 1:02:30uh the changes you're making you know in
- 1:02:32terms of these algorithms how often are
- 1:02:34you phasing some out bringing some in
- 1:02:36how often are you having to run these
- 1:02:38tests on on a day-to-day basis.
- 1:02:40>> A very good question. Um,
- 1:02:43monitoring my portfolio of algo is
- 1:02:46definitely the longest um part of the
- 1:02:49job because as you see, generating the
- 1:02:51algo doesn't take a lot of time if you
- 1:02:53have a powerful computer enough, right?
- 1:02:56>> Um, but like I said, it's like managing
- 1:02:59a sports team. Uh, I monitor on a
- 1:03:01portfolio level all all the performance
- 1:03:04of my strategy. doesn't mean that if I
- 1:03:07have a red mount or two red mount on a
- 1:03:09single strategy I will just turn it off
- 1:03:11as you saw with Monte Carlo test we can
- 1:03:14have worse outcome that's the draw down
- 1:03:17that we saw in the back test
- 1:03:19>> so I will just let it play out but in
- 1:03:22the meantime I have my incubation
- 1:03:25bank of algo I have 100 if not thousand
- 1:03:29so I surveil my incubation list and I
- 1:03:34look at which strategy is performing.
- 1:03:36>> Mhm.
- 1:03:36>> And I try to do to do the comparison
- 1:03:39with my life algo. If I see that let's
- 1:03:42say I have three month of loss, my dry
- 1:03:44down I is near the maximum D that I saw
- 1:03:48on my back test. I will either reduce
- 1:03:51the size dramatically or just turn it
- 1:03:55off and grab a strategy from my
- 1:03:58incubation one and trade it with uh live
- 1:04:01money. When turning off, is there an
- 1:04:03element where it's just sort of shelved
- 1:04:05and it can come back or is that one done
- 1:04:07now and you have to
- 1:04:08>> definitively it can come back. I just
- 1:04:10turn it off. It will keep running but
- 1:04:13it's going to be run on simulation
- 1:04:14money.
- 1:04:15>> Okay. So, it just essentially gets
- 1:04:16turned off from live back onto
- 1:04:18simulation. If you start to notice uh
- 1:04:20the data picking up again, you can then
- 1:04:22obviously turn it back live.
- 1:04:23>> Definitely. Yeah.
- 1:04:24>> Interesting. Now, how many would you say
- 1:04:25on average algos do you have running at
- 1:04:27once? on my end I have easily uh more
- 1:04:31than uh
- 1:04:33150 go already.
- 1:04:34>> Yeah.
- 1:04:35>> And what's the process of you managing
- 1:04:37all of those in terms of keeping track
- 1:04:39etc.
- 1:04:40>> Yeah. So as um if you remember we talked
- 1:04:43about exposure. So I have a lot of algo
- 1:04:46that will enter in and out quickly.
- 1:04:49>> So I like algo that have
- 1:04:53acceptable return with lower exposure. M
- 1:04:57so this algo are watching on the
- 1:04:58sideline
- 1:05:00it depend on the period there's some
- 1:05:02period that's where many of my algo
- 1:05:05failed and this is completely normal and
- 1:05:07this is where I have to really work and
- 1:05:10do the job to reback this all the
- 1:05:12portfolio look uh look at my trading
- 1:05:15metric and do the replacement but
- 1:05:19I I can't give you an exact figure but
- 1:05:22I'll say if the algo goes all
- 1:05:26across the workflow
- 1:05:28it has about 60% for it to perform life
- 1:05:33right I know it's not uh 100% like some
- 1:05:37people may think but it is around 60%
- 1:05:41but if it fail not a big deal there's
- 1:05:43other one that's will be working and
- 1:05:46like I I always say that's um with
- 1:05:49quantity quality emerge
- 1:05:51>> right with uh a lot of ago that I have
- 1:05:54at some point I will figure out an A+
- 1:05:57algo that I will trade for many months
- 1:06:00even many years
- 1:06:01>> because I have it in simulation. Yeah.
- 1:06:04So to get back to your question it
- 1:06:06depend in uh some phases some months I
- 1:06:08just do nothing at all to just execute
- 1:06:11trade and some months I have to work a
- 1:06:12lot and do the change that I told you
- 1:06:15about here. We we showed an example of
- 1:06:18generating and I'll go for one ticker.
- 1:06:21>> You may have people that say okay look
- 1:06:24me I I don't trade just one ticker. I
- 1:06:27trade a whole universe of stock. Let's
- 1:06:29say the S&P 500.
- 1:06:31>> Mhm.
- 1:06:33>> There is 500 stock I want. So I there is
- 1:06:37a possibility with strategic quant X to
- 1:06:41um trade a whole universe of stock. So
- 1:06:45if we go so let's say here um it trade
- 1:06:49the S&P 100 the 100 more capitalized
- 1:06:54stock in the US market it will
- 1:06:57rank. So here it says, okay, the open of
- 1:07:00the stock has to be above 250 SMA.
- 1:07:04>> Okay,
- 1:07:04>> the RSI has to be below 30, the close
- 1:07:07has to be above $10, and the volume has
- 1:07:10to be at least 25,000
- 1:07:13share, right? And after that, it will
- 1:07:16use what we call a ranking score.
- 1:07:20>> Mhm. So here so let's say we apply this
- 1:07:23filter and we have 20 stocks available
- 1:07:26to buy right but your strategy you said
- 1:07:29okay me I I want only a max open
- 1:07:32position of five how will it rank these
- 1:07:3520 stocks to choose only five
- 1:07:38>> mhm
- 1:07:39>> it will rank them based on this example
- 1:07:41rate of uh change so the the the rate of
- 1:07:45change the stock that has the biggest
- 1:07:48change positive or for the last let's
- 1:07:50say 15 day it will select the five best.
- 1:07:54>> Yeah.
- 1:07:54>> Then it will execute the trade on these
- 1:07:56five. I don't know if it makes sense.
- 1:07:58>> No, it does make sense.
- 1:07:59>> Yeah.
- 1:07:59>> So it's just like a ranking filter.
- 1:08:01>> Yeah.
- 1:08:02>> So taking say the 100 basket bringing it
- 1:08:04down through the filters, it brings it
- 1:08:06down to which ones are most in play and
- 1:08:07then so on and until you get to
- 1:08:09obviously your
- 1:08:10>> desired results that are worth trading
- 1:08:12and then it will exact
- 1:08:13>> fail accordingly.
- 1:08:14>> Exactly. This is another style of algo
- 1:08:16trading. people prefer to trade a
- 1:08:19universe of stocks and you have people
- 1:08:21like me who prefer to trade
- 1:08:23>> individual
- 1:08:24>> individual stock because I noticed that
- 1:08:27not all stock have the same personality
- 1:08:30>> now I noticed that for instance Apple
- 1:08:32don't not don't trade the same as Costco
- 1:08:36>> completely different price action right
- 1:08:39>> so this is where you can use the power
- 1:08:41of strategic quant x toify these edges
- 1:08:44we're going to build a second algorithm
- 1:08:47and this one is going to be on the S&P
- 1:08:50500.
- 1:08:51We're going to exploit known property of
- 1:08:54this market. The S&P 500 has a tendency
- 1:08:58to uh mean revert most of the time. So
- 1:09:02the same logic apply as the gold uh
- 1:09:07algo. I'm going to click on new. Select
- 1:09:10single acid strategy sample editor.
- 1:09:16We're going to make sure that we have
- 1:09:18the right instrument with the right
- 1:09:21engine and the right time frame. We're
- 1:09:24going to use a daily bar here. Going to
- 1:09:27reset the date and we're going to select
- 1:09:30the ES minis S&P 500.
- 1:09:35As for the money management, we're going
- 1:09:38to um trade on fixed size one contract
- 1:09:42and we're going to use the initial
- 1:09:44capital of $25,000
- 1:09:47around 1.5 to2 time the initial margin
- 1:09:51requirement uh from your usual broker.
- 1:09:57This strategy has to have a market
- 1:10:00regime. It's going to be a long only
- 1:10:02strategy.
- 1:10:05In this situation, we're going to use a
- 1:10:07simple market regime, which uh mean that
- 1:10:10we want to buy only when the close of
- 1:10:14the market is above the 200 sample
- 1:10:18moving average. Right? So, we're going
- 1:10:21to select close here. You can see it's
- 1:10:23going to appear here. Close is above
- 1:10:29moving average
- 1:10:33simple moving average
- 1:10:37200.
- 1:10:39Oops.
- 1:10:42Then the logic here close above the SMA
- 1:10:46200. This is the first entry condition.
- 1:10:49We're going to add a second entry
- 1:10:50condition. Pretty simple. Also, we're
- 1:10:53going to be using a pretty popular
- 1:10:55indicator, which is RSI, the relative
- 1:10:59straight index.
- 1:11:01And we want to buy when the RSI is below
- 1:11:06or lower than a certain level. In this
- 1:11:08case, we're going to use the level 20.
- 1:11:13We want it to be our soul. And we're
- 1:11:14going to use this period, period two.
- 1:11:18So when the RSI 2 is below 20, the algo
- 1:11:22will buy and it has also to be above the
- 1:11:26200 moving average.
- 1:11:30We're going to add an exit. We want to
- 1:11:34sold
- 1:11:36this the sorry we want to sell when the
- 1:11:38RSI is above 70.
- 1:11:41So the same logic apply. RSI is higher
- 1:11:45than level
- 1:11:4870.
- 1:11:50We're going to use the same period.
- 1:11:57So two entry two two entry condition
- 1:12:01right for entry and one exit condition.
- 1:12:03Pretty simple. We're going to run the
- 1:12:05back test.
- 1:12:09So here strategic quant x generated the
- 1:12:13back test pretty quickly.
- 1:12:15We can see that uh the yearly average
- 1:12:18return is 34%
- 1:12:22and the dry down is around 22%.
- 1:12:26And we are right 77% of the time. This
- 1:12:30is pretty nice.
- 1:12:33And one other indicator that I like to
- 1:12:36see is exposure. we are only exposed 24%
- 1:12:40say 25% in the market which is pretty
- 1:12:43good. So the back test run from 2009 to
- 1:12:482026
- 1:12:51say 25 because we just started the year
- 1:12:54and um very interesting we only have one
- 1:12:58two three four four losing year across
- 1:13:01many many year with many market regime
- 1:13:04many volatile event
- 1:13:07when the back test you have to look at
- 1:13:09many
- 1:13:11um indicator I I like to
- 1:13:15look at as [snorts] I've said the
- 1:13:17exposure. I like to look at my max
- 1:13:20consecutive loss, my average loss, my
- 1:13:23average win and I size based on all this
- 1:13:26information.
- 1:13:28You can also have the list of your
- 1:13:30trade. You can see by yes one you see
- 1:13:34the profit and loss. So once you are
- 1:13:38satisfied with your algo here, you go to
- 1:13:41the source code and you select your
- 1:13:45trading engine. Right? On my end, I
- 1:13:48trade on multi chart. You only copy the
- 1:13:52code and paste it into your trading
- 1:13:55engine and uh you're good to go. Very
- 1:13:58simple here.
- 1:14:02So we're going to build an algorithm
- 1:14:04with strategic quant X. This is a
- 1:14:06software that lets you build an algo
- 1:14:08without writing a single line of code.
- 1:14:11So we're going to build a simple
- 1:14:14strategy on gold future. So when you
- 1:14:18download the software,
- 1:14:21you go into ago wizard and you just
- 1:14:25click new
- 1:14:27strategy. We're going to click select
- 1:14:30and here this is the user interface. So
- 1:14:35we're going to build it on gold. So we
- 1:14:38have to make sure that we have first the
- 1:14:40right engine. On my part I use multi
- 1:14:42chart. So let's click on gold future.
- 1:14:50Let's see gold and we're going to trade
- 1:14:53it on the daily bar. I'm going to reset
- 1:14:56the dates. So the back test will start
- 1:14:59on 2009 and it will end on 2026.
- 1:15:04We want to make sure that we're going to
- 1:15:05be using a fixed size of one, which mean
- 1:15:08that every time the logic is true, it's
- 1:15:11going to buy one future contract. And I
- 1:15:15like to use as initial capital one 1.5
- 1:15:19time the initial margin on gold future,
- 1:15:24right?
- 1:15:26And I'm going to add one new entry
- 1:15:28condition. So we're going to try to
- 1:15:31build the popular gold rush strategy.
- 1:15:34Basically this strategy will buy every
- 1:15:37Thursday. The logic behind is during the
- 1:15:40weekend there is a lot of volatility
- 1:15:43that happens such as a war geo
- 1:15:45geopolitical stuff. So we want to select
- 1:15:50the Thursday gonna go well day of the
- 1:15:54week as you can see bar day of the week
- 1:15:59as you can see here the bar day of the
- 1:16:00week if we set it up to zero the algo
- 1:16:03will buy every Sunday if we set it up to
- 1:16:06one it will buy every Monday two Tuesday
- 1:16:09three Wednesday in our case we want it
- 1:16:11to buy every Thursday if the condition
- 1:16:15is true it mean that equal four. So,
- 1:16:21um we're going to click confirm.
- 1:16:24We you can see here day of the week we
- 1:16:27want it to be equal.
- 1:16:29So, we're going to click comparison
- 1:16:33equal
- 1:16:36to four. If you remember, four is
- 1:16:38Thursday, right? So here. So, this is
- 1:16:42the first logic. The second entry
- 1:16:44condition, we want the market to be a
- 1:16:47little bit uh oversold.
- 1:16:49So, we're going to just click RSI
- 1:16:53and we want RSI to be lower than a
- 1:16:57certain level. So, let's say 40. In that
- 1:17:01case,
- 1:17:04we're going to use a standard step stop
- 1:17:07loss of average true range. I like this
- 1:17:11kind of stop losers because it use the
- 1:17:12volatility of the the the current sle.
- 1:17:16So if the average true range in the last
- 1:17:20day are let's say $5, it's going to use
- 1:17:22a $5 stop. If it's $10, it's going to
- 1:17:25use a $10 stop. So in this situation,
- 1:17:28I'm going to just use one unit of an ATR
- 1:17:32based value and we're going to exit the
- 1:17:36trade after three bar. In this case,
- 1:17:38since we are trading
- 1:17:40a daily bar, it's going to exit the
- 1:17:42trade after 3 day. So we before back
- 1:17:46testing, we just want to make sure that
- 1:17:48we are using the correct
- 1:17:52symbol
- 1:17:54gold multi chart. This is the start
- 1:17:57date, the end day, money management one,
- 1:18:02future contract, initial capital of
- 1:18:0425,000. And we're going to run the back
- 1:18:06test.
- 1:18:11So um
- 1:18:20so here um this is the equity curve. Uh
- 1:18:23it is a little bit volatile. Why?
- 1:18:25Because we included the short. So when
- 1:18:29this is
- 1:18:31on it mean that the reverse logic will
- 1:18:34be applied to go short. But since it is
- 1:18:39um a long only strategy,
- 1:18:43we're going to remove all this rule and
- 1:18:45we're going to reback test it again.
- 1:18:48So yeah, so this is the correct back
- 1:18:51test. Here we have a yearly average
- 1:18:54return of 22.62%.
- 1:18:56We have 167 trade. We have a draw down
- 1:19:00of roughly 25%.
- 1:19:03If we go in details,
- 1:19:06um the exposure here is really
- 1:19:09interesting about 11.9%.
- 1:19:12We are not always exposed to the market.
- 1:19:14This is good because there is a lot of
- 1:19:16volatility then and you don't want to be
- 1:19:18100% exposed to the market. And um this
- 1:19:22is a strategy that I trade live with my
- 1:19:25real money.
- 1:19:26And you also can see that across many
- 1:19:29year right from 2009 to 2025 we only
- 1:19:33have uh three negative year. The rest uh
- 1:19:36were always positive.
- 1:19:38So this is a very interesting well
- 1:19:41tested strategy. We call it the gold
- 1:19:44rush uh strategy.
- 1:19:47So for the third strategy, this is not
- 1:19:50really a strategy but this is a nice
- 1:19:52feature on strategic quant x. We can use
- 1:19:55AI to code and generate our logic. So on
- 1:19:59the previous algo, you saw me select
- 1:20:05every entry condition by selecting the
- 1:20:07close, the moving average, the day of
- 1:20:10the week, and the same thing for the
- 1:20:12exit. But with algo uh AI wizard here,
- 1:20:17right? We can select um we we can write
- 1:20:22what we want and the AI will generate
- 1:20:25the strategy logic for us. So that
- 1:20:29that's prompted. You are professional
- 1:20:33outstensive trader
- 1:20:36and you want to practice the popular
- 1:20:43strategy
- 1:20:45that is
- 1:20:47turn around
- 1:20:50Tuesday
- 1:20:53on the ES
- 1:20:56future market.
- 1:21:04generate
- 1:21:06the algo wizard logic.
- 1:21:11Going to click send.
- 1:21:15Now the AI is thinking
- 1:21:18and it is crafting the strategy. So it's
- 1:21:22going to take a little bit of time to
- 1:21:25generate the code. that this is a absudo
- 1:21:28code that it will generate. So once it
- 1:21:31generate you can simply just export it
- 1:21:34to algo wizard right. So here it already
- 1:21:39generated the pseudo code right on ES
- 1:21:42right this is the the signal
- 1:21:45so we're going to send it to Algo wizard
- 1:21:48which is the the platform where we code
- 1:21:52inside strategic font x.
- 1:21:57So now it is preparing the strategy for
- 1:22:00ago wizard. So this platform is what we
- 1:22:03call the algo wizard.
- 1:22:08going to be take a little bit of time
- 1:22:10but uh you can see here it it took
- 1:22:13literally some minute to just generate
- 1:22:15all this line of code.
- 1:22:18So, we're going to
- 1:22:21all right
- 1:22:23save as a new strategy.
- 1:22:26Going to use the existing one.
- 1:22:30Right. Going to go to the ES
- 1:22:34and we're going to load it.
- 1:22:38So here you see that um I clicked
- 1:22:42nothing and the strategy has been fully
- 1:22:45generated with AI right
- 1:22:49we're going to just make sure that we
- 1:22:52have the right market
- 1:22:55here fixed size one I'm going to use
- 1:22:5925,000
- 1:23:02the initial capital and
- 1:23:06let's see the back
- 1:23:12See,
- 1:23:14it generated the back test for you,
- 1:23:16right? I didn't write a single line of
- 1:23:19code, but with AI,
- 1:23:22it um completely generated the logic and
- 1:23:26I just back tested, right? So this is a
- 1:23:29nice feature uh for um the AI wizard
- 1:23:34inside strategic quant x.
- 1:23:37If you have a logic a strategy just type
- 1:23:40it and you can quickly back test it. So
- 1:23:44you will let data guide your trading
- 1:23:49decision and you will know beforehand
- 1:23:52before before taking a trade. And this
- 1:23:53is the benefit of being an algo trader.
- 1:23:56You can back test different strategy see
- 1:24:00how it perform during different market
- 1:24:03and you can then craft a portfolio with
- 1:24:07different strategy you have gold you
- 1:24:11have yes you have let's say soybean and
- 1:24:15many many different instrument to have a
- 1:24:18well diversified portfolio to trade uh
- 1:24:21with your hard earned money
- 1:24:24>> well but everyone drop a takeaway or
- 1:24:26your biggest comment from this episode.
- 1:24:29Any questions you may have, even throw
- 1:24:30them in the chat there cuz of course
- 1:24:32we'll probably have you back again, no
- 1:24:34doubt, uh to dive deeper into this cuz I
- 1:24:36think as I said at the very beginning
- 1:24:37and as we know, algorithm trading is
- 1:24:39going to continuously grow and expand
- 1:24:41and change the nature of markets over
- 1:24:44time as it has done in the past and will
- 1:24:46continue to do so. So, drop a comment
- 1:24:47with your biggest takeaway or questions
- 1:24:49right below there. Other episodes are on
- 1:24:52screen. Links all about will be in the
- 1:24:54description below. So check those out as
- 1:24:55well. And this has been Charax.
About this transcript
This page contains the full transcript of Master ALGO Trading In Less Than 90 Minutes (NO Coding) | $1M+ Profits by Chart Fanatics, generated from the public captions YouTube serves with the video. The transcript has 13,690 words across 2,096 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.