Algo Parameter Defaults By Instrument Liquidity Tier 标志

Algo Parameter Defaults By Instrument Liquidity Tier

社区
HimanshuJ16
algo-parameter-defaults-by-instrument-liquidity-tier

在使用特定交易品种的初始约束来启动 VWAP、TWAP 或实施缺口执行时使用;将经过验证的平均每日成交量观察值划分到相应流动性等级,并返回带版本号的配置文件。

Add to TypingMind

概览

发布者HimanshuJ16
代码仓库Algo-Trading-Skills
技能名称algo-parameter-defaults-by-instrument-liquidity-tier
星标数
50
复刻数
7
附带文件
5
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 HimanshuJ16 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Algo Parameter Defaults By Instrument Liquidity Tier AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/algo-parameter-defaults-by-instrument-liquidity-tier
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 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/algo-parameter-defaults-by-instrument-liquidity-tier .claude/skills/algo-parameter-defaults-by-instrument-liquidity-tier
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Algo Parameter Defaults By Instrument Liquidity Tier,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Algo Parameter Defaults By Instrument Liquidity Tier。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Algo Parameter Defaults By Instrument Liquidity Tier 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

When to Use

Use this skill when initializing VWAP, TWAP, or Implementation Shortfall execution with instrument-specific starting constraints. The manager classifies a validated Average Daily Volume (ADV) observation into HIGH, MEDIUM, or LOW and returns an immutable, versioned ExecutionProfile.

The profiles are defaults and caps for a downstream execution system. They are not a live liquidity model, best-execution decision, venue permission, or substitute for pre-trade risk controls.

When NOT to Use

  • Do not classify an instrument from stale, mixed-unit, split-affected, or unverified ADV data.
  • Do not use ADV alone to authorize spread crossing, market orders, participation, or urgency; current spread, depth, volatility, order size, venue state, and risk limits are required.
  • Do not use static tiers for intraday liquidity migration, news events, auctions, halts, or flash volatility without a separate market-state overlay.
  • Do not treat the illustrative 5%/10%/20% defaults as regulatory, venue, or universal institutional limits.
  • Do not conflate these internal tiers with a regulatory liquidity classification such as ESMA's annual liquid/illiquid determination, which governs transparency obligations and not execution parameters — see references/standards.md.
  • Do not bypass independent market-access, price-band, credit, position, notional, or kill-switch controls.

Prerequisites

  • A documented ADV definition: instrument, units, session calendar, corporate-action treatment, lookback, and as-of timestamp.
  • A configured high/medium threshold pair with high > medium and a maximum permitted ADV age.
  • Current market-state data for spread, depth, volatility, venue status, and order-size impact checks.
  • An EMS that can enforce participation, price, notional, credit, position, and cancellation controls independently.
  • A versioned calibration process using TCA, walk-forward evaluation, and rollback approvals.
  • Python 3.10+.

Workflow

  1. Define calibration: Set validated ADV thresholds, max_adv_age_days, profile values, and a calibration version. Store the unit and factor source outside the manager.
  2. Decide whether freshness is mandatory: adv_age_days is optional, and omitting it skips the staleness check entirely rather than failing. If the strategy cannot tolerate an unverified age, construct the manager with require_adv_age=True so a missing timestamp raises instead of classifying silently.
  3. Validate ADV: Pass a finite, non-negative ADV value and, when available, its observation age. Reject stale or malformed values; do not silently classify them as LOW. A zero ADV logs a warning and is a data-quality stop, not a genuine LOW instrument — the manager cannot distinguish "never trades" from "the feed broke".
  4. Classify the tier: Call classify_tier(adv, adv_age_days=...) or get_profile(...). Threshold boundaries are deterministic: high is inclusive, medium is inclusive below high.
  5. Retrieve the profile: Use the immutable ExecutionProfile as a starting constraint. Record its tier, algorithm, participation cap, buffer, and calibration version. Read the calibrated set through manager.profiles, a read-only mapping proxy.
  6. Read the participation cap in the right direction: The shipped ceiling widens as liquidity falls (5%/10%/20%). That is a fill-feasibility allowance for orders large relative to a thin name's volume, not a discount — impact scales with sigma * sqrt(Q/ADV), so the LOW row is the most impact-sensitive, not the most forgiving. Approach it only when completion risk demands it.
  7. Apply live gates: Before each child order, independently check current spread/depth, volatility, order size versus displayed/expected liquidity, venue status, price bands, credit, position, and parent-order limits.
  8. Handle spread crossing: cross_spread_allowed is only a profile capability. requires_live_market_check remains true; the EMS must make the actual crossing decision from current protected quotes and risk policy.
  9. Supply the urgency policy the LOW profile omits: The LOW default is IS with cross_spread_allowed=False. An IS schedule front-loads to cut timing risk, which a never-cross posture cannot do, so define outside this module who may escalate to crossing, on what residual, and at what point in the horizon. Without that policy the order rests passively and accrues timing risk while every metric here still reads healthy.
  10. Monitor and tune: Track implementation shortfall, spread capture, fill rate, participation, rejects, signaling indicators, and residual risk by tier. Retune only through versioned walk-forward/TCA review.
  11. Rollback: If TCA, data freshness, or risk metrics breach limits, restore the last approved calibration and pause affected profiles until reconciled.

Common Pitfalls

  • ADV unit mismatch: Comparing shares/day, currency/day, contracts/day, or split-unadjusted volume against the same threshold. ESMA's average daily turnover is a currency-per-day figure and is not interchangeable with a shares/day threshold.
  • Stale ADV: Applying a 30-day observation during a material corporate action, regime shift, or recent listing without an age/data-quality gate. Note that passing no adv_age_days at all disables the gate silently — require_adv_age=True is what closes that hole.
  • Reading the widening participation cap as permission: Assuming a 20% ceiling in the LOW tier means thin names tolerate more participation. Under the square-root impact law the same fraction of ADV costs more there, because those names carry higher volatility.
  • An IS profile that can never cross: Treating the LOW tier as a complete IS algorithm. It is a passive starting posture; the urgency escalation that makes IS an IS algorithm has to come from the integration.
  • False spread permission: Treating high ADV as proof that crossing the spread is cheap or safe.
  • Participation overreach: Applying a percentage cap without checking parent notional, remaining quantity, displayed depth, and market impact.
  • Mutable calibration: Returning profiles that callers can modify and silently diverge from the reviewed calibration. Profiles are frozen, the calibrated mapping is a read-only proxy, and the caller's source mapping is copied — but a profile built directly must still be validated, which is why ExecutionProfile enforces its own invariants at construction.
  • Confusing a tier with a regulatory liquidity status: An instrument ESMA classifies as having a liquid market may be LOW here, and the reverse. The tier is not evidence of a transparency obligation, and a transparency classification is not an execution parameter.
  • Treating a zero ADV as a tier: Zero volume classifies as LOW and yields a profile whose participation cap is 20% of nothing. It is a broken or suspended instrument, not a tradable one.
  • Static tiering during shocks: Keeping a normal profile during volatility, halts, auctions, or liquidity withdrawal.

Verification

Run the focused tests:

text
python -m unittest discover -s skills/algo-parameter-defaults-by-instrument-liquidity-tier/scripts

The tests cover tier boundaries on both sides of each threshold, invalid ADV and configuration, ADV freshness (including the inclusive age boundary and the require_adv_age gate), the zero-ADV warning, construction-time profile invariants, calibration versioning, immutability of both the profile and the calibrated mapping, and live-market gating metadata. Production sign-off additionally requires historical TCA, walk-forward calibration, stress scenarios, and EMS enforcement tests.

Related Skills

  • implementation-shortfall-minimization
  • participation-of-volume-pov-execution
  • liquidity-adjusted-position-sizing
  • transaction-cost-analysis-tca-integration
  • execution-algo-twap-vwap-slicing

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Algo Parameter Defaults By Instrument Liquidity Tier AI 技能有什么作用?

在使用特定交易品种的初始约束来启动 VWAP、TWAP 或实施缺口执行时使用;将经过验证的平均每日成交量观察值划分到相应流动性等级,并返回带版本号的配置文件。

为什么在 TypingMind 中使用 Algo Parameter Defaults By Instrument Liquidity Tier?

因为您只需安装一次,就能搭配任何模型使用。Algo Parameter Defaults By Instrument Liquidity Tier 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Algo Parameter Defaults By Instrument Liquidity Tier?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/algo-parameter-defaults-by-instrument-liquidity-tier。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Algo Parameter Defaults By Instrument Liquidity Tier?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Algo Parameter Defaults By Instrument Liquidity Tier 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Algo Parameter Defaults By Instrument Liquidity Tier 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Algo Parameter Defaults By Instrument Liquidity Tier AI 技能免费吗?

是的。HimanshuJ16 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇