sysstra 0.1.2.3__tar.gz → 0.1.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/PKG-INFO +1 -1
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/setup.py +1 -1
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/utils.py +27 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra.egg-info/PKG-INFO +1 -1
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/LICENSE +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/README.md +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/setup.cfg +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/__init__.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/custom_indicators.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/data/historical.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/data/live.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/orders/__init__.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/orders/backtest.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/orders/common.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/orders/live.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra/orders/virtual.py +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra.egg-info/SOURCES.txt +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra.egg-info/dependency_links.txt +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra.egg-info/requires.txt +0 -0
- {sysstra-0.1.2.3 → sysstra-0.1.2.4}/sysstra.egg-info/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="sysstra",
|
|
5
|
-
version="0.1.2.
|
|
5
|
+
version="0.1.2.4",
|
|
6
6
|
description="Official Python Library for Sysstra Algo Trading",
|
|
7
7
|
long_description=open("README.md").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
@@ -713,6 +713,15 @@ def apply_indicators(dataframe, indicators_dict, logger=None):
|
|
|
713
713
|
lc_length=indicators_dict["BBW"]["lc_length"])
|
|
714
714
|
dataframe["bbw"] = round(bbw_df, 2).fillna(0).values
|
|
715
715
|
|
|
716
|
+
if "SBBW" in indicators_dict:
|
|
717
|
+
sbbw_df = smoothed_bbw(dataframe=dataframe, length=indicators_dict["SBBW"]["length"],
|
|
718
|
+
std_dev=indicators_dict["SBBW"]["std_dev"], source=indicators_dict["SBBW"]["source"],
|
|
719
|
+
ma_type=indicators_dict["SBBW"]["ma_type"],
|
|
720
|
+
ma_length=indicators_dict["SBBW"]["ma_length"])
|
|
721
|
+
dataframe["bbw"] = round(sbbw_df.iloc[:, 0].fillna(0), 2).values
|
|
722
|
+
dataframe["sbbw"] = round(sbbw_df.iloc[:, 1].fillna(0), 2).values
|
|
723
|
+
dataframe["sbbw_slope"] = sbbw_df.iloc[:, 2].fillna(0).values
|
|
724
|
+
|
|
716
725
|
if "BBWRANGE" in indicators_dict:
|
|
717
726
|
bbw_range = calculate_bbw_range(dataframe=dataframe, length=indicators_dict["BBWRANGE"]["length"], deviation=indicators_dict["BBWRANGE"]["deviation"])
|
|
718
727
|
dataframe["bbw_range"] = bbw_range
|
|
@@ -721,6 +730,24 @@ def apply_indicators(dataframe, indicators_dict, logger=None):
|
|
|
721
730
|
tsi_df = calculate_tsi(close=dataframe["close"], period=indicators_dict["TSI"]["period"])
|
|
722
731
|
dataframe["tsi"] = round(tsi_df, 2).fillna(0).values
|
|
723
732
|
|
|
733
|
+
if "COPPOCK" in indicators_dict:
|
|
734
|
+
coppock_df = ta.coppock(close=dataframe["close"], length=indicators_dict["COPPOCK"]["length"], fast=indicators_dict["COPPOCK"]["fast"],
|
|
735
|
+
slow=indicators_dict["COPPOCK"]["slow"])
|
|
736
|
+
dataframe["coppock"] = round(coppock_df, 2).fillna(0).values
|
|
737
|
+
|
|
738
|
+
if "ORB" in indicators_dict:
|
|
739
|
+
orb_up, orb_down = calculate_orb(dataframe=dataframe, start_time=indicators_dict["ORB"]["start_time"], end_time=indicators_dict["ORB"]["end_time"])
|
|
740
|
+
dataframe["orb_up"] = orb_up
|
|
741
|
+
dataframe["orb_down"] = orb_down
|
|
742
|
+
|
|
743
|
+
if "CHOPZONE" in indicators_dict:
|
|
744
|
+
cz_df = calculate_chop_zone(dataframe=dataframe, periods=indicators_dict["CHOPZONE"]["periods"])
|
|
745
|
+
dataframe["chop_zone_color"] = cz_df.iloc[:, 0]
|
|
746
|
+
|
|
747
|
+
if "SLOPE" in indicators_dict:
|
|
748
|
+
slope_df = calculate_slope(dataframe=dataframe, source=indicators_dict["SLOPE"]["source"])
|
|
749
|
+
dataframe[f'{indicators_dict["SLOPE"]["source"]}_slope'] = slope_df.iloc[:, 0]
|
|
750
|
+
|
|
724
751
|
return dataframe
|
|
725
752
|
|
|
726
753
|
except Exception as e:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|