diff --git a/setup.py b/setup.py index 124c424..b036bd9 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='ttools', - version='0.2.5', + version='0.2.6', packages=find_packages(), install_requires=[ 'vectorbtpro', diff --git a/ttools/vbtindicators.py b/ttools/vbtindicators.py index 79a4a15..14f8bf4 100644 --- a/ttools/vbtindicators.py +++ b/ttools/vbtindicators.py @@ -81,7 +81,7 @@ def register_custom_inds(indicator_name: str = None, if_exists: str ="skip"): else: for var_name, var_value in globals().items(): if var_name.startswith("IND_") and isinstance(var_value, vbt.IndicatorFactory): - vbt.IF.deregister_custom_indicator(var_value, location="ttools") + vbt.IF.register_custom_indicator(var_value, location="ttools", if_exists=if_exists) def deregister_custom_inds(indicator_name: str = None): """Deregister a custom indicator or all custom indicators. @@ -101,4 +101,4 @@ def deregister_custom_inds(indicator_name: str = None): else: for var_name, var_value in globals().items(): if var_name.startswith("IND_") and isinstance(var_value, vbt.IndicatorFactory): - vbt.IF.rdeegister_custom_indicator(var_value, location="ttools") \ No newline at end of file + vbt.IF.deregister_custom_indicator(var_value, location="ttools") \ No newline at end of file