From 149c6fd00e04c0c3de9d3dd9db534436323271b8 Mon Sep 17 00:00:00 2001 From: David Brazda Date: Fri, 18 Oct 2024 14:37:18 +0200 Subject: [PATCH] fix --- setup.py | 2 +- ttools/indicators/{DIVRELN.py => DIVERGENCE.py} | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) rename ttools/indicators/{DIVRELN.py => DIVERGENCE.py} (96%) diff --git a/setup.py b/setup.py index a7fdbaa..65e4321 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='ttools', - version='0.3.0', + version='0.3.1', packages=find_packages(), install_requires=[ 'vectorbtpro', diff --git a/ttools/indicators/DIVRELN.py b/ttools/indicators/DIVERGENCE.py similarity index 96% rename from ttools/indicators/DIVRELN.py rename to ttools/indicators/DIVERGENCE.py index b8feb41..13df904 100644 --- a/ttools/indicators/DIVRELN.py +++ b/ttools/indicators/DIVERGENCE.py @@ -25,7 +25,6 @@ DIVERGENCE - of two time series, same like in v2realbot @jit(nopython=True) def divergence(series1, series2, divtype): - print(divtype) #div = a+b / a-b will give value between -1 and 1 if divtype == "reln": return (series1 - series2) / (series1 + series2) @@ -45,8 +44,8 @@ def divergence(series1, series2, divtype): """ Divergence indicator - various divergences between two series """ -IND_DIVRELN = vbt.IF( - class_name='DIVRELN', +IND_DIVERGENCE = vbt.IF( + class_name='DIVERGENCE', module_name='ttools', input_names=['series1', 'series2'], param_names=["divtype"],