#819·rqalpha

[功能] 限价(LIMIT_ORDER)交易逻辑问题

作者: jiangfeng创建于 2023年11月8日更新于 2024年6月3日

In the stock backtest process, if the limit order mode is used and the set price is greater than the closing price (close), the system will reject the order. According to normal logic, is it reasonable to assume that the set price is between the lowest price (low) and the highest price (high), that is, hight_price >= deal_price >= low_price. After looking at the source code of the matching process, the framework is designed in this way. Is it reasonable? What are the considerations behind it?

内容来源: ricequant/rqalpha