2. Candles - Algo trading from scratch with Python — Transcript
Full transcript
- 0:01[Music]
- 0:02let's talk about candles why and how we
- 0:05can import them
- 0:06backlisting records data so if i sort
- 0:08this practice without importing data
- 0:10first it should fail
- 0:14the error is pretty clear it's telling
- 0:16me no candle for binance but soul usat
- 0:18is present in my database so let's start
- 0:20importing the needed candles to do that
- 0:22open the import candles page
- 0:24choose the exchange
- 0:26the
- 0:28symbol and the starting date
- 0:32notice that i entered the same starting
- 0:34date as my backtest was
- 0:37the ending date is not required because
- 0:39it always assumes the current date
- 0:42notice that there is no option for the
- 0:43time frame either that is because jesse
- 0:45only records the one minute timeframe
- 0:47data and generates the rest of the time
- 0:49frames from them let's start the
- 0:51importing process
- 0:53this should take a while so i'll skip
- 0:55the video
- 0:56let's run the backers again
- 0:58this time it fails again that's because
- 1:00the starting date of the backtest is
- 1:02exactly the date that we use for
- 1:04importing candles which means we forgot
- 1:06to consider the warm-up candles
- 1:12warmer candles are the data that is
- 1:14loaded before starting the back
- 1:16decisions let's say in your strategy
- 1:18you're using a moving average with a
- 1:20period of 50. warm-up candles allow you
- 1:22to have access to that value since the
- 1:24beginning of the practice instead of
- 1:26just waiting 50 candles just so you can
- 1:28estimate the value of the moving average
- 1:30by default the warm-up period value is
- 1:32set to 210. you can change it from
- 1:35within the settings page if you needed
- 1:36to
- 1:37my backtest is using the minute time
- 1:39frame so 210 multiplied by 5 equals 1050
- 1:43minutes which is slightly shorter than a
- 1:45day so if i import candles from just one
- 1:47day earlier it should do it
- 1:49this time we should go way faster
- 1:51because we only need candles for one day
- 1:53so jesse will skip the days that it
- 1:55already has now if i run the back test
- 1:57again it should work just fine
- 1:59and the reason new trades were executed
- 2:01here is because the strategy i'm using
- 2:03is empty however an easier way to deal
- 2:06with volume candles is to simply import
- 2:08candles since a few years ago so you
- 2:10don't have to worry about candles during
- 2:12development at all
- 2:19in case your database is empty and you
- 2:21want to import candles as fast as
- 2:23possible you can do that by opening
- 2:25multiple tabs for instance while this
- 2:28session is importing candles i can open
- 2:30a new tab and import other candles
- 2:34however even though jesse allows you to
- 2:36it's best not to import simultaneously
- 2:39from the same exchange because you might
- 2:41hit the rate limit of the exchange and
- 2:42get banned for a while instead you could
- 2:44import from another exchange for example
- 2:47in this case instead of binance spot i
- 2:49could import from binance perpetual
- 2:50features
- 2:54i have to mention that importing handles
- 2:56is not required for live trading in live
- 2:58trading at the beginning of the live
- 3:00session jesse will automatically import
- 3:02the required candles for you in the next
- 3:03video we're gonna talk about how
- 3:05strategies work in jets
About this transcript
This page contains the full transcript of 2. Candles - Algo trading from scratch with Python by Algo-trading with Saleh, generated from the public captions YouTube serves with the video. The transcript has 530 words across 84 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.