天驭学院 · 教学材料 · Python Quant Trading Lab
Course Notes
In "Python Quant Trading Lab" → "Python 金融数据处理", this lesson "OHLCV 特征工程" builds knowledge you can apply immediately.
OHLCV特征应对应决策时点。收益率、滚动均值与波动率使用截至当时的数据;未来收益可作标签,但不能与特征混用。 先清洗→算close.pct_change→滚动窗口→标可用时间→分开特征与标签→用前缀不变性检测未来依赖。 本课作业:close为100/102/101,求两项有效收益;说明shift(-1)放入观察特征为什么危险。
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
完成标记仅记录个人学习,不代表能力认证。练习使用教学假设或合成数据,不要求真实开户、入金或交易。