跳到正文
Skillpedia
分析与电子表格7.4k · #13267

retrospective

它能做什么

这个技能把股票回溯到过去的某个时刻,展示当时的走势,以及推动它变动的新闻。适合想诚实检验过去决定或假设情景的人。

适用场景

  • ✓你想知道某只股票在财报等过去事件之前的样子的时候。
  • ✓你想知道在更早的日期买入是否会成功的时候。
  • ✓你想把新闻与某段时间内股票价格走势进行对照的时候。

技能链接

https://github.com/TraderAlice/OpenAlice/blob/master/default/skills/retrospective/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/TraderAlice/OpenAlice/blob/master/default/skills/retrospective/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把 Nvidia 回溯到它上一次财报前一周,并告诉我当时的走势如何。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先检查每个价格的新鲜程度,然后只利用当时存在的信息重建情况。接着,它会把新闻与价格变动进行对照。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Retrospective / Time-Machine analysis

Rewind a name to a moment, see it as it was THEN, attribute the move to catalysts, and test whether a tradeable edge actually existed. The whole value is honesty: no lookahead (never use a price the moment didn't yet know) and no stale data (never report yesterday's close as "now").

alice analysis snapshot provides dated market summaries; the alice-analysis skill describes quantitative queries. Choose historical news sources with coverage of the period being studied.

The freshness gate — DO THIS FIRST, every time

Every snapshot/quant result carries a freshness contract: asOf, isLatestActual, staleTradingDays, and a freshnessWarning when the data does not reach the anchor. Before you state any "current" number, check it.

  • isLatestActual: false → the close you're holding is STALE. Do not call it the current price. Say "as of <date>, N trading days behind" and, for anything live, pull a realtime broker source.
  • A free vendor (yfinance) lags a day or two and a free broker tier (alpaca SIP) may not have today yet. An overnight catalyst can land in exactly that blind spot — the classic trap is reporting a flat green close while the real reaction already happened after the bar you can see.
  • snapshot --query <SYM> auto-picks the freshest source (realtime broker > delayed vendor). Prefer it over hand-fetching from a delayed vendor.

Procedure

  1. Snapshot the anchor (no lookahead). Reconstruct the moment with asOf — bars never run past it.

    alice analysis snapshot --query XLE --asOf 2026-04-03            # summary
    alice analysis snapshot --query XLE --asOf 2026-04-03 --bars 30  # + dated path
    

    Read the latest print (close, vs-prevClose, day high/low, amplitude — a sleepy vs-prevClose number hides an intraday plunge-and-recover) and levels (sma20/50, rsi14, distance from the period high — the "how far off the top" feel). The snapshot is summary-only by default (the dated path can be large); add --bars N when you actually need the per-day series. windowBars tells you how many are available.

  2. Align the catalysts to the price. Build a dated event timeline from relevant sources and compare it with the bars. Distinguish evidence of a catalyst from a coincident headline, and note material gaps in coverage.

  3. Test the hypothesis in Workspace research code. If the question needs a hypothetical trade, save the dated inputs and write an inspectable script with the native Coding Agent. Pin the source and evaluation window. State signal timing, executable entry/exit prices, position sizing, fees and slippage explicitly. Do not use a closing-price signal to assume an executable fill at that same close. Exclude pre-entry price extremes from holding-period MFE/MAE. Save the script, inputs and results together so the assumptions can be changed and the calculation reproduced.

  4. Map the index to dates when you need the path in a quant script. Most reads are covered by snapshot; when you must compute over the series and want the date axis, add --dates to alice analysis quant (it returns dates[barId] for one interval, or dates["barId@interval"] when the same barId appears at multiple intervals, so you can map each value to its day).

Write it down honestly

A retro is only worth as much as its weakest assumption. State, every time:

  • the asOf and that the analysis used no later data,
  • the source + freshness of every "current" number,
  • what you couldn't see (feeds didn't cover it / cookie-gated / SIP didn't have the latest day) — name the gap rather than paper over it.

The failure mode this skill exists to prevent: a confident call built on a stale or future-leaking price. When in doubt, distrust the data before the market.

常见问题

它会使用那个日期之后的价格吗?

不会。技能规定,绝不能使用在那一时刻尚未知道的价格。

为什么要先检查新鲜程度?

免费数据可能延迟一两天,因此看似最新的收盘价可能已经过时。

它能检验假设的买入点吗?

可以。它可以检查在更早的时点买入是否会成功。

详情

作者的原始描述

Subjective retrospective / time-machine analysis: rewind a name to a past point, reconstruct what it looked like THEN (no future knowledge), align the news catalysts to the price path, and pressure-test "if I'd entered there, would it have worked?". Use when the question is about a past moment or a hypothetical entry: "rewind XLE to early April", "what did NVDA look like before earnings", "if we'd bought energy after the Iran headline, easy money?", "replay the SMH spike — policy or earnings?", "was there an entry signal at the time", "would an 8% trailing stop have saved me", "event study on

repo: TraderAlice/OpenAlice

热度

GitHub 星标
7.4k
排名
#13267
许可证
AGPL-3.0
更新时间
2026/10/23

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能