Fix missing `not` in `empty` check

See discussing here: https://github.com/freqtrade/freqtrade/pull/4963#discussion_r633457596
seems that request was only partially implemented
This commit is contained in:
JoeSchr 2021-05-22 13:26:59 +02:00 committed by GitHub
parent df0928c8b5
commit 21d986710d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class AwesomeStrategy(IStrategy):
# Look up trade candle.
trade_candle = dataframe.loc[dataframe['date'] == trade_date]
# trade_candle may be empty for trades that just opened as it is still incomplete.
if trade_candle.empty:
if not trade_candle.empty:
trade_candle = trade_candle.squeeze()
# <...>
```