From 21d986710dfabbcd40fe8e4555731974cccc3188 Mon Sep 17 00:00:00 2001 From: JoeSchr Date: Sat, 22 May 2021 13:26:59 +0200 Subject: [PATCH] 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 --- docs/strategy-advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/strategy-advanced.md b/docs/strategy-advanced.md index 52879c7b4..cb759eb2f 100644 --- a/docs/strategy-advanced.md +++ b/docs/strategy-advanced.md @@ -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() # <...> ```