Rust + Jesse = Match made in heaven — Transcript
Full transcript
- 0:00Hey guys, it's Al. This release is all
- 0:02about speed. That means faster back
- 0:04tests, optimization runs, and soon it's
- 0:06going to be faster Monte Carlo
- 0:08simulations and also machine learning
- 0:10training. Yes, I'm spoiling a little bit
- 0:11from the future, but it's coming. Now,
- 0:13the main reason behind these faster back
- 0:15tests are first this refactor that I did
- 0:18for how we handle candles in back
- 0:20testing. And to give you an example,
- 0:22this is this very heavy back test that I
- 0:24had for 3.4 years. And it's also using
- 0:27the one minute time frame. It's very
- 0:29heavy. It's also using bigger time
- 0:31frames. And if you take a look at here,
- 0:33it took us 625 seconds to finish this
- 0:36back test. But after these refactors, I
- 0:38finished the exact same back test in
- 0:40only 138 seconds. So that is almost six
- 0:44times faster right there. And notice
- 0:46that all the numbers are exactly the
- 0:48same. So that's number one. If your
- 0:50strategy is also using multiple time
- 0:52frames, you're going to see
- 0:53improvements. Now how much of it depends
- 0:55on the duration of your back test and
- 0:57the exact time frames that you were
- 0:59using. Now the second reason why this
- 1:00release is faster is because of the
- 1:02integration of the Rust language. Now if
- 1:04you don't already know Rust, it's this
- 1:06very shiny language that these is all
- 1:08the apps are using in order to improve
- 1:10the performance. Now instead of
- 1:11rewriting the entire Jesse code with
- 1:13Rust which is going to make it very
- 1:15unreadable and hard to maintain, I only
- 1:17implemented the parts that were critical
- 1:19for performance. Now that part is still
- 1:21ongoing because we were already
- 1:23optimized using C libraries such as
- 1:25numpy or pandas. But wherever that's not
- 1:27the case, I am going to write it in rust
- 1:29from now on. But starting now, I
- 1:32implemented many of our indicators with
- 1:34this language. Now if you remember just
- 1:36a few months ago, we stopped using tool
- 1:39as a dependency of Jesse. And the reason
- 1:41was because it made it very difficult
- 1:43for people to install Jesse in the first
- 1:45place because that library wasn't being
- 1:47maintained as well as I needed it to.
- 1:49But now the new implementation that I
- 1:51did not only is faster than what we had
- 1:53just few weeks ago, but it's even faster
- 1:55than the toll library, which means I
- 1:57guess I could claim that Jesse is now
- 1:59the fastest indicator library out there.
- 2:01I don't know. I haven't benchmarked like
- 2:03all of them, but I'm pretty sure it is
- 2:05super fast. Now, the code for this
- 2:08integration that I did is open source
- 2:09and you can find it on our repository
- 2:12under Jesse Rust, which doesn't concern
- 2:14most of you, but if you are curious how
- 2:15I did it, you can check it out. But now
- 2:17let me show you how much faster it got.
- 2:19So remember this back test that I said
- 2:21is like six times faster now and it took
- 2:24138 seconds. Well after the new Rust
- 2:27implementation, we are finishing the
- 2:29same back test with the exact same
- 2:31numbers in only 95 seconds. So that is
- 2:34almost 40% faster just because of the
- 2:37new indicators. May not really care much
- 2:40about 40% faster if your back test is
- 2:42very simple and you're just running it a
- 2:44few times. But imagine this that if you
- 2:46were running the optimization mode for
- 2:48the same back test, if you were spending
- 2:501 hour, now you're going to finish the
- 2:52same thing in 36 minutes. But if it's
- 2:55not 1 hour, if it was 4 hours or 10
- 2:57hours, you get the idea. It's going to
- 2:59add up very quickly. And especially in
- 3:01the upcoming Monte Carlo simulations,
- 3:03this is going to be a huge win. In fact,
- 3:05that's why I'm tackling this right now
- 3:07because I know the value of it for both
- 3:09Monte Carlo and AI training such as
- 3:12machine learning. and I couldn't be more
- 3:13excited about those. Now, I also did a
- 3:15lot of improvements and fixes in this
- 3:18release. So, if you haven't checked them
- 3:19out, make sure to check the change log
- 3:21page on our documentation. Thank you so
- 3:22much for supporting the project. As
- 3:24always, I'll see you soon.
- 3:26[Music]
- 3:35[Applause]
- 3:39[Music]
About this transcript
This page contains the full transcript of Rust + Jesse = Match made in heaven by Algo-trading with Saleh, generated from the public captions YouTube serves with the video. The transcript has 721 words across 102 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.