zhangshouguo
zhangshouguo
这个问题解决了么。我今天在linux(Debian 9)下python版本2.7和3.5都试了,同样的错误
又重新安装了一遍Docker,这次出来下面提示: root@c8dad2556de1:~# python Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 29 2018, 16:14:56) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from hikyuu.interactive.interactive import...
在家中Linux机器上Docker安装和非Docker出现如下提示: root@1d5ef042c91f:~# python Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 29 2018, 16:14:56) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from hikyuu.interactive.interactive import...
再运行,出现 root@8d6d72eeef09:~# python Python 2.7.15 |Anaconda custom (64-bit)| (default, May 1 2018, 23:32:55) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from hikyuu.interactive.interactive import...
开盘撮合已经弄好了,--signal 回测时指定使用信号模式,然后用限价单。data=QA.QAFetch.QAQuery_Advance.QA_fetch_stock_day_adv(code,'2013-01-01',Now) df=data.data open_price=df['open'][-1] order_shares(buy_stock, 300,style=LimitOrder(open_price)) 回测算是弄好了,能讲解下使用rqalpha在本地进行模拟交易或实盘交易的大致步骤么?
另外,build.sh里Anaconda 安装包的URL定清华的 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/下载会快些
已经确认本地数据源已有数据,日线open_auction执行正常 $ cat test_min.py # 可以自己import我们平台支持的第三方python模块,比如pandas、numpy等。 import talib # 在这个方法中编写任何的初始化逻辑。context对象将会在你的算法策略的任何方法之间做传递。 def init(context): # 实时打印日志 logger.info("RunInfo: {}".format(context.run_info)) print("运行模式:",context.run_info.run_type) # before_trading此函数会在每天策略交易开始前被调用,当天只会被调用一次 def before_trading(context): logger.info("盘前执行函数,当前时间:",context.now) # 你选择的证券的数据更新将会触发此段逻辑,例如日或分钟历史数据切片或者是实时数据切片更新 def open_auction(context, bar_dict): logger.info("开盘集合竞价时执行函数,当前时间:",context.now) def handle_bar(context,...
只使用rqalpha自带数据也报错,看来是rqalpha的bug,不是我自己的数据源模块有问题 (base) PS D:\> rqalpha mod disable xtdata xtquant文档地址:http://dict.thinktrader.net/nativeApi/start_now.html (base) PS D:\> rqalpha run -f test.py -s 2025-03-01 -e 2025-03-03 --frequency 1d --benchmark 000300.XSHG [2025-03-03 00:00:00.000000] INFO: user_log: RunInfo: RunInfo({'start_date':...
在一台linux机器上: zhangshoug@r810x01:~$ uname -a Linux r810x01 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux zhangshoug@r810x01:~$ python --version Python 3.6.5 :: Anaconda, Inc. zhangshoug@r810x01:~$ rqalpha version...
(base) zhangshoug@devuan:~$ python --version Python 3.8.8 (base) zhangshoug@devuan:~$ rqalpha version Current Version: 5.5.0 (base) zhangshoug@devuan:~$ rqalpha run -f test.py -s 2025-03-01 -e 2025-03-03 --frequency 1d --benchmar 000300.XSHG Usage: rqalpha run...