天驭学院 · 教学材料 · Python Quant Trading Lab
Course Notes
In "Python Quant Trading Lab" → "Backtrader 策略开发", this lesson "订单与仓位管理" builds knowledge you can apply immediately.
订单对象的Submitted、Accepted、Completed、Canceled与Rejected不同。只看持仓可能漏掉在途请求,next每根重复发单可使规模失控。 保存pending标识→通知回调按终态清除→成交后更新实际规模→拒单记原因→未知状态先对账。 本课作业:本根发送买入后下根尚未确认,策略再次看到信号,是否应重复买?设计最小状态表。
These points align with the video walkthrough—take notes as you watch.
After studying, complete the companion practice lesson to move from understanding to doing.
Key Takeaways
完成标记仅记录个人学习,不代表能力认证。练习使用教学假设或合成数据,不要求真实开户、入金或交易。