plotguy 2.3.4__tar.gz → 2.3.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.3.4
3
+ Version: 2.3.6
4
4
  Summary: Plotguy
5
5
  Home-page: https://pypi.org/project/plotguy/
6
6
  Author: Plotguy Team
@@ -213,6 +213,8 @@ def save_backtest_result(df, para_combination_item):
213
213
  equity_mdd_dollar = 0
214
214
  equity_mdd_pct = 0
215
215
 
216
+ return_on_capital_diff = 0
217
+
216
218
  num_of_win = 0
217
219
  num_of_trade = 0
218
220
  win_rate = 0
@@ -1002,7 +1002,10 @@ class Components:
1002
1002
  year_count.append(int(total_dict[f'{year} Count']))
1003
1003
  year_count_col.append(html.Div(int(total_dict[f'{year} Count'])))
1004
1004
 
1005
- rate = total_dict[f'{year} Win Count']/total_dict[f'{year} Count']
1005
+ if total_dict[f'{year} Win Count'] > 0:
1006
+ rate = total_dict[f'{year} Win Count']/total_dict[f'{year} Count']
1007
+ else:
1008
+ rate = 0
1006
1009
  year_win_rate_col.append(html.Div( "{:.0%}".format(rate) ))
1007
1010
 
1008
1011
  year_return = total_dict[f'{year}_return']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotguy
3
- Version: 2.3.4
3
+ Version: 2.3.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.3.4",
8
+ version="2.3.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