ricequant / rqalpha

A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
http://rqalpha.io
Other
5.36k stars 1.61k forks source link

函数handle_bar没有执行。为什么呢 #326

Closed ghost closed 6 years ago

ghost commented 6 years ago

rqalpha run -f ./rqalpha/examples/buy_and_hold.py -d ./rqalpha/bundle/ -s 2016-06-01 -e 2016-12-01 --account stock 100000 --benchmark 000300.XSHG --plot 运行这个策略时,函数handle_bar没有执行。为什么呢

Cuizi7 commented 6 years ago

尝试在 handle_bar 中加入 print 进行调试,并加上参数 -l debug。

ghost commented 6 years ago

@Cuizi7 这个函数是怎么被调用的?

Cuizi7 commented 6 years ago

可以尝试用单步调试等方法查看下rqa是如何运行的。