comment updates, formatting, TODOs

This commit is contained in:
Sam Germain
2021-09-08 01:53:42 -06:00
parent 1379ec7402
commit 695a8fc73b
7 changed files with 58 additions and 39 deletions

View File

@@ -386,7 +386,7 @@ class Backtesting:
detail_data = detail_data.loc[
(detail_data['date'] >= sell_candle_time) &
(detail_data['date'] < sell_candle_end)
]
]
if len(detail_data) == 0:
# Fall back to "regular" data if no detail data was found for this candle
return self._get_sell_trade_entry_for_candle(trade, sell_row)