|
8 | 8 | import pytz
|
9 | 9 | from datetime import datetime, timezone
|
10 | 10 | import multiprocessing
|
11 |
| -import quanttrading2 as qt |
| 11 | +import quanttrader as qt |
12 | 12 | import matplotlib.pyplot as plt
|
13 | 13 | import empyrical as ep
|
14 | 14 | """
|
@@ -71,7 +71,7 @@ def on_tick(self, tick_event):
|
71 | 71 | def parameter_search(engine, tag, target_name, return_dict):
|
72 | 72 | """
|
73 | 73 | This function should be the same for all strategies.
|
74 |
| - The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats) |
| 74 | + The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats) |
75 | 75 | """
|
76 | 76 | ds_equity, _, _ = engine.run()
|
77 | 77 | try:
|
@@ -110,7 +110,7 @@ def parameter_search(engine, tag, target_name, return_dict):
|
110 | 110 | data = pd.concat([data, data2], axis=0)
|
111 | 111 | test_end_date = eastern.localize(datetime(2020, 8, 11, 10, 0, 0))
|
112 | 112 |
|
113 |
| - dict_hist_data = qt.util.read_tick_data_txt('d:/workspace/quanttrading2/examples/tick/20200824.txt') |
| 113 | + dict_hist_data = qt.util.read_tick_data_txt('d:/workspace/quanttrader/examples/tick/20200824.txt') |
114 | 114 | data = dict_hist_data[' ESU0 FUT GLOBEX']
|
115 | 115 | data['Close'] = data['Price']
|
116 | 116 | test_start_date = eastern.localize(datetime(2020, 8, 24, 22, 0, 0))
|
|
0 commit comments