Closed JL-ghcoder closed 40 minutes ago
想利用rqalpha的框架搭配rqdatac来完成因子收益的检验,这要求要同时进行多空
但我发现似乎没有A股的做空接口(虽然我知道这个市场不能做空) order_target_percent()等函数在开负数仓位的时候都会先确保仓位里有相关股票才能卖出
有没有什么办法可以在不影响其他功能的前提下,快速引入这个做空的接口呢?
您好,您的邮件已收到,我会尽快给您回复。 祝您工作顺利,生活愉快!
命令行加入 --short-stock 参数或者 config 中加入 {"mod": {"sys_accounts": {"validate_stock_position": False}}}即可卖空。不过因子检验更推荐您看看我司的 RQFactor 产品。
想利用rqalpha的框架搭配rqdatac来完成因子收益的检验,这要求要同时进行多空
但我发现似乎没有A股的做空接口(虽然我知道这个市场不能做空) order_target_percent()等函数在开负数仓位的时候都会先确保仓位里有相关股票才能卖出
有没有什么办法可以在不影响其他功能的前提下,快速引入这个做空的接口呢?