Communitygithub.com

オルタナティブデータカスタムインジケーター (NexusTrade)

NexusTradeでReddit/WSB言及、議員取引開示、インサイダー申請、ニュースフローなどのオルタナティブデータからカスタムインジケーターを構築し、認定ポートフォリオにランク・傾斜・フィルターとして組み込むためのスキル。戦略への代替データ追加、Computeセッションによるインジケーター構築、先読み安全性やカバレッジの監査、データ系列の密度評価に使用。NexusTrade MCP接続が必要。

オルタナティブデータカスタムインジケーター (NexusTrade) とは?

このスキルは、NexusTradeプラットフォーム上でオルタナティブデータ(Reddit/WSB言及数、議会取引開示、インサイダー提出書類、ニュースフローなど)を活用したカスタムインジケーターを構築・検証・統合するための包括的なワークフローを提供します。主に compute_session を使用した多段階データ構築(Computeセッションの作成、実行、プロモート、終了)を推奨し、各ステップで結果を確認しながら進めることができます。未検証のインジケーターを戦略に組み込むことを禁止し、ポイント数、全銘柄カバレッジ(21銘柄すべて)、鮮度、先読み安全性の4項目を必ず確認するよう要求します。特に、データが疎(一部の銘柄のみ)の場合はランク入力として使えず、傾斜やオーバーレイとしてのみ利用可能です。また、先読み安全性の監査は必須であり、データが公表日ではなく取引日を基準にしている場合に発生するルックアヘッドバイアスを検出・防止します。統合方法はランクへのブレンド、傾斜、エントリーフィルター、確認オーバーレイの4種類から選択でき、カバレッジに応じて適切な形状を選びます。各バリアントは必ず12ヶ月25000ドルのバックテストでスモークテストしてから本格的な検証に進みます。

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

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

オルタナティブデータカスタムインジケーター

オルタナティブデータはSIGNAL実験であり、構造実験ではない — ランク/ウェイト/フィルターのシグナルにのみ影響し、オプション構造には影響しません(options-structure-rules参照)。比較対象は現状のベンチマークであり、オルタナティブデータは同じOOSゲートを通過した認定ポートフォリオを打ち負かす(または実質的にリスクを低減する)ことで、その価値を証明しなければなりません。「このインジケーターはすごい」というのは結果ではありません。

制御可能なComputeセッションで構築(推奨)

複数ステップのデータ構築には compute_session_start / compute_session_exec → compute_session_promote_indicator / compute_session_end を推奨します:/work は永続化され、各ステップを確認でき、履歴全体が1つのプロモートされたインジケーターに集約されます。まず古いセッションをリストして終了し(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。

すべてのソースで以下の手順を実施:構築 → ポイント数+カバレッジ確認 → 先読み監査 → 一次ソースとの値スポットチェック → 記録。プラットフォーム障害はバグプロトコルに従い、同一ソースで2回の明確な障害が発生した場合は中断して次に進みます — 1つのパイプラインの不具合でキャンペーン全体が停滞しないようにします。

未検証のインジケーターを絶対に組み込まない(教訓 #10/#11)

CustomIndicator を戦略で参照する前に、list_custom_indicators とソースのスポットチェックで以下の4項目をすべて確認します:

  1. ポイント数 — 0ポイントの死骸は削除。
  2. 全銘柄のカバレッジ — ユニバース全体(全21銘柄、サンプルではない)。
  3. 鮮度 — 最新日付;データが古くなったシグナルを稼働中のポートフォリオに使ってはならない。
  4. 先読み安全性 — 下記参照。

疎系列ルール

ランク/ウェイト式が機能するのは、系列がユニバース全体に密(DENSE) である場合のみです。疎/部分的なカバレッジ系列(例:政治家1人の買いが21銘柄中1銘柄程度しかカバーしていない)は、傾斜やオーバーレイとしてのみ使用でき、ランク入力にはできません — ランクに組み込むと取引がゼロになります(退化配線)。その旨を伝え、優先度を下げてください。無理に使おうとしないこと。

先読み安全性は譲れない(教訓 #11)

オルタナティブデータの各ポイントは、情報が公開された日付(提出/開示/投稿日)にスタンプされ、取引/イベント日ではありません。議会取引には最大約45日のSTOCK Actラグが存在します — シグナルはこのラグを埋め込まなければなりません。バックテストで使用する前に、インジケーターごとに明示的に監査を行います。可能であれば、独立して生成された2番目のビルドと値を相互検証します(WSBカウント系列はこの方法で検証済み — 2つの独立ビルドが完全一致)。過去の投稿の遡及スクレイピングは問題ありません。感情モデルを遡及適用するのも問題ありませんが、注意点として記録します。削除を免れた投稿のみを使用する場合も注意点として記録します。

データカバレッジが認定期間を制限する

最初にソースレイクの最大月を確認し、シグナルのカバレッジ終了日を認定ウィンドウと導入可能性のハード制約として扱います。ウォークフォワードエンジンはフォールドカレンダーをインジケーターのカバレッジに合わせてクリップするため、認定比較はカレンダーを揃えて行う必要があります — バリアントのクリップされたカレンダーでベースコントロールを実行します(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 を先に実行)、ラベルは手動設定(琥珀色)、各バリアントを1回12ヶ月25000ドルのバックテストでスモークテストしてからフォールドに進みます(取引がゼロまたはほぼゼロの場合、ランク/フィルターが機能していない → 修正するか削除)。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.

関連スキル