vike-hl-cohort-backtest
Method for testing whether a Hyperliquid wallet cohort's positioning led or lagged price, with point-in-time labels and without look-ahead - which axes are…
от vikeio96 установок в других каталогах
Установить vike-hl-cohort-backtest в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
vike-hl-cohort-backtest
Cohort positioning against price over history. A single --hours call returns hours x rungs rows (2160 hours of the 13-rung pnl axis is about 28,000 rows, 13 MB), so write each pull to a file and analyse it with code; never print it into the conversation. 1 credit per call.
Pull
vike-data hl cohort-metrics BTC --axis pnl --label-basis point_in_time --hours 2160 --json > btc_pnl_pit.json
vike-data hl cohort-metrics BTC --axis size --hours 2160 --json > btc_size.json
vike-data candles hl BTC --view export --interval 1h --start 2026-08-01T00:00:00Z --json > btc_1h.json # up to 5000 bars a call
Rows: ts (hour, UTC), cohort, total_position_value, total_position_value_long (USD notional), bias (fraction -1..+1). Newest hour first; page older hours with nextCursor -> --cursor. Candles: ts is epoch ms, left-aligned, the window half-open [start, end).
Whole-venue alternative (all symbols summed): vike-data hl segments --view history --cohort "3x smart" --axis pnl --hours 2160 --json (axis size or pnl; hours before 2026-04-07 are never returned; page back with --end = the oldest ts minus 1 second). Position-level history: hl market --view positions --symbol BTC --start ... rows carry label_causal, the previous hour's label.
Which labels are honest
| Axis / option | Look-ahead? |
|---|---|
pnl with --label-basis point_in_time |
No. Point-in-time history starts 2026-04-07 (earlier hours return nothing). |
size, tier |
No by construction: account value or position size at that hour |
pnl default (current) |
Yes: today's grading applied to old hours |
pnl_abs |
Yes always: dollar bands of today's PnL |
pnl_unrealized |
No, but it grades POSITIONING (who is currently onside), not skill, and turns over far faster than the realized ladder |
--grading realized-pit |
A frozen control that stops growing: a recent window comes back short; freshness.behind_hours says by how much |
--opened-within is refused with point_in_time, realized-pit and pnl_unrealized. With point_in_time the rows leave out position_count*, total_unrealized_pnl and total_position_size*: use only the notional columns and bias, and never read a missing value as 0. Read label_computed on every response: it names the source and the seam. Label resolution changes at 2026-08-06: daily labels before (constant across that day's 24 hours), hourly after. A turnover count or a difference taken across the seam shows an artefact that looks like a regime change; split the sample there or use realized-pit as the control.
Signal definitions
- Group several rungs by summing notional:
bias_g = (2*sum(L) - sum(V)) / sum(V)withL = total_position_value_long,V = total_position_value. Never average the biases. - Level (
bias_g), change (bias_g[t] - bias_g[t-k]), or the spread between a top group (3x smart,2x smart,smart) and a bottom group (rekt,2x rekt,3x rekt). Leaveunknownout.
Alignment and statistics
- The in-progress hour is never returned, so a row stamped
Tis only knowable once hourThas closed. Measure forward returns from the OPEN of candleT+1h, never from candleT. Check the alignment on your own sample before trusting a lag of one or two hours. - Forward returns at several horizons (1h, 4h, 24h) and lead/lag correlations over lags in both directions. If the cohort moves AFTER the return, that is positioning chasing price, not a lead.
- Neighbouring hours overlap and positions are autocorrelated: report the number of independent observations, not the number of hours, and a confidence interval. Count the cohorts, lags and horizons you tried and correct for it.
- Split the sample (before / after 2026-08-06, or first half / second half) and say which half the result lives in.
- Add a placebo: the same test on the
sizeaxis, or on a shuffled cohort assignment.
What to report
On
<symbol>,<axis>with point-in-time labels,<start>to<end>(Nhours, aboutMindependent):<signal>vs the<h>-hour forward return from the next candle's open: correlation<r>(CI<lo, hi>); first half<r1>, second half<r2>; placebo<r0>. Labels change resolution on 2026-08-06. This describes this sample; it is not an out-of-sample test or a trading rule, and costs, funding and slippage are not included.
Anti-patterns
- Don't use the default
pnllabels orpnl_absfor anything backtest-like. - Don't quote a hit rate without the sample size and the placebo; don't call a lag "alpha".
- Don't extrapolate: the point-in-time history starts 2026-04-07, one regime.
Pairs well with
vike-hl-cohort-positioningfor the current read,vike-candlesfor the price series,vike-hl-asset-briefingfor context
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(vike-data:*)
FAQ
Что делает скилл vike-hl-cohort-backtest?
Method for testing whether a Hyperliquid wallet cohort's positioning led or lagged price, with point-in-time labels and without look-ahead - which axes are honest, how to pull and align the hours, the seams and controls, how to report. Describes a method on this data; it does not claim a tradable edge. Use when the user asks "did whale / smart money positioning predict BTC" / "backtest the cohort signal" / "does the smart-minus-rekt spread lead price" / "lead or lag of Hyperliquid cohorts".
Как установить скилл vike-hl-cohort-backtest?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vike-hl-cohort-backtest запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…