From 9d552d45c2d9bac39883a2a4d0153001be7c9849 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Sun, 15 Oct 2023 19:32:03 +0900 Subject: [PATCH] have to use bitwise operator, otherwise ambiguous error is thrown --- freqtrade/vendor/qtpylib/indicators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/vendor/qtpylib/indicators.py b/freqtrade/vendor/qtpylib/indicators.py index 63797d462..a4d92eed3 100644 --- a/freqtrade/vendor/qtpylib/indicators.py +++ b/freqtrade/vendor/qtpylib/indicators.py @@ -226,7 +226,7 @@ def crossed(series1, series2, direction=None): series1.shift(1) >= series2.shift(1))) if direction is None: - return above or below + return above | below return above if direction == "above" else below