天驭学院 · 教学材料 · Python Quant Trading Lab
Text walkthrough
Backtrader 架构
A self-paced text walkthrough, without video or audio. See the article below for worked examples and materials.
Course Notes
In "Python Quant Trading Lab" → "Backtrader 策略开发", this lesson "Backtrader 架构" builds knowledge you can apply immediately.
Backtrader把数据源、策略事件、经纪撮合和分析器分开。next中观察当前已知bar,默认市价单通常在下一bar开盘模拟成交,不能按已知当前收盘免费成交。 安装声明依赖→加载固定CSV→添加策略与佣金→记录订单通知→运行→比较独立模拟器结果与假设。 本课作业:执行backtrader_lab.py,列10次订单事件与期末权益,并解释期末还有持仓时权益与已实现利润的差别。
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
完成标记仅记录个人学习,不代表能力认证。练习使用教学假设或合成数据,不要求真实开户、入金或交易。