From b56268df2df2b920653bef7aae55e02cee0cec49 Mon Sep 17 00:00:00 2001 From: Andy <andy@freilandkiwis.de> Date: Tue, 9 Apr 2024 22:53:12 +0200 Subject: [PATCH] adjust for higher timeframes --- jesse/research/candles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jesse/research/candles.py b/jesse/research/candles.py index 3fd80cf9e..3c3274939 100644 --- a/jesse/research/candles.py +++ b/jesse/research/candles.py @@ -42,7 +42,7 @@ def get_candles( finish_date = jh.date_to_timestamp(finish_date) - 60_000 if warmup_candles > 0: - start_date -= warmup_candles * 60_000 + start_date -= warmup_candles * jh.timeframe_to_one_minutes() * 60_000 # validate if start_date == finish_date: