diff --git a/qtpylib/indicators.py b/qtpylib/indicators.py index 32d6315..b8ad0d5 100644 --- a/qtpylib/indicators.py +++ b/qtpylib/indicators.py @@ -234,7 +234,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