cycles indicators fully typed

This commit is contained in:
P S Solanki
2021-12-18 21:55:24 +05:30
parent 1ea0544f34
commit 2be8343847
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ from pandas import Series
from pandas_ta.utils import get_offset, verify_series
def ebsw(close, length=None, bars=None, offset=None, initial_version=False, **kwargs):
def ebsw(close: Series, length: int = None, bars: int = None, offset: int = None, initial_version: bool = False,
**kwargs) -> Series:
"""Even Better SineWave (EBSW)
This indicator measures market cycles and uses a low pass filter to remove noise.
+2 -1
View File
@@ -9,7 +9,8 @@ from pandas import Series
from pandas_ta.utils import get_offset, verify_series
def reflex(close, length=None, smooth=None, alpha=None, offset=None, **kwargs):
def reflex(close: Series, length: int = None, smooth: int = None, alpha: float = None, offset: int = None,
**kwargs) -> Series:
"""Reflex (reflex)
John F. Ehlers introduced two indicators within the article