mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
have to use bitwise operator, otherwise ambiguous error is thrown
This commit is contained in:
parent
fa174a392a
commit
9d552d45c2
2
freqtrade/vendor/qtpylib/indicators.py
vendored
2
freqtrade/vendor/qtpylib/indicators.py
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user