bbstrader 0.1.6__py3-none-any.whl → 0.1.7__py3-none-any.whl
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.
Potentially problematic release.
This version of bbstrader might be problematic. Click here for more details.
- bbstrader/__ini__.py +0 -1
- bbstrader/btengine/__init__.py +12 -9
- bbstrader/btengine/backtest.py +97 -702
- bbstrader/btengine/data.py +3 -1
- bbstrader/btengine/event.py +15 -9
- bbstrader/btengine/execution.py +66 -6
- bbstrader/btengine/performance.py +34 -1
- bbstrader/btengine/portfolio.py +24 -14
- bbstrader/btengine/strategy.py +1 -2
- bbstrader/metatrader/account.py +4 -4
- bbstrader/metatrader/rates.py +6 -1
- bbstrader/metatrader/trade.py +45 -32
- bbstrader/models/risk.py +39 -2
- bbstrader/trading/__init__.py +8 -1
- bbstrader/trading/execution.py +337 -928
- bbstrader/trading/strategies.py +838 -0
- bbstrader/tseries.py +603 -19
- {bbstrader-0.1.6.dist-info → bbstrader-0.1.7.dist-info}/METADATA +15 -7
- bbstrader-0.1.7.dist-info/RECORD +26 -0
- {bbstrader-0.1.6.dist-info → bbstrader-0.1.7.dist-info}/WHEEL +1 -1
- bbstrader/strategies.py +0 -681
- bbstrader/trading/run.py +0 -131
- bbstrader/trading/utils.py +0 -153
- bbstrader-0.1.6.dist-info/RECORD +0 -28
- {bbstrader-0.1.6.dist-info → bbstrader-0.1.7.dist-info}/LICENSE +0 -0
- {bbstrader-0.1.6.dist-info → bbstrader-0.1.7.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bbstrader
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.7
|
|
4
4
|
Summary: Simplified Investment & Trading Toolkit
|
|
5
5
|
Home-page: https://github.com/bbalouki/bbstrader
|
|
6
6
|
Download-URL: https://pypi.org/project/bbstrader/
|
|
@@ -36,6 +36,9 @@ Requires-Dist: matplotlib
|
|
|
36
36
|
Requires-Dist: filterpy
|
|
37
37
|
Requires-Dist: pytest
|
|
38
38
|
Requires-Dist: CurrencyConverter
|
|
39
|
+
Requires-Dist: tabulate
|
|
40
|
+
Requires-Dist: ipython
|
|
41
|
+
Requires-Dist: quantstats
|
|
39
42
|
Requires-Dist: Metatrader5
|
|
40
43
|
|
|
41
44
|
# Simplified Investment & Trading Toolkit
|
|
@@ -43,6 +46,7 @@ Requires-Dist: Metatrader5
|
|
|
43
46
|
|
|
44
47
|
[](https://bbstrader.readthedocs.io/en/latest/?badge=latest)
|
|
45
48
|
|
|
49
|
+
[Dcoumentation](https://bbstrader.readthedocs.io/en/latest/index.html)
|
|
46
50
|
## Overview
|
|
47
51
|
|
|
48
52
|
BBSTrader is a trading system suite developed for MetaTrader 5 (MT5) and IBKR platforms (comming soon), designed to offer a comprehensive set of tools for developping, backtesting, executing, and managing a wide array of trading strategies. With an emphasis on algorithmic and quantitative trading to provide traders with a robust platform for exploring and deploying sophisticated trading strategies.
|
|
@@ -50,7 +54,7 @@ BBSTrader is a trading system suite developed for MetaTrader 5 (MT5) and IBKR pl
|
|
|
50
54
|
`bbstrader` is comprised of several key modules, each focus on specific aspects of trading strategy development and execution:
|
|
51
55
|
|
|
52
56
|
- **Backtesting Module (btengine)** : Enables traders to rigorously test their trading strategies using historical data to evaluate performance before live deployment.
|
|
53
|
-
- **Trading Strategies Module**: A collection of predefined trading strategies, including ARIMA+GARCH models, Kalman Filters,
|
|
57
|
+
- **Trading Strategies Module**: A collection of predefined trading strategies, including ARIMA+GARCH models, Kalman Filters, and Simple Moving Averages, equipped with risk management through Hidden Markov Models.
|
|
54
58
|
- **MetaTrader5 Module (metatrader)**: Facilitates the direct execution of trading strategies on the MetaTrader 5 platform, supporting real-time trading across multiple financial instruments.
|
|
55
59
|
- **Modles Module**: Serves as a framework for implementing various types of financial models (risk managment models, Machine learing models etc).
|
|
56
60
|
- **Time serie Module (tseries)** designed for conducting advanced time series analysis in financial markets.
|
|
@@ -78,18 +82,22 @@ Then, you can install `bbstrader` using pip:
|
|
|
78
82
|
pip install bbstrader
|
|
79
83
|
```
|
|
80
84
|
|
|
81
|
-
|
|
82
85
|
## Examples
|
|
83
86
|
### Backtesting Module
|
|
84
87
|
```python
|
|
85
|
-
from bbstrader.
|
|
88
|
+
from bbstrader.trading.strategies import test_strategy
|
|
86
89
|
|
|
87
90
|
if __name__ == '__main__':
|
|
88
|
-
#
|
|
89
|
-
|
|
91
|
+
# Run backtesting for Stock Index Short Term Buy Only Strategy
|
|
92
|
+
test_strategy(strategy='sistbo')
|
|
93
|
+
|
|
90
94
|
```
|
|
91
95
|
### Backtesting Results
|
|
92
|
-

|
|
97
|
+

|
|
98
|
+

|
|
99
|
+

|
|
100
|
+

|
|
93
101
|
|
|
94
102
|
## Customization and Contribution
|
|
95
103
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
bbstrader/__ini__.py,sha256=lKhqaZN2fuGU2DP3oufJ_XcFlznnyNTlhklWcOaTPMY,444
|
|
2
|
+
bbstrader/tseries.py,sha256=mKVxW7RFg4BVktJaNdat6uYE9a8GclAYznh5gBF3hNg,43531
|
|
3
|
+
bbstrader/btengine/__init__.py,sha256=ijKq_Ww8n4nofmkCvPl0MksAqeK1HZGmY7W3W1zBbmk,2899
|
|
4
|
+
bbstrader/btengine/backtest.py,sha256=nH-1R3Tapim1JE9m5PFSXz8wGPqv1YiVfugaBE3u0n0,12323
|
|
5
|
+
bbstrader/btengine/data.py,sha256=B2cqkZZGIhedqMHeZBNB6RHGyeP-TFGOSlMoZq4uFUw,14007
|
|
6
|
+
bbstrader/btengine/event.py,sha256=dY2DFwRPDCEdsX7GnLiwpth73tOpnbjgqIqbkNMZu1U,8286
|
|
7
|
+
bbstrader/btengine/execution.py,sha256=noat6ZxhbBYZQ0GLFYw78enp0vZCbeoGyOok4aSjWCA,5077
|
|
8
|
+
bbstrader/btengine/performance.py,sha256=5DvrNJBreYsj4MGh93oAQK0BwVk2coZ85xX5GtciLao,11316
|
|
9
|
+
bbstrader/btengine/portfolio.py,sha256=Zr8c51SkXRcyCXxrJcsYwBJv7LnRMa32BD-GnNbQfbo,14490
|
|
10
|
+
bbstrader/btengine/strategy.py,sha256=uLQdsEzI8-86Cj7HWkL8blVFxT0sNxEcLVnkBil6ZLk,1550
|
|
11
|
+
bbstrader/metatrader/__init__.py,sha256=y4JLz05esm3PKerHMgtd3dmRpa7yUvWVuj_xOnlhXSA,261
|
|
12
|
+
bbstrader/metatrader/account.py,sha256=Zyc5aUbXQGLfVlXH50uilyDO8v3nzREX71oDp316O3M,44400
|
|
13
|
+
bbstrader/metatrader/rates.py,sha256=l40jXUbffNDw6P-OBVzHkyOrlCR2sR6HXrRiCrR7wc0,9704
|
|
14
|
+
bbstrader/metatrader/risk.py,sha256=qMDLqrwD8foKOW8jCnhwt0Lvxgtl0uwKYgRqhSbNeh8,25827
|
|
15
|
+
bbstrader/metatrader/trade.py,sha256=0AnOK_xFVpfv2GbENJ64zfVUbPtCWhijMmasDRpnLYU,58273
|
|
16
|
+
bbstrader/metatrader/utils.py,sha256=UaxsQ2myvpPGSvO_Xs3T9cuT9rwGRUhDE2YyQA4u05I,18963
|
|
17
|
+
bbstrader/models/__init__.py,sha256=6tAj9V9vgwesgPVMKznwRB3k8-Ec8Q73Di5p2UO0qlA,274
|
|
18
|
+
bbstrader/models/risk.py,sha256=Pm_WoGI-vtPW75fwo_7ptF2Br-xQYBwrAAOIgqDQmy8,15120
|
|
19
|
+
bbstrader/trading/__init__.py,sha256=3_PeIcuQ7znoCPdq8FqRmbCc0czNiernpIRkBXJZvg0,452
|
|
20
|
+
bbstrader/trading/execution.py,sha256=a7vX0cvliHkg7JUW6tiyo_LknRzGmz9k1WunigIb4Lo,17841
|
|
21
|
+
bbstrader/trading/strategies.py,sha256=jjuOugA74lXxH-YoaOAfdRjr7I910X7wQeSyc49CwjU,36856
|
|
22
|
+
bbstrader-0.1.7.dist-info/LICENSE,sha256=1EudjwwP2oTJy8Vh0e-Kzv8VZZU95y-t6c3DYhR51uc,1115
|
|
23
|
+
bbstrader-0.1.7.dist-info/METADATA,sha256=2RayIK7IyazlrlNaxo3gMzUtpPDyCIPRnNnOBVIGwbc,9658
|
|
24
|
+
bbstrader-0.1.7.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
25
|
+
bbstrader-0.1.7.dist-info/top_level.txt,sha256=Wwj322jZmxGZ6gD_TdaPiPLjED5ReObm5omerwlmZIg,10
|
|
26
|
+
bbstrader-0.1.7.dist-info/RECORD,,
|