mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-10-04 12:50:26 +08:00
Merge branch 'pr/374' into development
This commit is contained in:
commit
b6fcf4fc62
1 file changed
+2
-1
@@ -2,6 +2,7 @@
|
||||
from math import floor
|
||||
from numpy import exp as npExp
|
||||
from numpy import nan as npNaN
|
||||
from math import floor
|
||||
from pandas import Series
|
||||
from pandas_ta.utils import get_offset, verify_series
|
||||
|
||||
@@ -18,7 +19,7 @@ def alma(close, length=None, sigma=None, distribution_offset=None, offset=None,
|
||||
if close is None: return
|
||||
|
||||
# Pre-Calculations
|
||||
m = distribution_offset * (length - 1)
|
||||
m = floor(distribution_offset * (length - 1))
|
||||
s = length / sigma
|
||||
wtd = list(range(length))
|
||||
for i in range(0, length):
|
||||
|
||||
Reference in new issue
Block a user