plotguy 2.1.5__tar.gz → 2.1.6__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.4
2
2
  Name: plotguy
3
- Version: 2.1.5
3
+ Version: 2.1.6
4
4
  Summary: Plotguy
5
5
  Home-page: https://pypi.org/project/plotguy/
6
6
  Author: Plotguy Team
@@ -60,8 +60,13 @@ def get_all_para_combination(para_dict, backtest_attribute, df_dict, sec_profile
60
60
 
61
61
  all_para_combination[ref_code] = para_combination
62
62
 
63
- # attr_df = pd.DataFrame([backtest_attribute])
64
- # attr_df.to_parquet('attr_df.parquet')
63
+ print('5 second countdown before running backtest()')
64
+ for i in range(5):
65
+ print(5 - i)
66
+ time.sleep(1)
67
+ print(0)
68
+
69
+ print(datetime.datetime.now().strftime('%H:%M:%S'), 'start running backtest()')
65
70
 
66
71
  return all_para_combination
67
72
 
@@ -223,7 +228,7 @@ def save_backtest_result(df, para_combination_item):
223
228
 
224
229
  ######## resample to daily #############
225
230
  if 'summary_mode' in para_combination:
226
- if not para_combination['summary_mode']:
231
+ if para_combination['summary_mode']:
227
232
  eqiuty_curve_non_summary_save_path = os.path.join('', equity_curve_folder, f'{ref_code}_non-summary-intraday.parquet')
228
233
  df.to_parquet(eqiuty_curve_non_summary_save_path)
229
234
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotguy
3
- Version: 2.1.5
3
+ Version: 2.1.6
4
4
  Summary: Plotguy
5
5
  Home-page: https://pypi.org/project/plotguy/
6
6
  Author: Plotguy Team
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="plotguy",
8
- version="2.1.5",
8
+ version="2.1.6",
9
9
  author="Plotguy Team",
10
10
  author_email="plotguy.info@gmail.com",
11
11
  description="Plotguy",
File without changes
File without changes
File without changes
File without changes
File without changes