New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在sys_simulation的一处BUG #87

merz9b opened this Issue Apr 11, 2017 · 1 comment


None yet
2 participants

merz9b commented Apr 11, 2017

在 mod\rqalpha_mod_sys_simulation\signal_broker.py的81行:

        if isinstance(order.type, LimitOrder):
            deal_price = order.frozen_price

order.type是枚举变量,这样会导致这一判断一直是False,造成虽然指定了LimitOrder的价格却还是按照close price成交。


from rqalpha.model.order import ORDER_TYPE
        if order.type == ORDER_TYPE.LIMIT:
            deal_price = order.frozen_price



This comment has been minimized.


wh1100717 commented Apr 11, 2017

@merz9b 确实是 Bug

方便的话,可以提交个PR 我们会Merge 到Develop分支

@wh1100717 wh1100717 added the bug label Apr 11, 2017

@merz9b merz9b closed this Apr 11, 2017

@wh1100717 wh1100717 added the fixed label Apr 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment