plotguy 1.2.11__tar.gz → 1.2.12__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.
- {plotguy-1.2.11 → plotguy-1.2.12}/PKG-INFO +1 -1
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy/__init__.py +1 -2
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy/aggregate.py +4 -0
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy/components.py +1 -1
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy/equity_curves.py +4 -1
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy/signals.py +3 -0
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy.egg-info/PKG-INFO +1 -1
- {plotguy-1.2.11 → plotguy-1.2.12}/setup.py +1 -1
- {plotguy-1.2.11 → plotguy-1.2.12}/README.md +0 -0
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy.egg-info/SOURCES.txt +0 -0
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy.egg-info/dependency_links.txt +0 -0
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy.egg-info/requires.txt +0 -0
- {plotguy-1.2.11 → plotguy-1.2.12}/plotguy.egg-info/top_level.txt +0 -0
- {plotguy-1.2.11 → plotguy-1.2.12}/setup.cfg +0 -0
|
@@ -14,6 +14,7 @@ from .signals import *
|
|
|
14
14
|
from .aggregate import *
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
|
|
17
18
|
def multi_process(function, parameters, number_of_core=8):
|
|
18
19
|
pool = mp.Pool(processes=number_of_core)
|
|
19
20
|
pool.map(function, parameters)
|
|
@@ -511,8 +512,6 @@ def cal_performance(para_combination):
|
|
|
511
512
|
else:
|
|
512
513
|
df_backtest = pd.read_csv(save_path, index_col=0) # Daraframe that may not be daily
|
|
513
514
|
|
|
514
|
-
print(df_backtest.head(3))
|
|
515
|
-
|
|
516
515
|
df_backtest['date'] = pd.to_datetime(df_backtest['date'], format='%Y-%m-%d')
|
|
517
516
|
df_backtest = df_backtest.loc[(df_backtest['date'] >= start_date) & (df_backtest['date'] <= end_date)]
|
|
518
517
|
df_backtest = df_backtest.reset_index(drop=True) # Reset Index
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import warnings
|
|
2
|
+
warnings.simplefilter("ignore", UserWarning)
|
|
3
|
+
|
|
1
4
|
from dash import Dash, dcc, html, Input, Output, State, ALL
|
|
2
5
|
import dash_daq as daq
|
|
3
6
|
from .components import *
|
|
4
7
|
import time
|
|
8
|
+
import dash_dangerously_set_inner_html
|
|
5
9
|
|
|
6
10
|
class Aggregate:
|
|
7
11
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|