操盘大哥的交易组件
先装talib的C库,再用pip装依赖。
修改 mysql 配置文件 /etc/my.cnf.d/server.cnf ,增加如下配置:
[mysqld]
wait_timeout=31536000
interactive_timeout=31536000
重启mysql服务
trader
is offered under the Apache 2 license.
交易模块
License: Apache License 2.0
(venv) [root@iZbp13hsmske2ra9ukl7qnZ trader]# python trader/main.py
Big Brother is watching you!
used config file: /root/.config/trader/config.ini
log stored in: /root/.cache/trader/log
pid file: /root/.cache/trader/trader.pid
Traceback (most recent call last):
File "/root/trader/trader/main.py", line 77, in
TradeStrategy(name='大哥2.2').run()
File "/root/trader/trader/strategy/brother2.py", line 45, in init
self.__strategy = Strategy.objects.get(name=name)
File "/root/trader/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/root/trader/venv/lib/python3.10/site-packages/django/db/models/query.py", line 649, in get
raise self.model.DoesNotExist(
panel.models.DoesNotExist: Strategy matching query does not exist.
大佬您好,阅读brother2.py代码时,对于strategy.param_set中的BreakPeriod,AtrPeriod等参数是如何取值的,始终没有看明白,希望您百忙之中可以答疑,不胜感激!
对于这些代码,不知道如何配置,是需要trade和**控制台什么都下载吗,下载后是软件形式还是什么,是需要有python和c++多种形式吗
安装好依赖后,我尝试使用 python trader/main.py
运行程序,结果报错:
Traceback (most recent call last):
File "/root/trader-master/trader/main.py", line 27, in <module>
django.setup()
File "/root/trader-master/lib/python3.11/site-packages/django/__init__.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/trader-master/lib/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__
self._setup(name)
File "/root/trader-master/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/trader-master/lib/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/imvolte/py3113/py/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'dashboard'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.