如果在因子表达式中引用固定的当天收盘价?
问题
如果在因子表达式中引用固定的当天收盘价?
解答
您可以这样写: flag = “+”.join([“where(close_0 < close_{}, 1, 0)”.format(i) for i in range(1, 10)]) 具体可以参考学院文章:https://bigquant.com/community/t/topic/156604 3
如果在因子表达式中引用固定的当天收盘价?
您可以这样写: flag = “+”.join([“where(close_0 < close_{}, 1, 0)”.format(i) for i in range(1, 10)]) 具体可以参考学院文章:https://bigquant.com/community/t/topic/156604 3
更新于 2023-06-01
正在加载知识库…