Skip to content

Commit 4561d57

Browse files
committed
rename qt
1 parent 6c34a44 commit 4561d57

12 files changed

+22
-22
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
|5 | [MCMC Linear Regression](./notebooks/mcmc_linear_regression.py) |[link](https://letianzj.github.io/mcmc-linear-regression.html)|
1818
|6 | [Kalman Filter Linear Regression](./notebooks/kalman_filter_linear_regression.py) |[link](https://letianzj.github.io/kalman-filter-linear-regression.html)|
1919
|7 | [Tensorflow Linear Regression](./notebooks/tensorflow_linear_regression.ipynb) |[link](https://letianzj.github.io/tensorflow-linear-regression.html)|
20-
|8 | [quanttrading2](https://github.com/letianzj/quanttrading2) |[link](https://letianzj.github.io/quanttrading-backtest.html)|
20+
|8 | [quanttrader](https://github.com/letianzj/quanttrader) |[link](https://letianzj.github.io/quanttrading-backtest.html)|
2121
|9 | [Mean Reversion](./notebooks/mean_reversion.py) |[link](https://letianzj.github.io/mean-reversion.html)|
2222
|10 | [Cointegration and Pairs Trading](./notebooks/cointegration_pairs_trading.py) |[link](https://letianzj.github.io/cointegration-pairs-trading.html)|
2323
|11 | [Kalman Filter and Pairs Trading](./notebooks/pairs_trading_kalman_filter.py) |[link](https://letianzj.github.io/kalman-filter-pairs-trading.html)|
@@ -32,7 +32,7 @@
3232
|20 | [Volume Factor Evaluation Alphalens](./notebooks/volume_factor_alphalens.ipynb) | |
3333
|21 | [Reinforcement Backtest](./backtest/trading_env.py) | |
3434
|22 | [Reinforcement Option Pricing](./ml/american_option.ipynb) |[link](https://medium.com/@letian.zj/option-pricing-using-reinforcement-learning-ad2ddca7735b)|
35-
|23 | [Irregular Interval EMA](https://github.com/letianzj/quanttrading2/blob/master/examples/strategy/moving_average_cross_strategy.py) |[link](https://letianzj.github.io/exponential-moving-average.html)|
35+
|23 | [Irregular Interval EMA](https://github.com/letianzj/quanttrader/blob/master/examples/strategy/moving_average_cross_strategy.py) |[link](https://letianzj.github.io/exponential-moving-average.html)|
3636

3737
```python
3838

backtest/bollinger_bands.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from datetime import datetime, timezone
1010
import multiprocessing
1111
import talib
12-
import quanttrading2 as qt
12+
import quanttrader as qt
1313
import matplotlib.pyplot as plt
1414
import empyrical as ep
1515
import pyfolio as pf
@@ -74,7 +74,7 @@ def on_tick(self, tick_event):
7474
def parameter_search(engine, tag, target_name, return_dict):
7575
"""
7676
This function should be the same for all strategies.
77-
The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats)
77+
The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats)
7878
"""
7979
ds_equity, _, _ = engine.run()
8080
try:

backtest/buy_hold.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytz
88
from datetime import datetime, timezone
99
import multiprocessing
10-
import quanttrading2 as qt
10+
import quanttrader as qt
1111
import matplotlib.pyplot as plt
1212
import empyrical as ep
1313
import pyfolio as pf

backtest/dual_thrust.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from datetime import datetime, timezone
1818
import multiprocessing
1919
import talib
20-
import quanttrading2 as qt
20+
import quanttrader as qt
2121
import matplotlib.pyplot as plt
2222
import empyrical as ep
2323
import pyfolio as pf
@@ -79,7 +79,7 @@ def on_tick(self, tick_event):
7979
def parameter_search(engine, tag, target_name, return_dict):
8080
"""
8181
This function should be the same for all strategies.
82-
The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats)
82+
The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats)
8383
"""
8484
ds_equity, _, _ = engine.run()
8585
try:

backtest/dynamic_breakout_ii.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from datetime import datetime, timezone
1515
import multiprocessing
1616
import talib
17-
import quanttrading2 as qt
17+
import quanttrader as qt
1818
import matplotlib.pyplot as plt
1919
import empyrical as ep
2020
import pyfolio as pf
@@ -82,7 +82,7 @@ def on_tick(self, tick_event):
8282
def parameter_search(engine, tag, target_name, return_dict):
8383
"""
8484
This function should be the same for all strategies.
85-
The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats)
85+
The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats)
8686
"""
8787
ds_equity, _, _ = engine.run()
8888
try:

backtest/ghost_trader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from datetime import datetime, timezone
1515
import multiprocessing
1616
import talib
17-
import quanttrading2 as qt
17+
import quanttrader as qt
1818
import matplotlib.pyplot as plt
1919
import empyrical as ep
2020
import pyfolio as pf
@@ -130,7 +130,7 @@ def on_tick(self, tick_event):
130130
def parameter_search(engine, tag, target_name, return_dict):
131131
"""
132132
This function should be the same for all strategies.
133-
The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats)
133+
The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats)
134134
"""
135135
ds_equity, _, _ = engine.run()
136136
try:

backtest/ma_cross.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pytz
99
from datetime import datetime, timezone
1010
import multiprocessing
11-
import quanttrading2 as qt
11+
import quanttrader as qt
1212
import matplotlib.pyplot as plt
1313
import empyrical as ep
1414
"""
@@ -71,7 +71,7 @@ def on_tick(self, tick_event):
7171
def parameter_search(engine, tag, target_name, return_dict):
7272
"""
7373
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)
7575
"""
7676
ds_equity, _, _ = engine.run()
7777
try:
@@ -110,7 +110,7 @@ def parameter_search(engine, tag, target_name, return_dict):
110110
data = pd.concat([data, data2], axis=0)
111111
test_end_date = eastern.localize(datetime(2020, 8, 11, 10, 0, 0))
112112

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')
114114
data = dict_hist_data[' ESU0 FUT GLOBEX']
115115
data['Close'] = data['Price']
116116
test_start_date = eastern.localize(datetime(2020, 8, 24, 22, 0, 0))

backtest/ma_double_cross.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytz
88
from datetime import datetime, timezone
99
import multiprocessing
10-
import quanttrading2 as qt
10+
import quanttrader as qt
1111
import matplotlib.pyplot as plt
1212
import empyrical as ep
1313
import pyfolio as pf
@@ -58,7 +58,7 @@ def on_tick(self, tick_event):
5858
def parameter_search(engine, tag, target_name, return_dict):
5959
"""
6060
This function should be the same for all strategies.
61-
The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats)
61+
The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats)
6262
"""
6363
ds_equity, _, _ = engine.run()
6464
try:

backtest/mebane_faber_taa.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pandas as pd
99
import pytz
1010
from datetime import datetime, timezone
11-
import quanttrading2 as qt
11+
import quanttrader as qt
1212
import matplotlib.pyplot as plt
1313
import empyrical as ep
1414
import pyfolio as pf

backtest/portfolio_optimization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pandas as pd
99
import pytz
1010
from datetime import datetime, timezone
11-
import quanttrading2 as qt
11+
import quanttrader as qt
1212
from scipy.optimize import minimize
1313
import matplotlib.pyplot as plt
1414
import empyrical as ep

backtest/r_breaker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from datetime import datetime, timezone
2828
import multiprocessing
2929
import talib
30-
import quanttrading2 as qt
30+
import quanttrader as qt
3131
import matplotlib.pyplot as plt
3232
import empyrical as ep
3333
import pyfolio as pf
@@ -100,7 +100,7 @@ def on_tick(self, tick_event):
100100
def parameter_search(engine, tag, target_name, return_dict):
101101
"""
102102
This function should be the same for all strategies.
103-
The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats)
103+
The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats)
104104
"""
105105
ds_equity, _, _ = engine.run()
106106
try:

backtest/turtle.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from datetime import datetime, timezone
1919
import multiprocessing
2020
import talib
21-
import quanttrading2 as qt
21+
import quanttrader as qt
2222
import matplotlib.pyplot as plt
2323
import empyrical as ep
2424
import pyfolio as pf
@@ -94,7 +94,7 @@ def on_tick(self, tick_event):
9494
def parameter_search(engine, tag, target_name, return_dict):
9595
"""
9696
This function should be the same for all strategies.
97-
The only reason not included in quanttrading2 is because of its dependency on pyfolio (to get perf_stats)
97+
The only reason not included in quanttrader is because of its dependency on pyfolio (to get perf_stats)
9898
"""
9999
ds_equity, _, _ = engine.run()
100100
try:

0 commit comments

Comments
 (0)