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:
parent
df0928c8b5
commit
21d986710d
@ -65,7 +65,7 @@ class AwesomeStrategy(IStrategy):
|
|||||||
# Look up trade candle.
|
# Look up trade candle.
|
||||||
trade_candle = dataframe.loc[dataframe['date'] == trade_date]
|
trade_candle = dataframe.loc[dataframe['date'] == trade_date]
|
||||||
# trade_candle may be empty for trades that just opened as it is still incomplete.
|
# 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()
|
trade_candle = trade_candle.squeeze()
|
||||||
# <...>
|
# <...>
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user