Jesse 2.0 Is Here! Algo-trading reimagined — Transcript
Full transcript
- 0:00Hey guys, Sal. Today, I couldn't be
- 0:01happier to announce the release of Jesse
- 0:032.0. This is one of the biggest releases
- 0:06we've ever had, so I couldn't be more
- 0:07excited. And in this video, I'm going to
- 0:09show you the highlights of it. So, let's
- 0:11get right into it.
- 0:12Now, right out of the bag, you're going
- 0:14to see that the entire dashboard has
- 0:16been redesigned, and we no longer have a
- 0:18navbar here. Instead, we have a sidebar,
- 0:20which you can also minimize. Now, I
- 0:22actually like the minimized version
- 0:24better because it saves me some space so
- 0:26that I can see charts and and things
- 0:28like that better. Next, you can see that
- 0:30the home page have been redesigned, and
- 0:32depending on whether you are a new user
- 0:35or someone who has already run some
- 0:37sessions, you're going to see different
- 0:38things. But for me, as you can see, I
- 0:40can see some of the recent backtest
- 0:42sessions or any other sessions that I've
- 0:45run, and I'm getting some useful stats.
- 0:47But this part is specifically is the one
- 0:49that I I would like to show you, which
- 0:51is it shows us how much of the CPU and
- 0:54RAM we are using. Now, this may not look
- 0:56like something that you would actually
- 0:57need. You would probably think, "Okay,
- 0:58we already had apps with Well, yes, you
- 1:00did, but if you were running Jesse on a
- 1:03production server, then keeping an eye
- 1:06on the resources of the your server was
- 1:10going to be really important, right? So,
- 1:11you want to make sure that you never run
- 1:13out of resources, and this is going to
- 1:16make it easy for you to keep an eye on
- 1:18it. Next, we have new backtest metrics.
- 1:22So, we have the max underwater period,
- 1:25we have separate win rates for shorts
- 1:27and long trades, but as you can see, we
- 1:29also have new charts. So, before, we
- 1:31only had the equity curve chart here,
- 1:34but now, not only we have that, we also
- 1:36have it in the log scale version. We
- 1:38also have the max drawdown chart, which
- 1:41also shows us the worst five periods,
- 1:43and it will also show us like how much
- 1:45each of them were losing, and we can
- 1:47also click on the chart to see it in
- 1:49bigger sizes. And as you can see, like
- 1:51my worst max drawdown period for this
- 1:53strategy was minus 17%, which was this
- 1:56period. And if you also read this max
- 2:00underwater period, you can also see that
- 2:02it was 50 days. So, this period right
- 2:05here was 50 days, which basically tells
- 2:07me that if I were to run this strategy
- 2:10for 50 days, I was going to have a
- 2:12really hard time until I was able to
- 2:14basically make back whatever I lost in
- 2:17this period. Next, we have the
- 2:18underwater plot, and then the monthly
- 2:21returns heat map, which is also super
- 2:23helpful, and the monthly returns
- 2:25distribution chart, and trade panel
- 2:27distribution chart. So, some of these
- 2:29are completely new, and some of them
- 2:31you've probably seen in other libraries
- 2:32such as the QuantStats, which at some
- 2:35point we were actually using inside
- 2:37Jesse itself, but then we had to
- 2:38discontinue that. And now, I'm happy to
- 2:41say that we have access to these charts
- 2:44again, but this time they are all built
- 2:46in in the house. Also, I've made some
- 2:48changes to the layout, so now the
- 2:49performance metrics is in here in the
- 2:52sidebar and not here, which actually
- 2:54makes it really easier to read. Next,
- 2:57and probably the biggest change in this
- 2:59release is the rule significance test,
- 3:01which is this statistical test that
- 3:04which will tell you whether or not the
- 3:06entry rule of the your strategy has any
- 3:09predictive power or not. Now, as you can
- 3:12see here, we have the distribution chart
- 3:14and this line here, and the conclusion
- 3:17of it is that this my strategy actually
- 3:20has a very significant entry rule.
- 3:23And we also have some And we also have
- 3:26some raw data, which can help you
- 3:28further, such as the annual return of
- 3:30the entry rule, the observed mean, and
- 3:32the number of observations and the
- 3:34simulations that we run for this. Now,
- 3:36to show you an example to understand
- 3:37what this does, well, let me show you
- 3:39some actual code, and for it, we're
- 3:41going to run the rule significance test
- 3:44inside the terminal because I also added
- 3:47to the research module of Jesse. And in
- 3:49fact, just so you know, the one that I
- 3:50added to the research module is
- 3:52completely free for everybody, but the
- 3:54one that's is accessible via the
- 3:56dashboard is for premium users only. But
- 3:59in the usage, they all do the same. So,
- 4:01let's just check it out. Now, here, we
- 4:03have a strategy that if I were to
- 4:05actually run it, I would have made
- 4:06money. So, you can see the entry rule of
- 4:08the strategy is 7.4%.
- 4:12Now, by the way, this is just for the
- 4:13entry rule of the strategy, okay? So,
- 4:15it's not the entire strategy. Now, if
- 4:17you don't fully understand what I'm
- 4:18talking about, it doesn't matter because
- 4:19I am going to record a full video just
- 4:22about this topic because it definitely
- 4:24deserves its own separate video because
- 4:27I spent months on this topic, and I had
- 4:30to read the whole book just to
- 4:31understand it. But for now, in this
- 4:32video, I just want to show you the
- 4:33highlight of it. So, here, we have a
- 4:35strategy that is making money. But the
- 4:37reason that it is making money is
- 4:39because it was trading purely a huge
- 4:41uptrend. And in fact, if I show you the
- 4:43code for the strategy that I am running
- 4:46here, all that it is doing
- 4:49is that it's trying to open a long
- 4:51position with 80% certainty. And in
- 4:54other times, it either doesn't open a
- 4:56position or it opens a short position.
- 4:58However, because I was running this test
- 5:02during a huge uptrend in the Bitcoin
- 5:04market, then it is simply making money.
- 5:07But as you can guess, such a strategy
- 5:09does not have any predictive power,
- 5:12right? We're just being lucky here. If I
- 5:14were to execute this strategy during a
- 5:17bear market, we were going to get a
- 5:18slaughtered without any doubt. And as a
- 5:20result, if I run this strategy, the
- 5:23result of the test is that it says two
- 5:25random signals have no edge, and that my
- 5:28entry rule is not significant because
- 5:30the P value is above, well, uh this
- 5:33value. Although, in the final results,
- 5:35I've actually said that I want a P value
- 5:37below 10%, okay?
- 5:40So, even above 5%, it might have some
- 5:42significance, but in here, you can see
- 5:45it's actually even slightly above 10%,
- 5:48so it definitely has no edge. And if I
- 5:50show you the distribution chart, you can
- 5:52see the returns of the strategy is not
- 5:56by far more than the random ones, so
- 5:58we're going to conclude that it does not
- 6:00have any actual edge. Here, I have
- 6:01another strategy, which actually does
- 6:04have some edge. So, it has some actual
- 6:06entry rule that is checking the data and
- 6:08making decision based on that, so it
- 6:10does have some predictive power. And if
- 6:12I run the same test on the same period
- 6:14for this one, I'm going to get this
- 6:15result, which basically is below 10%, so
- 6:18we're going to conclude that it does
- 6:19have some significance. Now, by the way,
- 6:21I I wrote this part before, so
- 6:24I need to update it, so please ignore
- 6:26this part that it says it's not
- 6:27significant. So, the important thing is
- 6:29that the P value is low. Also, one other
- 6:31reason that I'm getting this result and
- 6:33and not something like, "Yeah, your
- 6:34entry rule is super significant." That's
- 6:37because the period of the backtest is
- 6:39actually very low, so sometimes you need
- 6:41to increase that to get a more accurate
- 6:43results. And if we take a look at the
- 6:45distribution and if you take a look at
- 6:46the distribution chart, we can see that
- 6:49the returns of the uh actual strategy is
- 6:52actually better than most of the
- 6:53simulated ones. Also, once again, the
- 6:55one that I have here is actually a
- 6:57better example, so this one is running
- 6:59on a full year and on a lower time
- 7:01frame, so it means that we are running
- 7:03more simulations. And the more
- 7:05simulations you run with any kind of
- 7:07randomization test, the more accurate
- 7:09results you're going to get. And as you
- 7:10can see, it's telling me that the entry
- 7:12rule of the strategy is indeed very
- 7:15significant, and the P value is actually
- 7:17even below 1%. So, there you go. All
- 7:19this test does is is going to tell you
- 7:22if the entry rule of the strategy has
- 7:25some predictive power or not. It's not
- 7:26going to tell me if my strategy is ready
- 7:28for production or whether or not it is
- 7:30overfit. It is nothing like that, but
- 7:33the way this is helpful is because
- 7:35imagine you have an idea for an entry
- 7:37rule to write a strategy based on it.
- 7:40Now, before you spend time, like hours
- 7:42on that strategy to get the position
- 7:45size right right, to get the exit rules
- 7:48right. So, before doing any of those
- 7:50things, you just simply test your entry
- 7:52rule. And if it says that it is not
- 7:55signifi- significant, then you're just
- 7:57going to drop it right there. You're not
- 7:59going to waste time on it. But if it
- 8:00says that the entry rule is significant,
- 8:03then you can spend time on it to develop
- 8:05an actual strategy, and hopefully, you
- 8:07will get some good results. But again,
- 8:10so it doesn't tell you that the the
- 8:11strategy is definitely awesome, but it
- 8:13can tell you if it definitely isn't.
- 8:16Does that make sense? Now, anyways, you
- 8:18definitely need to do more research on
- 8:20this topic because it is actually very
- 8:22helpful and important, and I am making a
- 8:23video about it, so uh stay tuned for
- 8:25that. But in the meanwhile, you can also
- 8:27read the documentation that I wrote for
- 8:29it, and we have a page fully describing
- 8:32the steps and why it matters, and like
- 8:35the underneath method that I am using as
- 8:38a statistical test for this mode, and
- 8:41how to exactly read the results that you
- 8:43are getting. And as I mentioned, you can
- 8:46also use this inside the research
- 8:48module. So, if you need to run it via a
- 8:50program, or you can have the AI to write
- 8:53some code for you, if that's what you
- 8:55want to do, you can use the research
- 8:56module of Jesse, which you can find the
- 8:58documentation for it right here. And the
- 9:00next thing that I did is that I added
- 9:02the optimization mode as a function to
- 9:05the research module. So, before, we
- 9:06didn't have this. You could only run
- 9:08optimization sessions via the dashboard
- 9:10of Jesse, which is pretty beautiful and
- 9:12helpful and and it's like awesome, but
- 9:15there are some cases that you want to
- 9:17run the optimization session via a
- 9:19program. Again, maybe you want to have
- 9:21your AI to write the code for you or
- 9:23control it even. If that's what you want
- 9:25to do, then the research module is the
- 9:27one that you want, and there were
- 9:28actually many requests for the optimize
- 9:31mode function in the research module,
- 9:33and that's what I did. So, now we have
- 9:35it. And by the way, just so you know, we
- 9:37are going to have Jesse's own MCP
- 9:39version soon. So, that is also
- 9:41definitely coming. Now, while we are in
- 9:43the documentation, I should also give a
- 9:44shout-out to the machine learning stuff
- 9:46that we added. So, if you watched my
- 9:48previous video about machine learning,
- 9:50then you know this was added just
- 9:52recently, but it wasn't in the previous
- 9:54major release, so you need to know this
- 9:56that this is also new, but at the moment
- 9:58it is only supported inside the research
- 10:01module, and I'm not even sure if you're
- 10:02going to add it to the dashboard because
- 10:04the way you're going to use machine
- 10:06learning is very flexible and very
- 10:08unique to your own strategy, and I'm not
- 10:11sure how to add that to the UI, like
- 10:13what sort of use case you're going to
- 10:15have for it. But as a function, it is
- 10:17super helpful and you can use it in
- 10:19unlimited ways, and I made a video about
- 10:21it. So, go watch it if you want to know
- 10:23like how I use it. But definitely the
- 10:26documentation for it is really helpful.
- 10:28Like if you read this whole thing, you
- 10:30may not have to read like a whole book
- 10:32about machine learning just to be able
- 10:34to use it like I had to. And just so you
- 10:36know, our machine learning supports
- 10:38regression models and the binary models
- 10:41and multi-class classification. So, it
- 10:43is pretty flexible. That I wouldn't say
- 10:45like it is handling like 100% types, but
- 10:48I think it can handle most use cases of
- 10:51machine learning in trading. And by the
- 10:53way, this is the video that I was
- 10:54talking about. So, if you haven't
- 10:55watched it, definitely make sure to give
- 10:57it a watch. It is a very interesting
- 10:59topic. Now, you might be thinking,
- 11:01"Okay, so now that you're on version
- 11:03two, does that mean there have been some
- 11:05breaking changes?" Well, I made my best
- 11:08to lower the breaking changes. And the
- 11:12the only one that actually most of you
- 11:13have to worry about is related to the
- 11:16backtest function of the research
- 11:18module. So, if you were using just this
- 11:20backtest using the function, so not the
- 11:22mode in the dashboard, then you're going
- 11:24to check to ensure that you're using the
- 11:27correct API for the charts and things
- 11:30like that. So, that's the only change
- 11:32that we had. Now, we also had some small
- 11:34changes. So, for example, if you're in
- 11:36the backtest settings and you want to
- 11:39quickly look up the exchange that you
- 11:41need to change the setting. Now, before
- 11:43you had to just look for it, which was a
- 11:45bit annoying, but now we have a search
- 11:46box for it. So, these sort of small
- 11:48adjustments have been done in the entire
- 11:51dashboard, but I didn't document those.
- 11:52But hopefully you're going to be happy
- 11:54about it because these are based on your
- 11:56direct feedback in the past few months
- 11:59and years. So, that's it, guys. I've
- 12:01been focused on development only for the
- 12:04past like God knows how many of weeks,
- 12:06and starting now I'm going to go back to
- 12:08do some research for myself and making
- 12:10more videos for you guys. So, definitely
- 12:12stay tuned for that because new videos
- 12:14are coming soon. And as always, if you
- 12:16had further feedback about like any
- 12:18changes you want in the dashboard or new
- 12:20features that you want to be added or
- 12:22improvements to the existing ones, just
- 12:24ping me on our Discord server. so much
- 12:26for being a part of the Jesse community
- 12:28and thanks for watching this video. I'll
- 12:29see you in the next one soon.
About this transcript
This page contains the full transcript of Jesse 2.0 Is Here! Algo-trading reimagined by Algo-trading with Saleh, generated from the public captions YouTube serves with the video. The transcript has 2,563 words across 348 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.