mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-08-15 12:45:08 +08:00
cycles indicators fully typed
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user