复权价格与现金分红:回测里怎样避免重复计算
股票拆分、送股、配股和现金分红会改变价格或持有数量。如果直接使用未处理的价格序列计算收益,某些除权除息日可能出现并不代表真实财富变化的跳变。研究前应了解数据供应商怎样处理公司行为,以及字段属于原始价格还是调整价格。 调整后的历史价格有助于比较连续收益或计算特征,但它未必是当时能够实际成交的价格。模拟订单金额、最小价格单位和交易限制时,需要使用与真实市场相符的价格口径。不能用一个字段同时承担所有分析与执行用途。 如果收益序列已经通过总回报方式计入现金分红,又在账户中额外增加同一笔分红,就会重复计算收益。反过来,仅计算价格变化却没有加入持有人应得的现金,也可能低估回报。应明确每笔分红的登记、除息、支付与再投入处理规则。 有些复权序列会随着后来发生的公司行为重算整段历史。用于模型特征时,应检查这类重算是否改变过去时点可见的信息,特别是依赖绝对价格门槛的策略。保存原始价格、公司行为事件和调整规则,可以更清楚地追踪差异来源。 验证时抽取一次拆分和一次现金分红事件,逐日检查持仓数量、价格、现金和总资产变化。对于配股、合并与代码变更,核对是否需要额外付款或资产转换。遇到不完整事件数据,不应通过删除异常日期让曲线看起来连续。 最后在研究说明中明确收益属于价格收益还是含分红的总回报,执行使用哪种价格,税费如何处理。将特征计算、交易模拟和账户记账的口径分开说明,再用事件核对它们的一致性,能够减少回测中隐蔽且影响较大的计算错误。价格跳变可能不是经济损失
不同序列服务不同目的
调整因子也有时间边界
相关推荐
-
It’s not just you: Durable goods are getting less reliable, from sputtering cars to glitching smart TVs
-
48 Hours show schedule
-
Mike Love, co-founder of the Beach Boys, dies at 85
-
OpenAI countersues Apple over allegations of stealing trade secrets
-
谷歌发布新一代 TPU,开发者:真正重要的不是芯片
-
Putin's war with Ukraine shows no signs of slowing down despite Trump's efforts
- 最近发表
-
- SpaceX shares jump over 4% amid tech rally and after Musk says he will expand on Trump Account share donations
- Los Angeles hit by 5.0 magnitude earthquake, multiple aftershocks
- At least 10 killed across Ukraine; Russia downs over 1,200 drones overnight
- Macy's Thanksgiving Day Parade held in New York City after weather delay
- Billions on the line for Berkshire utility as Oregon's high court reviews wildfire claims
- Saudi and Houthi forces continue to trade strikes
- Putin's war with Ukraine shows no signs of slowing down despite Trump's efforts
- Spain's election could bring the far-right to power for 1st time in decades
- WATCH: Viral Thanksgiving story set to be adapted for small screen
- Iowa detonation did not increase levels of lead in water, EPA says
- 随机阅读
-
- AI shopping agents are having a moment, but Amazon and a growing number of sites threaten to stunt their growth
- U.S. forces disable vessel that tried to breach blockade of Iranian ports
- Southern California rattled by magnitude 5 earthquake
- Officials say no lead found in Iowa water near site of military's controlled explosion
- Melania Trump reunites seventh group of Ukrainian and Russian children with families
- 48 Hours show schedule
- College student finds golf ball-sized brain tumor: There's no way
- Macy's Thanksgiving Day Parade brings out crowds after being postponed
- Voting underway in Spain’s election that could pull Madrid closer to Trump’s Washington
- U.S. forces disable vessel that tried to breach blockade of Iranian ports
- How apps are helping Americans save money on groceries by finding discounts online
- Los Angeles hit by 5.0 magnitude earthquake, multiple aftershocks
- Dropbox 给 Cookie 审计器又配了一个“审计器”:200 多个页面一个都不能漏
- Officials say no lead found in Iowa water near site of military's controlled explosion
- Investigators team up to solve mystery of missing Iowa teen
- College student finds golf ball-sized brain tumor: There's no way
- Voting underway in Spain’s election that could pull Madrid closer to Trump’s Washington
- Sarah Mattered
- Jade Colvin is Missing
- Pregnant prisoner who escaped in New Mexico remains at large
- 搜索
-