bbstrader 0.3.3__tar.gz → 0.3.4__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.
Potentially problematic release.
This version of bbstrader might be problematic. Click here for more details.
- {bbstrader-0.3.3/bbstrader.egg-info → bbstrader-0.3.4}/PKG-INFO +4 -4
- {bbstrader-0.3.3 → bbstrader-0.3.4}/README.md +1 -1
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/__main__.py +10 -2
- bbstrader-0.3.4/bbstrader/apps/_copier.py +664 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/strategy.py +163 -90
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/core/utils.py +5 -3
- bbstrader-0.3.4/bbstrader/ibkr/utils.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/account.py +169 -29
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/analysis.py +7 -5
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/copier.py +4 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/scripts.py +15 -2
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/utils.py +64 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/models/ml.py +8 -5
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/trading/execution.py +9 -8
- {bbstrader-0.3.3 → bbstrader-0.3.4/bbstrader.egg-info}/PKG-INFO +4 -4
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader.egg-info/SOURCES.txt +2 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader.egg-info/requires.txt +2 -2
- {bbstrader-0.3.3 → bbstrader-0.3.4}/requirements.txt +2 -2
- {bbstrader-0.3.3 → bbstrader-0.3.4}/setup.py +2 -1
- {bbstrader-0.3.3 → bbstrader-0.3.4}/LICENSE +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/MANIFEST.in +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/__init__.py +0 -0
- {bbstrader-0.3.3/bbstrader/ibkr → bbstrader-0.3.4/bbstrader/apps}/__init__.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/__init__.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/backtest.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/data.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/event.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/execution.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/performance.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/portfolio.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/btengine/scripts.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/compat.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/config.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/core/__init__.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/core/data.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/core/scripts.py +0 -0
- /bbstrader-0.3.3/bbstrader/ibkr/utils.py → /bbstrader-0.3.4/bbstrader/ibkr/__init__.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/__init__.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/rates.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/risk.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/metatrader/trade.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/models/__init__.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/models/factors.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/models/nlp.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/models/optimization.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/models/portfolio.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/models/risk.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/trading/__init__.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/trading/scripts.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/trading/strategies.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/trading/utils.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader/tseries.py +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader.egg-info/dependency_links.txt +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader.egg-info/entry_points.txt +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/bbstrader.egg-info/top_level.txt +0 -0
- {bbstrader-0.3.3 → bbstrader-0.3.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bbstrader
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
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/
|
|
@@ -37,8 +37,8 @@ Requires-Dist: ipython>=8.32.0
|
|
|
37
37
|
Requires-Dist: lightgbm>=4.5.0
|
|
38
38
|
Requires-Dist: nltk>=3.9.1
|
|
39
39
|
Requires-Dist: notify-py>=0.3.43
|
|
40
|
-
Requires-Dist: numpy
|
|
41
|
-
Requires-Dist: pandas_ta
|
|
40
|
+
Requires-Dist: numpy>=1.26.0
|
|
41
|
+
Requires-Dist: pandas_ta<=0.4.67b0
|
|
42
42
|
Requires-Dist: praw>=7.8.1
|
|
43
43
|
Requires-Dist: pyfiglet>=1.0.2
|
|
44
44
|
Requires-Dist: pykalman>=0.10.1
|
|
@@ -164,7 +164,7 @@ To begin using `bbstrader`, please ensure your system meets the following prereq
|
|
|
164
164
|
* **MetaTrader 5 (MT5)**:
|
|
165
165
|
* The MetaTrader 5 platform must be installed on your system (primarily for Windows users needing live trading or direct MT5 interaction).
|
|
166
166
|
* An active trading account with a MetaTrader 5 broker. `bbstrader` currently supports:
|
|
167
|
-
* [Admirals Group AS](https://
|
|
167
|
+
* [Admirals Group AS](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, ETFs, Indices, Commodities, Futures, Forex)
|
|
168
168
|
* [Just Global Markets Ltd.](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, Crypto, Indices, Commodities, Forex)
|
|
169
169
|
* [FTMO](https://trader.ftmo.com/?affiliates=JGmeuQqepAZLMcdOEQRp) (Proprietary Firm)
|
|
170
170
|
|
|
@@ -85,7 +85,7 @@ To begin using `bbstrader`, please ensure your system meets the following prereq
|
|
|
85
85
|
* **MetaTrader 5 (MT5)**:
|
|
86
86
|
* The MetaTrader 5 platform must be installed on your system (primarily for Windows users needing live trading or direct MT5 interaction).
|
|
87
87
|
* An active trading account with a MetaTrader 5 broker. `bbstrader` currently supports:
|
|
88
|
-
* [Admirals Group AS](https://
|
|
88
|
+
* [Admirals Group AS](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, ETFs, Indices, Commodities, Futures, Forex)
|
|
89
89
|
* [Just Global Markets Ltd.](https://one.justmarkets.link/a/tufvj0xugm/registration/trader) (for Stocks, Crypto, Indices, Commodities, Forex)
|
|
90
90
|
* [FTMO](https://trader.ftmo.com/?affiliates=JGmeuQqepAZLMcdOEQRp) (Proprietary Firm)
|
|
91
91
|
|
|
@@ -65,10 +65,18 @@ def main():
|
|
|
65
65
|
sys.exit(1)
|
|
66
66
|
except KeyboardInterrupt:
|
|
67
67
|
sys.exit(0)
|
|
68
|
-
except Exception:
|
|
68
|
+
except Exception as e:
|
|
69
|
+
print(Fore.RED + f"Error: {e}")
|
|
69
70
|
sys.exit(1)
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
if __name__ == "__main__":
|
|
73
74
|
multiprocessing.freeze_support()
|
|
74
|
-
|
|
75
|
+
try:
|
|
76
|
+
main()
|
|
77
|
+
except KeyboardInterrupt:
|
|
78
|
+
print(Fore.RED + "\nExecution interrupted by user")
|
|
79
|
+
sys.exit(0)
|
|
80
|
+
except Exception as e:
|
|
81
|
+
print(Fore.RED + f"Error: {e}")
|
|
82
|
+
sys.exit(1)
|