cross-market-strategy skillA
cross-market-strategy is agent-read markdown (skill) from hkuds/vibe-trading: Write signal_engine.py for portfolios spanning multiple markets (A-shares + crypto, equity + forex, etc.).
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified before it reaches your agent: the main file against the SHA-256 recorded here, the others against the git hashes of its source commit. The deterministic audit below grades the latest version, and the same checks always give the same file the same grade.
What the file says
## When to Use
When the user requests a backtest with codes from **different markets** — e.g. `["000001.SZ", "BTC-USDT"]`, `["TD.TO", "PNG.V"]`, or `["AAPL.US", "EUR/USD", "600519.SH"]`.
The `CompositeEngine` handles calendar alignment, shared capital, and market rules automatically. The strategy only needs to output per-symbol signals.
## Key Concepts
### 1. Market Classification in generate()
Group symbols by market type and apply market-specific indicator parameters:
```python
def generate(self, data_map):
groups = {}
for code, df in data_map.items():
market = self._detect_market(code)
groups.setdefault(market, {})[code] = df
signals = {}
for market, market_data in groups.items():
params = MARKET_PARAMS[market]
for code, df in market_data.items():
signals[code] = self._market_signal(df, params)
return signals
```
### 2. Per-Market Parameter Tables
Different markets have very different dynamics. Using the same parameters everywhere produces poor results.
| Parameter | A-Share | Crypto | US Equity | Forex |
|-----------|---------|--------|-----------|-------|
| MA fast | 5 | 7 | 10 | 10 |
…Read the whole file at its exact version.
How to install
mdr add hkuds/vibe-trading/cross-market-strategy@git:20260908.8f63d2fmdr add hkuds/vibe-trading/cross-market-strategy@sha256:17be6347c28f0e07Pin to a label to follow the author's releases, or to a sha256 for exact bytes. Either way the resolved hash is written to mdr.lock, and mdr install fetches those bytes again and checks them, so it installs them exactly or fails.
[](https://markdownregistry.com/a/art_kkys7ob4h3ro45ga)
2 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260908.8f63d2f latest | 2026-09-08 | 8f63d2f | 3,937 B | A | view · diff |
| git:20260809.cf9c693 | 2026-08-09 | cf9c693 | 3,921 B | A | view · diff |
| git:20260413.1f8f4a0 | 2026-04-13 | 1f8f4a0 | 3,848 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3937 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
hkuds/vibe-trading · 34,089 stars · license MIT · pushed 2026-09-27 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_kkys7ob4h3ro45ga GET https://markdownregistry.com/api/v1/resolve?ref=hkuds/vibe-trading/cross-market-strategy GET https://markdownregistry.com/api/v1/blob/17be6347c28f0e07816b682e0ac2eabe7a48a91d7237b0ef0ec65f68fe409e92
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.