初始阶段用模拟盘跑的
2020-07-08 21:30:00.000000 diff dea: 7.9419 7.8145 cross_down: 0 2020-07-08 21:45:00.000000 diff dea: 8.0319 7.858 cross_down: 0 2020-07-08 22:00:00.000000 diff dea: 7.8114 7.8487 cross_down: 1 2020-07-08...
测试代码: macd = ta.MACD(kline,12,26,9) kline["macd_diff"]=macd["diff"] kline["macd_dea"]=macd["dea"] kline["MACD_BAR"] = macd["bar"] kline["ZERO_AXIS"] =...
2020-07-08 21:45:00.000000 diff dea: 7.9521 7.842 cross_down: 0 2020-07-08 22:00:00.000000 diff dea: 8.0108 7.8886 cross_down: 0 2020-07-08 22:15:00.000000 diff dea: 7.5497 7.7889 cross_down: 0 2020-07-08...
对DCE.j2009合约进行回测,测试日期从2020-7-7到2020-7-10,k线周期为15分钟。详细代码在后面。回测结果如下,在22:00的时候最新的crossdown标志是0,但22:15的时候倒数第二个标志位变为1.有点困惑。...
使用回测的方法测试策略时,为多个合约单独建立task,当task运行时,当满足一定条件,需要进行http请求等占用io资源比较多的操作, 在每个task使用asyncio.get_event_loop().run_in_executor()的方式进行请求操作,占用时间太多。有没有其他好的思路?
Callida aequas consequentibus ingenii faciam aliquo desciscendi videntur proclivi eAculeis fragile vitiosum iacent rapior sequens solebat adesse hominis leges fugere concessis vereTerra iocari periculum...