virgo-modules 0.2.7__py3-none-any.whl → 0.2.8__py3-none-any.whl

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.

Potentially problematic release.


This version of virgo-modules might be problematic. Click here for more details.

@@ -907,7 +907,7 @@ class produce_plotly_plots:
907
907
  self.aws_credentials = aws_credentials
908
908
  self.return_figs = return_figs
909
909
 
910
- def plot_asset_signals(self, feature_list,spread_column, date_intervals = False):
910
+ def plot_asset_signals(self, feature_list,spread_column, date_intervals = False, look_back = 800):
911
911
  """
912
912
  Display signals and hmm states over closing prices and feature time series
913
913
 
@@ -923,6 +923,8 @@ class produce_plotly_plots:
923
923
  """
924
924
  result_json_name = 'panel_signals.json'
925
925
  df = self.data_frame
926
+ if look_back:
927
+ df = df.iloc[-look_back:,:]
926
928
  ma1 = self.settings['settings'][spread_column]['ma1']
927
929
  ma2 = self.settings['settings'][spread_column]['ma2']
928
930
  hmm_n_clust = self.settings['settings']['hmm']['n_clusters']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo-modules
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: data processing and statistical modeling using stock market data
5
5
  Home-page: https://github.com/miguelmayhem92/virgo_module
6
6
  Author: Miguel Mayhuire
@@ -5,11 +5,11 @@ virgo_modules/src/backtester.py,sha256=OhiWyzDX0PthXGuhChyWUmDN3cLkzVYe95zS4nGti
5
5
  virgo_modules/src/edge_utils.py,sha256=XN2oEOwADXF9IGNUGx0Ai8B1yDAiU2WDateLnEJh5FE,14243
6
6
  virgo_modules/src/hmm_utils.py,sha256=fFWxmh9q3rjiKRHnxNk9k7O4fDrxVxkmp3pbpLvktjc,21116
7
7
  virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
8
- virgo_modules/src/re_utils.py,sha256=f0gPyCZFVMPR8BpJcnIPA3jpgIPeP--t1KiDE9yLDDE,73404
8
+ virgo_modules/src/re_utils.py,sha256=3epzYRujEK7DZYd3ca8q9F-fWl8UAZjUuTfKuC1t2Hs,73485
9
9
  virgo_modules/src/ticketer_source.py,sha256=joJUoaga5M0OOAiOJ8TFR_sGd6eckbHlN1fxLIklXSM,98785
10
10
  virgo_modules/src/transformer_utils.py,sha256=LLwKYZRq5hrPVimnq3taD0Lh-q3Bq21fy1I4Icbnxi8,7677
11
- virgo_modules-0.2.7.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
12
- virgo_modules-0.2.7.dist-info/METADATA,sha256=DqDYNp2TLuzgrtLKe8LVMw7xqjQ7l4aKgp4k8gbfv_E,1428
13
- virgo_modules-0.2.7.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
14
- virgo_modules-0.2.7.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
15
- virgo_modules-0.2.7.dist-info/RECORD,,
11
+ virgo_modules-0.2.8.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
12
+ virgo_modules-0.2.8.dist-info/METADATA,sha256=qt74JQ2qmy78BrVRmcNbYMyAGyet5sT_ccvlKnWImDA,1428
13
+ virgo_modules-0.2.8.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
14
+ virgo_modules-0.2.8.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
15
+ virgo_modules-0.2.8.dist-info/RECORD,,