From a3bdc6c165b119232530db509a7cc576699fd9fb Mon Sep 17 00:00:00 2001 From: Kevin Johnson Date: Sun, 25 Jul 2021 19:16:17 -0700 Subject: [PATCH] BUG jma fix --- README.md | 2 +- pandas_ta/overlap/jma.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 50b2f690..0edd4085 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ $ pip install pandas_ta Latest Version -------------- -Best choice! Version: *0.3.11b* +Best choice! Version: *0.3.12b* * Includes all fixes and updates between **pypi** and what is covered in this README. ```sh $ pip install -U git+https://github.com/twopirllc/pandas-ta diff --git a/pandas_ta/overlap/jma.py b/pandas_ta/overlap/jma.py index be116e33..28afbab2 100644 --- a/pandas_ta/overlap/jma.py +++ b/pandas_ta/overlap/jma.py @@ -34,7 +34,7 @@ def jma(close, length=None, phase=None, offset=None, **kwargs): pow1 = max(length1 - 2.0, 0.5) length2 = length1 * npSqrt(length) bet = length2 / (length2 + 1) - beta = 0.45 * (length - 1) / (0.45 * (length - 1) + 2.0) + beta = 0.45 * (_length - 1) / (0.45 * (_length - 1) + 2.0) m = close.shape[0] for i in range(1, m): diff --git a/setup.py b/setup.py index 590d956c..110156be 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ "pandas_ta.volatility", "pandas_ta.volume" ], - version=".".join(("0", "3", "11b")), + version=".".join(("0", "3", "12b")), description=long_description, long_description=long_description, author="Kevin Johnson",