Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
phuvinhnguyen committed Dec 7, 2024
1 parent fe0a337 commit 68ae844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autotrader/brokers/virtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,8 @@ def get_candles(
candles = candles.tail(count)
else:
# Backtesting - check for lookahead
print(candles.index)
print(self._latest_time)
print(candles.index.tzinfo)
print(self._latest_time.tzinfo)
candles = candles.loc[candles.index < self._latest_time].tail(count)
print('endddddddddddddddddddddddddd')

Expand Down

0 comments on commit 68ae844

Please sign in to comment.