Logo Algo Parameter Defaults By Instrument Liquidity Tier

Algo Parameter Defaults By Instrument Liquidity Tier

Cộng đồng
HimanshuJ16
algo-parameter-defaults-by-instrument-liquidity-tier

Dùng khi khởi tạo quá trình thực thi VWAP, TWAP hoặc shortfall so với giá thực hiện, với các ràng buộc ban đầu riêng cho từng công cụ; phân loại một giá trị khối lượng giao dịch trung bình hằng ngày đã được xác thực vào bậc thanh khoản và trả về hồ sơ có phiên bản.

Add to TypingMind

Tổng quan

Nhà phát hànhHimanshuJ16
Kho mãAlgo-Trading-Skills
Tên kỹ năngalgo-parameter-defaults-by-instrument-liquidity-tier
Sao
50
Bản fork
7
Tệp đi kèm
5
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được HimanshuJ16 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Algo Parameter Defaults By Instrument Liquidity Tier trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/algo-parameter-defaults-by-instrument-liquidity-tier
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Algo Parameter Defaults By Instrument Liquidity Tier trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Algo Parameter Defaults By Instrument Liquidity Tier ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Algo Parameter Defaults By Instrument Liquidity Tier với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Algo Parameter Defaults By Instrument Liquidity Tier làm được gì?

Dùng khi khởi tạo quá trình thực thi VWAP, TWAP hoặc shortfall so với giá thực hiện, với các ràng buộc ban đầu riêng cho từng công cụ; phân loại một giá trị khối lượng giao dịch trung bình hằng ngày đã được xác thực vào bậc thanh khoản và trả về hồ sơ có phiên bản.

Vì sao nên dùng Algo Parameter Defaults By Instrument Liquidity Tier trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Algo Parameter Defaults By Instrument Liquidity Tier là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Algo Parameter Defaults By Instrument Liquidity Tier trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/algo-parameter-defaults-by-instrument-liquidity-tier. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Algo Parameter Defaults By Instrument Liquidity Tier?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Algo Parameter Defaults By Instrument Liquidity Tier với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Algo Parameter Defaults By Instrument Liquidity Tier với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Algo Parameter Defaults By Instrument Liquidity Tier có miễn phí không?

Có. Kỹ năng này được HimanshuJ16 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇