天驭学院 · 教学材料 · Python Quant Trading Lab
Course Notes
In "Python Quant Trading Lab" → "Backtrader 策略开发", this lesson "SMA 策略回测" builds knowledge you can apply immediately.
SMA回测的交付包括输入哈希、参数、成交约定、成本、现金和持仓,不以净值上涨作为代码正确性标准。 先跑无依赖自检→跑两套引擎→核订单数量/费用/期末权益→检查前缀因果性→保留差异报告。 本课作业:对固定合成输入比较research_lab和Backtrader;允许1e−6浮点差,写二者共同未覆盖的三项。
These points align with the video walkthrough—take notes as you watch.
After studying, complete the practice tasks below to move from understanding to doing.
SMA回测的交付包括输入哈希、参数、成交约定、成本、现金和持仓,不以净值上涨作为代码正确性标准。 先跑无依赖自检→跑两套引擎→核订单数量/费用/期末权益→检查前缀因果性→保留差异报告。 本课作业:对固定合成输入比较research_lab和Backtrader;允许1e−6浮点差,写二者共同未覆盖的三项。
Record your work and compare the reference result. Self-checks are not verified competence.
完成标记仅记录个人学习,不代表能力认证。练习使用教学假设或合成数据,不要求真实开户、入金或交易。