GithubHelp home page GithubHelp logo

trader's Introduction

trader

操盘大哥的交易组件

INSTALL

先装talib的C库,再用pip装依赖。

修改 mysql 配置文件 /etc/my.cnf.d/server.cnf ,增加如下配置:

[mysqld]

wait_timeout=31536000

interactive_timeout=31536000

重启mysql服务

License

trader is offered under the Apache 2 license.

trader's People

Contributors

timercrack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trader's Issues

关于strategy的初始参数问题

大佬您好,阅读brother2.py代码时,对于strategy.param_set中的BreakPeriod,AtrPeriod等参数是如何取值的,始终没有看明白,希望您百忙之中可以答疑,不胜感激!

dashboard 可以分享下吗

安装好依赖后,我尝试使用 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'

No module named 'dashboard',我留意到似乎需要这个文件夹:
image

是不是缺少大哥2.2策略?

(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.

如何使用

对于这些代码,不知道如何配置,是需要trade和**控制台什么都下载吗,下载后是软件形式还是什么,是需要有python和c++多种形式吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.