Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cross-market-strategy

Skill by HKUDS

Cross-market-strategy is a skill that helps an AI assistant write a signal_engine.py for backtests spanning several markets, such as A-shares with crypto or equity with forex. It is aimed at users building multi-market portfolio strategies.

  • Score 92
  • 39k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cross-market-strategy

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.claude/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/cross-market-strategy ~/.claude/skills/cross-market-strategy

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cross-market-strategy in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Cross-market-strategy is a skill for writing a signal_engine.py file for backtests that use symbols from different markets, such as A-shares with crypto or equity with forex. It explains how to group symbols by market, apply market-specific indicator parameters, and scale signals by volatility so that a volatile asset like crypto does not take the whole risk budget.

According to the source, the CompositeEngine handles calendar alignment, shared capital, and market rules such as T+1 for A-shares and funding fees for crypto, so the strategy only needs to output per-symbol signals. The skill includes a market detection table, a config.json example with source set to auto, and a link to a complete example file. It is intended for users who run backtests across multiple markets.

Written from the project's SKILL.md and checked against it.

What it can do

  • Market grouping in generate()Groups symbols by market type and applies market-specific indicator parameters to each group.
  • Per-market parameter tablesLists moving average, RSI and volatility lookback settings for A-share, crypto, US equity and forex.
  • Volatility-adjusted weightsScales signals by inverse rolling volatility so high-volatility assets do not dominate the portfolio.
  • Cross-market signal patternsDescribes momentum spillover, risk-on/risk-off, hedging and correlation regime ideas.
  • Market detection heuristicsMaps symbol formats such as 000001.SZ, BTC-USDT and EUR/USD to a market type.
  • Cross-market config.jsonShows a config setup with source set to auto for symbols from several markets.

What you need

  • Python

Try asking

  • Write a signal_engine.py that backtests A-shares and BTC-USDT together.
  • Add volatility-adjusted weights to my multi-market strategy.
  • Create a config.json for backtesting 000001.SZ and BTC-USDT from 2024.

Good to know

  • For cross-market backtests, source must be set to auto.
  • extra_fields should be null because not all markets support fundamentals.
  • The per-market parameter values are given as a reference table, not as tuned results.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent/src/skills/cross-market-strategy/SKILL.md, agent/src/skills/cross-market-strategy/example_signal_engine.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • example_signal_engine.py3 KB

Alternatives to cross-market-strategy

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

cross-market-strategy: common questions

Which markets does this strategy skill cover?

The source lists A-shares, HK equity, Canada equity, US equity, crypto, China futures, global futures and forex, each with an example symbol pattern.

Does the engine handle trading calendars and fees?

According to the source, the engine aligns trading calendars and applies market rules such as T+1 and swap per symbol. Commission and slippage are sent to the correct sub-engine for each symbol.

Why does the skill use volatility-adjusted weights?

The source says BTC daily volatility is around 5% against about 1.5% for A-shares. Without adjustment, crypto would consume the entire risk budget.

How do I install cross-market-strategy?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cross-market-strategy free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is cross-market-strategy safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cross-market-strategy?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

cross-market-strategy Install

Add to stack

Loading.