Communitygithub.com

替代數據自訂指標

在NexusTrade上建立替代數據自訂指標(Reddit/WSB提及、國會揭露、內部人申報、新聞流),並將其整合到認證書中作為排名/傾斜/篩選訊號。

替代數據自訂指標 是什麼?

此技能指導用戶在NexusTrade平台上建立替代數據自訂指標,並將其整合到認證交易書中。替代數據被視為訊號實驗,僅影響排名、加權或篩選訊號,不得影響選擇權結構。使用者應優先使用可引導的計算會話(compute sessions)來構建多步驟資料管道,包括啟動、執行、提升指標和結束會話。每個資料來源都必須經過點數計數、覆蓋率檢查、前瞻性偏差審計,並與主要來源進行價值抽樣驗證。稀疏序列(例如僅覆蓋少數標的)只能用作傾斜或疊加,不得作為排名輸入。前瞻性偏差檢查是強制性的,每個替代數據點必須以資訊公開日期為準,而非交易或事件日期。支援四種整合形式:混合到排名、傾斜、進場篩選和確認疊加,其中動量仍為主要訊號,注意力訊號作為傾斜。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/austin-starks/Public-Portfolio-Challenge/tree/HEAD/skills/alt-data-indicators

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

替代數據自訂指標 是做什麼的?

替代數據是一個訊號實驗,而非結構實驗——它只能觸及排名/加權/篩選訊號,絕不能影響選擇權結構(參見選擇權結構規則)。現有基準是衡量標準:替代數據必須通過超越(或實質降低風險)持有相同 OOS(樣本外)閘門的認證書來贏得其地位。「指標很酷」不是結果。

使用可引導的計算會話建立(首選)

對於任何多步驟資料建構,優先使用 compute_session_start / compute_session_exec → compute_session_promote_indicator / compute_session_end:/work 會持續存在,你可以觀察每一步,並且整個歷史記錄會落實在一個提升的指標中。首先列出並結束過時的會話(compute_session_list);在長時間工作執行期間定期發送 exec。一次性 run_compute 僅適用於小型、單一查詢的工作。其他堆疊工具:dataset_to_indicator、build_signal_indicator、create_indicator、list_custom_indicators、collect_web_data、discover_sources、enrich_source、ingest_content、probe_url、sec_edgar、get_compute_status、cancel_compute_job。

每個來源都需經歷:建構 → 點數計數 + 覆蓋率檢查 → 前瞻性審計 → 與主要來源進行價值抽樣驗證 → 記錄。 平台故障需遵循錯誤協議;在一個來源上遇到兩次不同的故障後,將其擱置並繼續前進——不要讓一個損壞的管道拖垮整個行動。

絕不安裝未經驗證的指標(教訓 #10/#11)

在策略中引用任何 CustomIndicator 之前,請使用 list_custom_indicators 和來源抽樣驗證確認以下四點:

  1. 點數計數——剔除零點的死指標。
  2. 每個標的的覆蓋率需涵蓋整個標的池(所有 21 個名稱,而非樣本)。
  3. 新鮮度——最大日期;資料已過時的訊號不得驅動即時交易書。
  4. 前瞻性偏差安全——見下文。

稀疏序列規則

排名/加權表達式僅適用於在整個標的池中密集的序列。稀疏/部分覆蓋的序列(例如,一位政治人物的買入僅涵蓋 ~1/21 個名稱)只能作為傾斜或疊加,絕不能作為排名輸入——基於它建立的排名將交易零次(退化接線)。請如實告知並降低優先級;不要強行使用。

前瞻性偏差安全不容妥協(教訓 #11)

每個替代數據點的時間戳記必須是資訊公開的日期(申報/揭露/發布日期),而非交易/事件日期。國會交易帶有 STOCK 法案約 45 天的滯後——訊號必須包含該滯後。在任何回測使用之前,必須明確對每個指標進行審計。在可能的情況下,使用第二個獨立生成的建構進行交叉驗證(WSB 計數序列已通過此方式驗證——兩個獨立建構完全匹配)。回溯抓取歷史文章是可以的;回溯應用情緒模型也是可以的(請註明為限制條件);使用刪除倖存者數據也是一個需要註明的限制條件。

資料覆蓋範圍限制了認證窗口

首先檢查來源資料湖的最大月份,並將訊號的覆蓋範圍結束點視為認證窗口和可部署性的硬約束。向前滾動引擎會將折疊日曆剪裁到指標的覆蓋範圍,因此認證比較必須是日曆對齊的——在變體的剪裁日曆上執行基礎對照組(參見walk-forward-oos)。

整合形式(依覆蓋率選擇)

#整合形式位置所需覆蓋率
S1混合到排名——替代訊號與動量 ROC 結合,作為 weightIndicator / SelectTop 指標排名廣泛(大部分 21 個)
S2傾斜——動量排名;替代數據對近期有訊號的名稱進行超配/低配權重部分覆蓋可接受
S3進場篩選——僅在替代訊號在 N 天內/高於 X 門檻時開倉條件部分覆蓋可接受(重新檢查冷啟動廣度審計!)
S4確認疊加——替代訊號放鬆/收緊現有閘門(例如 VIX)條件任意

動量仍是主要訊號,注意力作為傾斜:僅靠注意力的排名表現慘淡;在動量之上疊加對數衰減的注意力傾斜則表現良好。經實證的 S1 錨定形式: weightIndicator = Multiply(ROC63, Plus(1, Log(base 10, Plus(1, IndicatorSimpleMovingAverage(21d, CustomIndicator)))))。值得變化的網格軸:SMA 窗口(10/21/42)、傾斜強度(對數 vs 線性上限)。

整合是手工構建,而非掃描(CustomIndicator 不是可掃描的類型)——透過 create_portfolio_variant(深拷貝基礎 + JSON-Pointer 修補,先 dry_run)建立變體網格,標記為手動設置(琥珀色),並在投入折疊之前,使用一次 12 個月 $25,000 的回測對每個變體進行煙霧測試(零/接近零交易 ⇒ 排名/篩選未解析 → 修復或放棄)。參見sweep-reoptimization。

來源配方

  • references/reddit-wsb-recipe.md——經實證的 Reddit Arctic Lake 提及次數計數管道。
  • references/congressional-disclosures.md——眾議院書記官 PTR 管道(全國會匯總)。
  • references/other-sources.md——內部人 Form 4、新聞流、注意力;以及 sec_edgar 範圍。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

austin-starks/Public-Portfolio-Challenge

Measure a NexusTrade options book's TRUE participation at a fixed cold-start capital base, defeating the compounded-NAV breadth illusion. Use whenever a book's headline \"holds N/21 names\" needs validating, when a live book collapses to a single name (the OSCR trap), when checking whether a SelectTop / per-name-allocation / total-budget change degraded simultaneous participation, or when a certification needs a breadth gate. Uses audit_backtest_breadth at held-fixed $25k.

austin-starks/Public-Portfolio-Challenge

The \"loudly declare\" protocol for platform, engine, or data bugs during a NexusTrade certification campaign — bugs are a first-class deliverable, not something to route around. Use whenever a NexusTrade tool errors, hangs, or returns numbers that contradict the config; whenever you're tempted to write \"probably an engine quirk\"; or when a discovered bug invalidates prior backtests and results must be quarantined. Includes the bug hand-off doc template (see references/BUG_TEMPLATE.md).

austin-starks/Public-Portfolio-Challenge

The GATED deploy + cleanup flow for a NexusTrade live book — clone the finalist, preview a delta reconcile, stage UNAPPROVED orders, verify fills. Use ONLY after the human explicitly says \"deploy + clean up\" and names a finalist. Covers the clone-before-reconcile ordering, the single-tick reconcile expectation, stale-pending-order hygiene, the signal-freshness gate, and why you can never approve orders yourself. Nothing here runs during certification.

austin-starks/Public-Portfolio-Challenge

The mandatory pre-flight contract checks (Stage S0) that must pass before trusting NexusTrade's certification engine for any strategy work. Use at the start of a bakeoff or certification campaign to prove the walk-forward engine runs end-to-end, windows don't leak, fold winners persist, and the engine doesn't fabricate values for dead/not-yet-listed names. Each check has a STOP-and-report failure mode; these runs do NOT count toward any certification minimum.

austin-starks/Public-Portfolio-Challenge

The single-touch lockbox — a final anti-overfitting holdout run once, after design freeze, on a window held out from every fold, sweep, and search. Use when finalizing a bakeoff winner before deploy, setting up the A/B/C baselines as OOS bars, or running the S1.5 gate-coherence auto-relax. Covers why looking at the lockbox twice burns it, the lockbox pass conditions, and the three baselines. The lockbox is distinct from the walk-forward OOS folds.

austin-starks/Public-Portfolio-Challenge

The hard structural constraints for the Public Portfolio Challenge momentum-LEAP options book — the spread-shape rule, the take-profit convexity-cap footgun, the affordability ladder, and the known losers not to re-test. Use whenever building or auditing an options strategy structure, checking spread-shape compliance before a certification, choosing DTE/strike rungs, or deciding whether a proposed structure change is even allowed. A violation is an automatic certification FAIL.

austin-starks/Public-Portfolio-Challenge

Orchestrate an out-of-sample certification of a NexusTrade trading strategy or live book — the master discipline behind the Public Portfolio Challenge. Use whenever you must decide PASS/FAIL on whether a portfolio holds up out of sample before deploying real money, replaying the Episode 10 runbooks, or running a \"certify my book\" / \"prove it out of sample\" / \"re-certify the fix\" task with the NexusTrade MCP connected. Pulls in walk-forward-oos, breadth-audit, sweep-reoptimization, options-structure-rules, bug-protocol, and deploy-gate.

austin-starks/Public-Portfolio-Challenge

The single entry point that executes a Public Portfolio Challenge episode or addendum runbook end-to-end, delegating each stage to the functional skills. Use when asked to run/execute/replay Episode 10, its bakeoff, or its addendum with the NexusTrade MCP connected. Reads the target runbook, pins its real artifacts (IDs, the incumbent bar), sequences the stages, and stops at the gated deploy. It orchestrates; the functional skills do the work.

austin-starks/Public-Portfolio-Challenge

Run a multi-family strategy bakeoff — the SEARCH→CERTIFY funnel that screens many candidate mechanisms down to a certified deploy winner without letting the cheap search layer issue a verdict. Use when replaying the Episode 10 bakeoff, when exploring several distinct strategy families before certifying, when deciding whether \"no deployable winner\" is even a legal conclusion, or when building the per-family certification ledger. Enforces verdict-integrity: only certification can end a campaign.

austin-starks/Public-Portfolio-Challenge

Re-optimize a NexusTrade strategy with a walk-forward SWEEP and label parameter provenance — the discipline that prevents deploying inherited knobs. Use whenever a structural change (sizing, rung depth, universe membership, DTE family, adding a rank signal) forces a re-sweep, when authoring gene_intents from get_sweep_surface, when choosing sweep over GA for a deploy cert, or when selecting the cross-fold-robust winner instead of the per-fold argmax. Invoke with the NexusTrade MCP connected.

austin-starks/Public-Portfolio-Challenge

Run and read a NexusTrade walk-forward out-of-sample study — the certification engine behind the Public Portfolio Challenge. Use when certifying a fixed portfolio (backtest_only) or re-optimizing one (sweep), when setting fold_count / anchored / validation / embargo params, when monitoring a run_walk_forward_study to completion, when reading per-fold OOS returns/Sortino/drawdown, or when a variant's fold calendar needs calendar-alignment against a base control. Invoke with the NexusTrade MCP connected.

相關技能