Merge pull request #9304 from stash86/bt-metrics

have to use bitwise operator on series comparison, otherwise ambiguous error is thrown
This commit is contained in:
Matthias 2023-10-15 13:07:54 +02:00 committed by GitHub
commit c627aee096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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