Skip to content

Commit

Permalink
closes The last candle is missing #48
Browse files Browse the repository at this point in the history
  • Loading branch information
happydasch committed May 27, 2024
1 parent b3d72f2 commit 6f071a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btplotting/clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _align_slice(self, slicedata, startidx=None, endidx=None,
# check if value belongs to next candle, if current value
# belongs to next target candle don't use this value and
# stop here and use previously set value
if c_start and c_start > t_end:
if c_start and c_start >= t_end:
break
# forward until start of target start is readched
# move forward in source data and remember the last value
Expand Down

0 comments on commit 6f071a3

Please sign in to comment.