Skip to content

Commit

Permalink
adjust for higher timeframes
Browse files Browse the repository at this point in the history
  • Loading branch information
kakulukia committed Apr 9, 2024
1 parent f88df69 commit b56268d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jesse/research/candles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b56268d

Please sign in to comment.