Strategy Performance Report
tradesdontlie/tradingview-mcp
Builds a performance report for a backtested Pine Script strategy from TradingView data, covering metrics, trades, the equity curve and improvement ideas.
Guides writing signal_engine.py for backtests that mix markets such as A-shares, crypto, US equities and forex, with per-market parameters and volatility-adjusted weights.
$ npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HKUDS/Vibe-Trading cross-market-strategy --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agent/src/skills/cross-market-strategy .claude/skills/cross-market-strategy && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cross-market-strategy" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/cross-market-strategy into .claude/skills/cross-market-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-market-strategy", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/cross-market-strategyType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HKUDS/Vibe-Trading cross-market-strategy --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .agents/skills && cp -r skills-src/agent/src/skills/cross-market-strategy .agents/skills/cross-market-strategy && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cross-market-strategy" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/cross-market-strategy into .agents/skills/cross-market-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-market-strategy", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HKUDS/Vibe-Trading cross-market-strategy --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/agent/src/skills/cross-market-strategy .cursor/skills/cross-market-strategy && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cross-market-strategy" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/cross-market-strategy into .cursor/skills/cross-market-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-market-strategy", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HKUDS/Vibe-Trading.git --path agent/src/skills/cross-market-strategy--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HKUDS/Vibe-Trading cross-market-strategy --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/agent/src/skills/cross-market-strategy .gemini/skills/cross-market-strategy && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cross-market-strategy" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/cross-market-strategy into .gemini/skills/cross-market-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-market-strategy", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HKUDS/Vibe-Trading cross-market-strategyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .github/skills && cp -r skills-src/agent/src/skills/cross-market-strategy .github/skills/cross-market-strategy && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cross-market-strategy" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/cross-market-strategy into .github/skills/cross-market-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-market-strategy", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HKUDS/Vibe-Trading cross-market-strategy --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/agent/src/skills/cross-market-strategy .opencode/skills/cross-market-strategy && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cross-market-strategy" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/cross-market-strategy into .opencode/skills/cross-market-strategy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cross-market-strategy", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cross-market-strategyGuides writing signal_engine.py for backtests that mix markets such as A-shares, crypto, US equities and forex, with per-market parameters and volatility-adjusted weights.
When a backtest uses symbols from different markets, for example 000001.SZ with BTC-USDT, the CompositeEngine handles trading calendar alignment, shared capital, per-market rules and commissions, so the strategy only has to emit per-symbol signals. The skill shows how to group symbols by market inside generate() and apply separate indicator settings, with a table giving A-shares, crypto, US equities and forex their own moving average, RSI and volatility lookback values.
It stresses volatility-adjusted weights, because crypto's much higher daily volatility would otherwise take the whole risk budget, and lists cross-market ideas such as momentum spillover, risk-on and risk-off overlays, hedging and switching behavior on the correlation regime. The matching config.json must set source to auto and extra_fields to null, and a borrowing multiplier that defaults to 1.0. An example_signal_engine.py file is included.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8e43007. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cross-Market Signal Engine loads about 983 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 310 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from HKUDS/Vibe-Trading at commit 8e43007, republished under its MIT licence (© HKUDS). 310 words, ~983 tokens.
.claude/skills/cross-market-strategy/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.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.
Group symbols by market type and apply market-specific indicator parameters:
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 signalsDifferent 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 |
| MA slow | 20 | 25 | 50 | 30 |
| RSI period | 14 | 10 | 14 | 14 |
| Vol lookback | 20 | 14 | 20 | 20 |
| Typical daily vol | 1-2% | 3-8% | 1-2% | 0.3-0.8% |
BTC daily vol ~ 5%, A-share daily vol ~ 1.5%. Without vol-adjustment, crypto eats the entire risk budget.
def _vol_adjust(self, signals, data_map):
vols = {}
for code, df in data_map.items():
ret = df["close"].pct_change(fill_method=None).dropna()
vols[code] = ret.rolling(20).std().iloc[-1] if len(ret) > 20 else ret.std()
inv_vols = {c: 1.0 / (v + 1e-10) for c, v in vols.items()}
total_inv = sum(inv_vols.values())
adjusted = {}
for code, sig in signals.items():
weight = inv_vols[code] / total_inv * len(signals)
adjusted[code] = (sig * weight).clip(-1.0, 1.0)
return adjusted{
"source": "auto",
"codes": ["000001.SZ", "BTC-USDT"],
"start_date": "2024-01-01",
"end_date": "2025-03-31",
"interval": "1D",
"initial_cash": 1000000,
"engine": "daily"
}source must be "auto" for cross-market (routes each symbol to its loader)extra_fields should be null (not all markets support fundamentals)leverage defaults to 1.0 (CompositeEngine inherits from config)| Pattern | Market |
|---|---|
000001.SZ, 600519.SH | A-share |
AAPL.US | US equity |
700.HK | HK equity |
TD.TO, PNG.V | Canada equity (TSX / TSXV) |
BTC-USDT | Crypto |
IF2406.CFFEX | China futures |
ESZ4 | Global futures |
EUR/USD | Forex |
© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in agent/src/skills/cross-market-strategy of HKUDS/Vibe-Trading.
Open the folder on GitHubat commit 8e43007
Cross-Market Signal Engine next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cross-Market Signal Engine this skillHKUDS/Vibe-Trading | 35k | — | ~983 | Automated safety check: Pass | MIT | |
| Strategy Performance Reporttradesdontlie/tradingview-mcp | 6.8k | 2 repos | ~591 | Automated safety check: Pass | Custom licence | |
| WorldQuant BRAIN Alpha ResearchQuantML-Research/wq-alpha-research | 407 | — | ~4.9k | Automated safety check: Pass | None | |
| Regimejackson-video-resources/markov-hedge-fund-method | 484 | — | ~1.6k | Automated safety check: Pass | Custom licence | |
| Virtuals Protocol AcpVirtual-Protocol/openclaw-acp | 168 | 1 repos | ~6.4k | Automated safety check: Pass | None | |
| lo2cin4bt Backtesting Assistantlo2cin4/lo2cin4bt | 289 | — | ~2.6k | Automated safety check: Pass | Custom licence |
tradesdontlie/tradingview-mcp
Builds a performance report for a backtested Pine Script strategy from TradingView data, covering metrics, trades, the equity curve and improvement ideas.
QuantML-Research/wq-alpha-research
Chinese-language playbook for WorldQuant BRAIN alphas: choose fields, write expressions, backtest, diagnose check failures, tune turnover, submit and build portfolios.
jackson-video-resources/markov-hedge-fund-method
Detect the market regime (Bull / Bear / Sideways) for ANY asset and turn it into a tradeable signal or a risk filter.
Virtual-Protocol/openclaw-acp
Hire specialised agents to handle any task — data analysis, trading, content generation, research, on-chain operations, 3D printing, physical goods, gift delivery, and more.
lo2cin4/lo2cin4bt
Guides an agent through installing, configuring and running local backtests in the lo2cin4bt repo, then explaining the results and fixing setup problems.
JingHao-Leon/dsh-alpha-desk
Runs an AI investment research desk around the aihf hedge-fund CLI, with research cycles, backtests and iFinD data, under a risk gate and a rule against placing real trades.
HKUDS/Vibe-Trading
Index of Eastmoney's free, no-token market data interfaces for China A-shares and Hong Kong stocks: fund flows, dragon-tiger lists, margin trading, reports and news.
HKUDS/Vibe-Trading
Retrieves public OKX cryptocurrency market data such as spot prices, candlesticks, funding rates and open interest through the OKX V5 REST API, with no authentication.
HKUDS/Vibe-Trading
Fetches U.S. SEC EDGAR data: resolves tickers to CIK numbers, lists recent 10-K, 10-Q and 8-K filings with document URLs, and pulls XBRL financial series.
HKUDS/Vibe-Trading
Predicts whether a mainland China A-share company risks an ST or *ST warning after its next annual report, using financial thresholds and Sina penalty records.
HKUDS/Vibe-Trading
Breaks a structural trend such as AI infrastructure into its physical supply chain and ranks lesser-known listed companies sitting on each bottleneck.
HKUDS/Vibe-Trading
Plans and drafts an eight-part, roughly 120k-word investigative series on one company, built around a strict fact-check pass rather than fast drafting.
Categories
Guides writing signal_engine.py for backtests that mix markets such as A-shares, crypto, US equities and forex, with per-market parameters and volatility-adjusted weights. SZ with BTC-USDT, the CompositeEngine handles trading calendar alignment, shared capital, per-market rules and commissions, so the strategy only has to emit per-symbol signals. The skill shows how to group symbols by market inside generate() and apply separate indicator settings, with a table giving A-shares, crypto, US equities and forex their own moving average, RSI and volatility lookback values.
Cross-Market Signal Engine fits situations like: backtesting a portfolio that mixes A-shares with crypto or forex; setting different indicator parameters for each market; weighting positions by volatility across assets with different risk levels; writing the config.json for a cross-market run.
Run `npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a claude-code`. Or copy the skill folder (agent/src/skills/cross-market-strategy in HKUDS/Vibe-Trading) into .claude/skills/cross-market-strategy in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a codex`. Or copy the skill folder (agent/src/skills/cross-market-strategy in HKUDS/Vibe-Trading) into .agents/skills/cross-market-strategy in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/Vibe-Trading --skill cross-market-strategy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cross-market-strategy, .gemini/skills/cross-market-strategy, .github/skills/cross-market-strategy and .opencode/skills/cross-market-strategy in your project.
Going by SKILL.md and its folder, Cross-Market Signal Engine needs Python for the scripts in its folder. Our summary lists: A backtest runner with the CompositeEngine.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cross-Market Signal Engine is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 983 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cross-Market Signal Engine: Strategy Performance Report (tradesdontlie/tradingview-mcp, 6.8k stars), WorldQuant BRAIN Alpha Research (QuantML-Research/wq-alpha-research, 407 stars), Regime (jackson-video-resources/markov-hedge-fund-method, 484 stars) and Virtuals Protocol Acp (Virtual-Protocol/openclaw-acp, 168 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HKUDS (a GitHub organization) maintains it in HKUDS/Vibe-Trading, which has 35,163 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on October 10, 2026.
Source: HKUDS/Vibe-Trading on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.