Логотип Cold Start Handling For Newly Listed Instruments

Cold Start Handling For Newly Listed Instruments

Спільнота
HimanshuJ16
cold-start-handling-for-newly-listed-instruments

Використовуйте, коли для інструмента замало історичних цін, щоб оцінити ризик, наприклад для IPO, виділеної компанії або нового токена, а рухоме вікно волатильності повертає NaN чи беззмістовне значення, яке потім використовується для розрахунку розміру позиції.

Add to TypingMind

Огляд

ВидавецьHimanshuJ16
РепозиторійAlgo-Trading-Skills
Назва навичкиcold-start-handling-for-newly-listed-instruments
Зірки
50
Форки
7
Файли в пакеті
5
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 5

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: HimanshuJ16. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Cold Start Handling For Newly Listed Instruments у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/cold-start-handling-for-newly-listed-instruments
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/cold-start-handling-for-newly-listed-instruments .claude/skills/cold-start-handling-for-newly-listed-instruments
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Cold Start Handling For Newly Listed Instruments в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Cold Start Handling For Newly Listed Instruments, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Cold Start Handling For Newly Listed Instruments не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

When to Use

Invoke this skill when an instrument must be sized and risk-managed before it has enough history to estimate from: a recent IPO or direct listing, a spin-off, a newly listed token, a new futures contract month, or a symbol that has just re-listed. A 30-day rolling volatility over 5 observations is not a small-sample estimate of volatility — for i.i.d. normal returns the sample variance from nu = n - 1 degrees of freedom has relative variance 2 / nu, so five days give a variance estimate with roughly 70% relative standard error. Fed to a volatility-scaled or Kelly-style sizer, that noise becomes leverage.

ColdStartHandler answers two questions that are deliberately kept apart:

  1. What volatility should I use? The sample variance is blended toward a peer-group prior with the conjugate weight w = nu / (nu + nu_0), applied to variances. nu_0 ("prior strength") is the prior's weight in units of this instrument's own days.
  2. How much capital may it take? A separate linear ramp, min(1, n_obs / warmup), times your base allocation. This is a risk-appetite policy, not an estimator.

When NOT to Use

  • As a pre-trade risk control. This is a strategy-side sizing input that trusts its own configuration. Where SEC Rule 15c3-5 or an equivalent applies, the hard limits must sit in the broker-dealer's automated pre-trade layer; put this in front of that, never instead of it. See sec-rule-15c3-5-risk-controls-us.
  • When no defensible peer group exists. Shrinking toward an arbitrary prior is worse than declining to trade the name: the output looks confident and is not. A newly listed token with no comparable, or a first-of-its-kind structure, has no prior worth using.
  • When the short history is not the binding constraint. If the instrument cannot be borrowed, has no locate (us-reg-sho-short-sale-locate-requirements), trades in a 10-lot a day, or is still inside its first-day auction, sizing is the wrong lever. See liquidity-adjusted-position-sizing.
  • For the model's features, not its risk inputs. Cold-starting a learned signal for a new symbol is a different problem — see categorical-feature-encoding-for-instrument-identity for identity encoding and transfer-learning-across-correlated-instruments for borrowing a correlated instrument's fitted structure.
  • When the sample is short for a reason other than newness. A halted, suspended, or thinly traded old instrument has a short usable sample but not a cold start; treat stale data as stale, not as young.

Prerequisites

  • A count of usable return observations, not a calendar difference. Listing date minus today over-counts: halts, no-trade sessions and missing bars are not observations. See references/workflows.md.
  • A peer prior that is a single-name volatility, not a sector-ETF volatility. An ETF is diversified; its volatility is systematically below that of its constituents, so using it as the prior shrinks a new listing toward a number no single stock realizes. Use the median (not mean) realized volatility of comparable single names.
  • Sample volatility and prior in the same units — both annualized, or neither. The module cannot detect a units mismatch; it will happily blend a daily sigma with an annualized one.
  • A nu_0 chosen from the prior's own uncertainty, not by feel: for a prior whose estimate of sigma**2 has relative variance v, nu_0 = 2 / v.
  • A warmup window justified by something. Market-structure anchors beat round numbers: IPO lock-up expiry (typically 180 days, contractual), index seasoning (S&P U.S. indices: 12 months on an eligible exchange). See references/standards.md.

Workflow

  1. Count usable observations. Count bars actually present with valid prices. Exclude sessions the instrument was halted for the whole of, and exclude the listing auction itself — the IPO cross is a price discovery event, not a return.
  2. Select the peer group before you need it. Same sector, comparable size, comparable float, and — where relevant — same recency-of-listing cohort. Freeze the selection rule; picking the peer group after seeing the instrument's early prints is a decision made on the data you are trying to shrink.
  3. Refuse rather than default. If no prior is available, do not substitute zero and do not substitute the index. process_instrument raises on a missing or non-positive prior deliberately: a zero prior asserts a riskless instrument, and any volatility-scaled sizer divides by it.
  4. Estimate with process_instrument(symbol, n_obs, observed_volatility, peer_prior_volatility). Below two observations there is no sample variance at all; the observed value is ignored (including if it arrives as NaN) and the prior is returned unchanged, with used_observed_volatility=False recording that.
  5. Size against estimated_volatility, cap against max_position_cap_pct. They are independent controls. Note that the cap is a ceiling, not a target: a volatility-scaled sizer will usually ask for less during probation anyway, and the cap only binds when it does not.
  6. Do not treat graduation as certainty. is_probationary going False means the size cap has reached the base allocation. It does not mean the volatility estimate is unshrunk — with nu_0 = 10, an instrument with 250 observations still carries about 4% prior weight, and that is correct. If you want the prior gone, lower nu_0.
  7. Re-evaluate on every rebalance, not once at onboarding. Both outputs move with n_obs; a cached day-one decision keeps a stale cap for the rest of the ramp.
  8. Watch for the events that reset the argument. Lock-up expiry, index addition, and the first earnings report all change the float and the volatility regime after the instrument has technically graduated. A 30-day warmup that ends before the first lock-up tranche unlocks has measured a float that no longer exists.

Full procedure: see references/workflows.md. Standards and sources: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Blending standard deviations instead of variances. w * sigma_obs + (1 - w) * sigma_peer is not the conjugate posterior and, because the square root is concave, it understates volatility whenever the sample and prior disagree. For a 5-day IPO at sigma_obs = 0.80 against a 0.20 prior, at the same weight w = 4/14, the standard-deviation blend returns 0.37 where the variance blend returns 0.46; the pre-2.0 module returned 0.30, lower still because it also weighted the sample by n / warmup. A risk control should not be biased toward the low side. The standard-deviation blend remains reachable via shrink_in_variance_space=False, for comparison during migration only.
  • 0.0 * float("nan") is nan, not 0.0. The natural "weight the sample by zero when there is no sample" implementation emits NaN into the sizer for exactly the instrument the skill exists for. Absence of a sample has to be a branch, not a weight.
  • Using a sector ETF as the single-name prior. Diversification makes the ETF's volatility structurally lower; every new listing is then shrunk toward a number no constituent realizes, and probation systematically over-sizes.
  • Letting shrinkage end abruptly at the warmup boundary. A weight of n / N says a 29-day estimate is 97% trustworthy and a 30-day estimate is exact. Neither is true, and the jump puts a discontinuity in the sizing of every instrument on its graduation day.
  • Counting calendar days as observations. IPOs halt — LULD trading pauses in the first sessions are routine — and a halted session contributes no return. Calendar counting graduates the instrument early on data it does not have.
  • Treating the first-day price range as volatility. The IPO cross and the first session's price discovery are not draws from the return distribution you are trying to estimate; including them inflates the sample and, once weighted, the blend.
  • Dropping newly listed names entirely for 60 days. The opposite failure: a hard exclusion forgoes post-IPO drift and liquidity-driven opportunity and, worse, hides the onboarding path from testing until the day it silently switches on. Use probation_floor_pct to throttle rather than exclude.
  • Forgetting the borrow side. A newly listed name is frequently hard or impossible to borrow; a shrunk volatility says nothing about whether the short leg is executable.

Verification

  • Run python -m unittest discover -s skills/cold-start-handling-for-newly-listed-instruments/scripts (29 tests), or python tools/run_all_tests.py for the whole repo.
  • Documented example: ColdStartHandler(warmup_period_days=30, prior_strength_days=10.0) with n_obs=5, observed_volatility=0.80, peer_prior_volatility=0.20 returns confidence_weight = 4/14 = 0.2857, estimated_volatility = sqrt((10*0.04 + 4*0.64) / 14) = 0.4598, and max_position_cap_pct = 5/30 = 0.1667.
  • Feed n_obs=0 with observed_volatility=float("nan") and confirm the returned volatility is exactly the peer prior and used_observed_volatility is False.
  • Sweep n_obs from 0 upward and confirm max_position_cap_pct is non-decreasing, never exceeds the base allocation, and reaches it exactly at warmup_period_days.
  • Confirm a zero or NaN peer prior raises rather than returning a zero or NaN volatility.

Related Skills

  • categorical-feature-encoding-for-instrument-identity
  • transfer-learning-across-correlated-instruments
  • dynamic-position-sizing-based-on-realized-volatility
  • liquidity-adjusted-position-sizing
  • instrument-universe-change-detection-and-alerting
  • point-in-time-index-constituent-tracking
  • us-reg-sho-short-sale-locate-requirements
  • new-strategy-onboarding-checklist

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Cold Start Handling For Newly Listed Instruments?

Використовуйте, коли для інструмента замало історичних цін, щоб оцінити ризик, наприклад для IPO, виділеної компанії або нового токена, а рухоме вікно волатильності повертає NaN чи беззмістовне значення, яке потім використовується для розрахунку розміру позиції.

Навіщо використовувати Cold Start Handling For Newly Listed Instruments у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Cold Start Handling For Newly Listed Instruments — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Cold Start Handling For Newly Listed Instruments у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/cold-start-handling-for-newly-listed-instruments. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Cold Start Handling For Newly Listed Instruments?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Cold Start Handling For Newly Listed Instruments?

Зі скількома забажаєте. У TypingMind ви можете використовувати Cold Start Handling For Newly Listed Instruments із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Cold Start Handling For Newly Listed Instruments?

Так. На GitHub цю навичку публікує HimanshuJ16 за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Discord User Post

openclaw
ОрганізаціяПопулярне

Опублікуйте схвалене повідомлення від імені користувача, який увійшов у систему, через застосунок Discord для комп’ютера. Використовуйте для оголошень про випуски або інших дописів, написаних безпосередньо користувачем; не використовуйте для надсилання повідомлень у канали OpenClaw, ботів…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Test Audit

openclaw
ОрганізаціяПопулярне

Викликайте щоразу, коли пишете, змінюєте, перевіряєте або проводите аудит тестів. Обов’язковий етап для створення нових тестів, а також робочий процес аудиту тестів із низькою цінністю, надмірно залежних від реалізації чи…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Feishu Perm

openclaw
ОрганізаціяПопулярне

Сценарії роботи зі співавторами та дозволами Feishu. Активуйте, лише якщо користувач прямо просить переглянути або змінити спільний доступ, дозволи чи список співавторів.

82.2K
391K
Інструкції
Відкрити
Логотип openclaw

Block Kit

openclaw
ОрганізаціяПопулярне

Використовуйте проактивно для структурованих відповідей у Slack або відповідей із інтерактивними елементами, а також коли вас просять створити чи перевірити JSON для нативного Slack Block Kit.

82.2K
391K
Файлів: 2
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇