Investing involves risk. This project does not provide investment advice and is for education, research, and engineering review only.
HkEquityStrategies is the Hong Kong equity strategy package for QuantStrategyLab. It contains reusable strategy implementations, manifests, catalog metadata, runtime adapters, and live-enablement checks shared by HK-capable platform repositories.
This repository is a strategy layer, not a broker or deployment layer. It does not store broker credentials, submit orders by itself, publish snapshot artifacts, or decide whether a profile is safe for live trading without external evidence.
Canonical profile names were simplified in this branch. The old names are not kept as aliases, so platform repositories should reference the canonical names below through STRATEGY_PROFILE or RUNTIME_TARGET_JSON.
These profiles use platform-provided market_history and do not require a separate snapshot artifact before the strategy entrypoint can produce target weights.
| Profile | Name | Input | Benchmark | Current role |
|---|---|---|---|---|
hk_dividend_gold_defensive_rotation |
HK Dividend-Gold Defensive Rotation | market_history |
03110 |
Preferred HK ETF runtime profile by current risk-adjusted evidence. |
hk_global_etf_tactical_rotation |
HK Global ETF Tactical Rotation | market_history |
02800 |
Secondary HK ETF runtime profile with broader ETF exposure and heavier product checks. |
The strategy package exposes one promoted snapshot-backed runtime entrypoint. HkEquitySnapshotPipelines owns the artifact contract, production data lineage, and promotion evidence.
| Profile | Name | Input | Benchmark | Current role |
|---|---|---|---|---|
hk_low_vol_dividend_quality_snapshot |
HK Low-Vol Dividend Quality Snapshot | feature_snapshot + manifest |
02800 |
Retained HK snapshot-backed runtime candidate; production point-in-time evidence is still required. |
Rejected prototypes are no longer part of the public catalog, manifests, entrypoints, runtime adapters, or snapshot contracts. Platform repositories should only expose profiles returned by get_runtime_enabled_profiles().
See docs/research/hk_strategy_selection_20260603.md for retained and rejected strategy notes.
The research numbers in this repository are review evidence, not return promises. Before enabling or changing any live profile, rerun the relevant research/readiness commands and review short, medium, and long windows where applicable:
- return and benchmark-relative return
- maximum drawdown and drawdown stability
- turnover, costs, lot-size, slippage, suspension, VCM, and CAS behavior
- data freshness and artifact version
- broker dry-run order preview, bilingual notification logs, rollout controls, and operator approval
If evidence is stale, incomplete, or the profile is not returned by get_runtime_enabled_profiles(), keep it out of live runtime settings.
python -m pip install -e '.[test]'
python -m pytest -qThese commands are read-only unless you explicitly pass an evidence file to a validator:
python scripts/print_hk_live_enablement_matrix.py --json
python scripts/print_hk_runtime_readiness.py --profile hk_dividend_gold_defensive_rotation --platform longbridge --json
python scripts/print_hk_runtime_readiness.py --profile hk_low_vol_dividend_quality_snapshot --platform longbridge --json
python scripts/validate_hk_runtime_live_enablement.py --print-template --profile hk_dividend_gold_defensive_rotation --platform longbridge --jsonFor local smoke coverage of the ordinary ETF rotation path:
python scripts/smoke_hk_global_etf_tactical_rotation_dry_run.py --jsonPlatform repositories consume this package through strategy loaders and runtime metadata. They own broker credentials, market-data access, account state, dry-run/live switches, order submission, notifications, deployment settings, and rollback controls.
Supported HK runtime platforms currently include:
InteractiveBrokersPlatformLongBridgePlatform
- Keep broker credentials and account identifiers outside Git.
- Use platform repositories for dry-run, paper, or live execution switches.
- Confirm strategy evidence and platform dry-run output before enabling scheduled execution.
- Review generated orders, notifications, artifact URIs, and rollback settings.
- Start with small staged exposure and keep kill-switch procedures documented in the platform repository.
src/: strategy implementations, manifests, catalog metadata, runtime adapters, and readiness policies.tests/: unit, contract, and regression tests.docs/: integration notes, strategy research, and live-enablement evidence guides.scripts/: local research, smoke, readiness, and evidence helpers.
docs/platform_integration.mddocs/research/hk_strategy_selection_20260603.mddocs/research/hk_dividend_gold_defensive_rotation.mddocs/research/hk_global_etf_tactical_rotation.mddocs/hk_low_vol_dividend_quality_snapshot_live_enablement.md
- Do not commit secrets, tokens, cookies, broker credentials, account identifiers, or private order data.
- Keep behavior changes small and include tests or reproducible evidence commands.
- Do not promote a research profile into live runtime settings without the documented evidence gates.
- See CONTRIBUTING.md for pull request scope, local verification, and documentation expectations.
- Follow CODE_OF_CONDUCT.md for maintainer and contributor conduct.
- Report credential, automation, broker, exchange, or cloud-resource vulnerabilities through SECURITY.md; do not open public issues for secrets or live-execution risk.
See LICENSE.