Skip to content

Commit

Permalink
bug fixes on normalized bollinger bands width
Browse files Browse the repository at this point in the history
  • Loading branch information
aticio committed Aug 18, 2023
1 parent 28a59ec commit ae03719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion legitindicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ def bollinger_bands_width_normalized(data, length, stdd):
bbw.append(0)
else:
tmp = data[i - length:i]
dev.append(stdd * statistics.stdev(tmp))
dev.append(stdd * statistics.pstdev(tmp))
upper.append(basis[i] + dev[i])
lower.append(basis[i] - dev[i])
bbw.append(((basis[i] + dev[i]) - (basis[i] - dev[i]))/basis[i])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="legitindicators",
version="0.0.70",
version="0.0.71",
description="Legit indicators to be used in trading strategies.",
py_modules=["legitindicators"],
classifiers=[
Expand Down

0 comments on commit ae03719

Please sign in to comment.