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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sysstra
3
- Version: 0.1.2.3
3
+ Version: 0.1.2.4
4
4
  Summary: Official Python Library for Sysstra Algo Trading
5
5
  Home-page: https://github.com/sysstra/sysstra
6
6
  Author: Anurag Singh Kushwah
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="sysstra",
5
- version="0.1.2.3",
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sysstra
3
- Version: 0.1.2.3
3
+ Version: 0.1.2.4
4
4
  Summary: Official Python Library for Sysstra Algo Trading
5
5
  Home-page: https://github.com/sysstra/sysstra
6
6
  Author: Anurag Singh Kushwah
File without changes
File without changes
File without changes
File without changes