量化研究先问时间:这条信息当时是否已经可见
一条数据可能有多个日期
财务数据所对应的季度结束日,并不是市场参与者能够看到它的日期。企业通常在之后发布报告,数据供应商还需要采集和处理。若回测直接从季度结束日开始使用最终报表数字,就把未来信息带到了过去,可能显著夸大策略表现。
为数据建立可用时间
研究表除了数值与统计期间,还应保存首次公告时间、修订时间和本地入库时间。构造某个交易时点的信号时,只能使用截至该时点已实际可获得的数据版本。公告发生在收盘后时,最早可执行时间通常还要推迟到后续交易时段。
有些历史数据库只保留最新修订值。此时即使公告日期正确,也可能把后来更正的数字用于旧时点。应优先寻找带历史版本的数据;无法获得时,需要明确标注限制,并评估该字段是否适合用于严格的历史验证。
从交易决策反推数据截点
假设模型每天收盘后计算信号、下一交易日开始执行,研究程序应明确收盘数据何时完整、异常值何时修复,以及订单何时提交。不能一边使用当天最终收盘价计算信号,一边默认所有交易都能以同一个收盘价成交。
可以抽取几天数据做人工追踪:从原始公告或交易记录开始,列出采集、清洗、特征计算和下单各环节时间。对跨时区资产统一保存时区信息,节假日则使用对应市场日历。这种逐条核对比仅检查表格是否为空更容易发现时间错位。
最终在研究报告中写明数据可用规则与执行延迟,并用更保守的延迟假设做敏感性检查。如果稍微延后使用信息就使结果消失,说明策略可能依赖难以实现的速度条件。时间边界应作为数据契约长期维护,而不是回测完成后的补充说明。
-
Swingerclub: Wie ein Paar im Sex-Club seine Wünsche auslebt – »Habe mich so begehrt gefühlt!« - DER SPIEGEL3 injured in stabbing attack at South Korean middle schoolCNA Correspondent - Hong Kong’s Tai Po fire: Who knew, who failed, who pays?His job is to make children laugh, even when he is sometimes fighting his own battlesMotorists interested in 5G on toll roads — Avtodor companyGOT7's Mark Tuan announces plans to marry in handwritten letter to fansDuterte's war on drugs: Families of victims gather as ICC trial beginsHis job is to make children laugh, even when he is sometimes fighting his own battlesDiljit Dosanjh at Mumbai concert: Even if you throw bombs, I have only love to giveGOT7's Mark Tuan announces plans to marry in handwritten letter to fans
下一篇:FSB thwarts terrorist attacks prepared by teenagers in Moscow, Donetsk, Kursk
- ·Lakshmi Venu accuses father Venu Srinivasan of TVS Motor of wrongfully depriving her of equal share in family properties
- ·CNA Correspondent - Hong Kong’s Tai Po fire: Who knew, who failed, who pays?
- ·Working mothers already feel stretched. What happens when one child becomes two?
- ·Malaysia is ageing almost as quickly as Japan. Is it ready for the challenge?
- ·Press review: Middle East considers Russia's security concept as US tariffs draw criticism
- ·Malaysia is ageing almost as quickly as Japan. Is it ready for the challenge?
- ·Prabowo alleges Indonesia’s former police chief wanted to kill him in treason plot
- ·Konditori opens a second outlet at Joo Chiat, featuring a sit-down cafe and exclusive bakes
- ·Südafrika: Flusspferd tötet Touristin - DER SPIEGEL
- ·Thai Princess Sirivannavari’s fashion label designs uniforms for The Langham Bangkok
- ·Top Vietnam court commutes 'thousands' of death sentences: State media
- ·Malaysia PM postpones Bangladesh visit over host's political unrest
- ·Saying it as it is: on the Supreme Court’s directions to the FSSAI
- ·Malaysia PM postpones Bangladesh visit over host's political unrest
- ·3 injured in stabbing attack at South Korean middle school
- ·Malaysia PM postpones Bangladesh visit over host's political unrest
- ·新能源大基地-索比光伏网
- ·Making a difference for healthier communities, every day - CNA
- ·Sentosa’s giant inflatable for BTS The City Arirang
- ·What does gut health have to do with your skin?
- ·ED files supplementary prosecution complaint against Satyendar Jain, 10 others
- ·Duterte rejects crimes against humanity charges at landmark ICC trial
- ·Pakistan PM Shehbaz Sharif to visit Russia, hold talks with Putin
- ·We were on a family outing when the 2004 tsunami struck. I've never forgotten that day
- ·₹8.55-crore benami banking racket unearthed in Telangana’s Adilabad; accounts opened on workers’ names
- ·3 injured in stabbing attack at South Korean middle school
- ·Missed the rook endgame: Gukesh after first defeat in World Championship
- ·‘I aim to hike to Everest Base Camp before 70’
- ·Commentary: New US tariff threat seeks to ramp up pressure on trading partners – will it work?
- ·Working mothers already feel stretched. What happens when one child becomes two?
- ·Nationalmannschaft: DFB-Team verpatzt WM-Stresstest auf argentinischem Rumpelrasen - DER SPIEGEL
- ·India's Tata Sons reportedly approves public listing plan amid boardroom friction
- ·Work It Podcast - Ask Work It: How to show initiative at a new job without looking like a know-it-all
- ·Commentary: Historic Xi-Trump-Putin summit reveals an unsettling truth about great power diplomacy
- ·Gukesh vs Sindarov: the youngest-ever battle for the chess crown | In Focus Podcast
- ·Money Talks - How to build a resilient portfolio that can survive market shocks
