Fix issue 300 - bbands lower/upper bands swapped

This commit is contained in:
Christopher J. Mobley
2021-05-29 15:46:35 -04:00
parent e6792701d7
commit 7babbf73e9
+1 -1
View File
@@ -21,7 +21,7 @@ def bbands(close, length=None, std=None, mamode=None, ddof=0, offset=None, **kwa
# Calculate Result
if Imports["talib"]:
from talib import BBANDS
lower, mid, upper = BBANDS(close, length)
upper, mid, lower = BBANDS(close, length)
else:
standard_deviation = stdev(close=close, length=length, ddof=ddof)
deviations = std * standard_deviation