How to set up Jesse on macOS for algo-trading in Python — Transcript
Full transcript
- 0:00hey guys s in this video I'm going to
- 0:02install Jesse for Alat tring with python
- 0:05from scratch on a brand new Macbook Pro
- 0:08M4 Max which has an apple silicon chip
- 0:10in it you could also use the docker
- 0:12installation which is also very easy but
- 0:15it won't give you native speed which is
- 0:17important if you want to make sure that
- 0:18your back tests are being executed as
- 0:20fast as possible so let's get right into
- 0:22it so first I'm going to set up python
- 0:25itself however instead of using python
- 0:27alone I'm going to use this tool called
- 0:29min nonda which allows us to set up
- 0:32isolated environments this is super
- 0:34helpful because it allows me to separate
- 0:36my python applications from each other
- 0:38so that the dependency packages that
- 0:40we're going to install won't conflict
- 0:42with each other so I simply Googled
- 0:44miniconda let's open it now let's go
- 0:47down and go to the installing miniconda
- 0:52I'm going to go to the Mac OS and
- 0:54because I'm on an Apple silicon machine
- 0:56I'm going to copy this open the terminal
- 0:59and paste it
- 1:00depending on your internet connection
- 1:02this is going to take a while all right
- 1:03now that this is done let's try the cond
- 1:05command right it says after installing
- 1:07close and reopen your terminal
- 1:09application or ref we should by running
- 1:10this command let's give this a
- 1:13try all right it works now perfect let's
- 1:16copy this
- 1:18one now try it again and now it works
- 1:21okay so in case you missed it first you
- 1:23need to run this command for it to
- 1:26recognize the cond command and then run
- 1:29this command for the the changes to be
- 1:30permanent so now whenever I open a new
- 1:33terminal command and run the cond
- 1:35command it will work all right so now
- 1:37that we have cond installed we can begin
- 1:39creating our first cond environment so
- 1:42I'm going to say cond
- 1:44create and then I will pass a name and I
- 1:47will call it simply Jesse and then we
- 1:50can pass the version of the Python that
- 1:52we want I'm going to choose
- 1:543.13 and hit enter so now this is going
- 1:58to install even python itself for me
- 2:00which is another benefit of cond
- 2:02environments because with typical python
- 2:04environments sure you can separate your
- 2:06packages but you cannot separate your
- 2:07python versions all right so it's
- 2:09telling me this let's press enter and
- 2:12wait for it to finish downloading all
- 2:15right now that that is done we can
- 2:16activate it by saying cond activate and
- 2:20then pass the name of the environment
- 2:22that we specified earlier which in this
- 2:23case would be J so now to confirm that
- 2:26we have python indeed installed I'm
- 2:28going to pass this
- 2:30and it says 3.13 which is correct I can
- 2:33also do the same for
- 2:35pip and we got the same thing all right
- 2:38Perfect all right so now we have python
- 2:40itself but there are a couple of other
- 2:41things that we also need for Jesse such
- 2:43as the database and for that I'm going
- 2:45to use a very cool tool for Mac called
- 2:47Homebrew there's a good chance you
- 2:49already have that but in case you don't
- 2:50let's install it together I just Google
- 2:52Homebrew let's open it and just copy
- 2:55this command open the terminal a new tab
- 3:00and paste it in going to enter my
- 3:03password hit enter and we're going to
- 3:06have to wait and notice that it's
- 3:08telling me that it needs to set up the
- 3:09xcode command line tools first which is
- 3:12required for most of the development
- 3:14stuff on Mac OS and we're done but it is
- 3:17giving me some instructions to make sure
- 3:19that home is inside my path and I'm just
- 3:22going to copy this Command right here
- 3:24and paste it here and also this one
- 3:30and this one now to make sure everything
- 3:33works I'm going to open a new terminal
- 3:35window and in it called The Brew command
- 3:38and it works just fine all right I'm
- 3:40going to close the previous terminals
- 3:42next I need to set up redis by simply
- 3:45calling Brew install
- 3:48Redd all right now it's telling me that
- 3:51to Red now and Restort at log in you
- 3:54need to run this scha so I'm going to
- 3:56copy and paste it
- 4:01and we're good to go all right next I
- 4:03need to set up database I'm going to say
- 4:05Brew
- 4:07install
- 4:08postgress ql at sign 17 to make sure I'm
- 4:13setting up the version 17 which at the
- 4:16moment of making this video is the
- 4:18latest version but there might be newer
- 4:20versions when you are watching this
- 4:21video if that's the case there's a good
- 4:23chance that will be already supported by
- 4:25us but in case it doesn't just set up
- 4:27the version 17
- 4:30so it's telling me to first run this
- 4:32command so that the postore scl can be
- 4:36found inside my path now by the way in
- 4:37case you don't know what the path is let
- 4:40me open a new terminal window so for
- 4:42example when I run the Brew command and
- 4:45it recognizes this command this is
- 4:47because the home brew is inside my path
- 4:50Now what is my path to see it we can run
- 4:53the command Echo and then path and in
- 4:56this long string you can indeed find
- 4:59Homebrew
- 5:00so you see because I have it in here it
- 5:04knows that when I run the Brew command
- 5:07basically this is what I'm referring to
- 5:09this one for example is for miniconda
- 5:11and this is a common issue actually that
- 5:13sometimes you install a package and you
- 5:15run the command but the terminal just
- 5:17doesn't recognize it that's because it
- 5:19is not inside your path and you need to
- 5:21put it there now the command that it is
- 5:23giving me here if I copy and paste it it
- 5:26will ensure that it is in my path
- 5:28however there is one important note and
- 5:30that is the command that it is giving me
- 5:32is echoing this line or copying it let's
- 5:36say inside this file but the reason it
- 5:39is giving me this file is because I have
- 5:40zshell installed on my terminal so for
- 5:43you this may be another address and if
- 5:45you do want to set up Zell just like me
- 5:47which will give you some cool stuff
- 5:49inside the terminal just go to the
- 5:51Google and search for Zell Mac
- 5:55OS open the first
- 5:58link go to the install and just copy and
- 6:01paste this command and you should be
- 6:03good to go anyways back to the task so
- 6:05it's also telling me that for compilers
- 6:07to find postc schol you need to set
- 6:09these two values so I'm going to open
- 6:12this simply by saying open and then
- 6:15pasting the
- 6:16path this will give me the code editor
- 6:20Let Me zoom
- 6:21in and now I'm going to copy these two
- 6:25lines and come down and here I'm going
- 6:29to paste it
- 6:31here and save this file it's also
- 6:34telling me to assort postore scl now and
- 6:36Restort at log in you need to run this
- 6:39command so let's copy and paste it and
- 6:41we're good all right now that we have
- 6:43the database we can move on to create a
- 6:46table and user and password for for JC
- 6:49to be able to use it now in case you
- 6:50need to copy and paste these commands
- 6:52just go to our documentation inside the
- 6:54environment setup and Mac OS and you can
- 6:57find them here so I'm just going to copy
- 7:00and paste
- 7:05these all right so now that we have
- 7:07those we should be good to actually
- 7:09install Jesse itself I'm going to open
- 7:11another terminal just to make sure
- 7:13everything's fresh now notice that I
- 7:14don't have python in this page I mean I
- 7:17do but it is the default one on Mac so
- 7:19if I run pip D- version you will see
- 7:22that it says python 3.12 now I believe
- 7:25this was installed by minondo itself but
- 7:28still this isn't the one that we wanted
- 7:30for Jesse which was using 3.13 and
- 7:33that's because by default this same base
- 7:35which means it doesn't have the Jessi
- 7:37environment so to activate it I'm going
- 7:39to say cond
- 7:42activate and then
- 7:44Jesse now inside here if I again say pip
- 7:47version I'm going to get Python 2.13 and
- 7:51lastly I'm going to say pip inall Jesse
- 7:56all right everything went just fine and
- 7:58now I should be able to create my first
- 8:00J Project now to do that you can go to
- 8:02whichever directory that you want such
- 8:04as the one that I'm in right now which
- 8:06is my user on my operating system
- 8:09anyways to create a new JC project
- 8:11simply go to our documentation go to the
- 8:13installation and then create a new jessu
- 8:16project and copy this command which will
- 8:18clone a new project for you and name it
- 8:21my bot now this name here is optional
- 8:24and you can name it whatever you want so
- 8:25I'm going to call it
- 8:27test project
- 8:29and hit
- 8:31enter and we're done so now I can CD
- 8:34into that project and next I need to
- 8:37create mymv file I'm going to do that
- 8:39using the CP command to copy from the
- 8:42example file which is called mv. example
- 8:46and then I will pass the name that it
- 8:48needs to be for me to be able to run the
- 8:49project which ismv all right so now we
- 8:52have everything we need in order to run
- 8:54the project but I need to edit this file
- 8:56which is why I need a code editor if you
- 8:58don't already have have a code editor I
- 9:00suggest using the visual studio code
- 9:03which is perfectly free you can download
- 9:04it for Mac OS but I have already done
- 9:06that so I'm going to open it now and
- 9:08this will be the first thing that you
- 9:09will see now at this point I need to
- 9:11install the code command for my terminal
- 9:13to recognize it so that I can easily
- 9:15open the project from within my terminal
- 9:17for that I'm going to hit command shift
- 9:19and P and look for the install code
- 9:23command in path if it goes fine you
- 9:26should be seeing a message like this and
- 9:28by the way sometimes you need to to open
- 9:30another terminal tab for this to take
- 9:32effect so if that's the case just open
- 9:33another Tab and notice that I am still
- 9:36inside the same directory and now if I
- 9:38run the code command it should work and
- 9:40because I want to open the current
- 9:42directory for my project I'm going to
- 9:44hit space and then dot hit enter and now
- 9:48we have our project now check this box
- 9:52yes I trust it and we are good all right
- 9:55now I need to edit the file because the
- 9:58default Valu have been set to work with
- 10:00Docker so I need to change this value to
- 10:04Local Host so I'm going to comment this
- 10:06line and comment out this second line
- 10:10and then I will do the same thing for
- 10:12reddis now if you own a premium license
- 10:14you need to generate an API key from
- 10:16this address from our website and then
- 10:18paste that API key in here all right
- 10:21let's go back to the terminal and now I
- 10:23should be able to run Jesse to do that
- 10:25I'm going to Simply say Jesse run all
- 10:27right so why am I getting this error
- 10:29well well we installed Jesse inside the
- 10:32cond environment but now notice this
- 10:34it's it is saying base which means I
- 10:36haven't activated my cond environment
- 10:38yet and this happened because I just
- 10:39opened a new terminal Tab and whenever
- 10:41you do that you need to activate it
- 10:43again so again I'm going to say cond
- 10:45activate Jesse and now if I run that
- 10:47command one more time it should work the
- 10:50first time I ran this it took me a while
- 10:52for it to start but if I stop it using
- 10:54control and c and run it one more time
- 10:56you can see that it is started instantly
- 10:59all right so if you seeing this that
- 11:01means we are running it successfully so
- 11:03you need to copy this address and paste
- 11:06it inside your browser in some cases
- 11:08I've seen this not working and if that's
- 11:10the case for you you need to replace
- 11:12this 0000 with Local Host like
- 11:16this it's asking for a password which if
- 11:19you remember inside our project we had
- 11:21it here so whichever password you set
- 11:23here will be used inside here so I'm
- 11:25going to enter
- 11:27test and we are successfully inside the
- 11:30dashboard to make sure everything is
- 11:31working let's go to the import candles
- 11:34page and try to import some
- 11:39candles and it is working all right next
- 11:42I want to make sure that I have the
- 11:43right plugins which would help me to
- 11:45write the code as fast as possible so
- 11:47let's go back to the vs code and I'm
- 11:49going to remove the co-pilot tab which
- 11:52by the way if you install copilot
- 11:53completely you're going to get
- 11:55autocomplete in your code which is
- 11:56really helpful but that's not what I
- 11:57want right now right now I want to go to
- 11:59the extensions and look for
- 12:02python first you need to set up python
- 12:05by Microsoft now I already installed it
- 12:08next install pyland which will give you
- 12:11autocomplete lastly we need to make sure
- 12:13that the right python version is
- 12:15selected in our project so let's open
- 12:17the command pallet by pressing command
- 12:19shift and P and look for
- 12:22python
- 12:24interpreter and choose select
- 12:27interpreter and now you should be able
- 12:29to find your cond environment which you
- 12:31found earlier now this is it the one
- 12:34with python 3.13 and the name of the
- 12:37environment is Jesse all right now to
- 12:39make sure it works we need to open a
- 12:41Jesse strategy Now by default all the
- 12:43projects have this example strategy so
- 12:47let's open that and you can find it also
- 12:50here the strategies example strategy and
- 12:52then it's in it file so now if
- 12:55everything worked when I press the
- 12:57option key and and hover these I should
- 13:01be able to go inside
- 13:03them so it is working perfectly fine but
- 13:07why did we install do extensions well
- 13:09the reason is because now we have
- 13:10autocomplete so for example let's say I
- 13:13want to use the TA module which is
- 13:15imported here so if I press ta and then
- 13:18dot I'm going to get the complete list
- 13:21of all the supported indicators so for
- 13:23example if I press em it will bring the
- 13:25EMA for me and it will also tell me the
- 13:27accepted parameters for it
- 13:29I hope you found this video helpful for
- 13:31setting up Jesse on your Mac machine
- 13:33thanks for watching and I'll see you in
- 13:34the next one
- 13:36[Music]
- 13:38[Applause]
- 13:41[Music]
About this transcript
This page contains the full transcript of How to set up Jesse on macOS for algo-trading in Python by Algo-trading with Saleh, generated from the public captions YouTube serves with the video. The transcript has 2,525 words across 346 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.