cross-asset-arbitrage-engine

Detect cross-asset arbitrage opportunities using cointegration tests and z-score spread signals.

10|2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mahmoud20138/Tradecraft --skill cross-asset-arbitrage-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cross-asset-arbitrage-engine
Source: https://github.com/mahmoud20138/Tradecraft/tree/main/plugins/tradecraft/skills/cross-asset-arbitrage-engine
Command: npx skills add https://github.com/mahmoud20138/Tradecraft --skill cross-asset-arbitrage-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Statistical arbitrage, triangular arbitrage, basis trades, and convergence detection across instruments. Use this skill whenever the user asks about "arbitrage", "stat arb", "pairs trading", "triangular arbitrage", "convergence trade", "mean reversion pair", "cointegration", "basis trade", "spread trading", "relative value", "mispricing detection", or any cross-asset relative value strategy. Works with pair-correlation-engine and mt5-chart-browser.

Core Features & Use Cases

  • Cointegration tests (cointegration_test) to identify mean-reverting relationships between price series.
  • Hedge ratio estimation (hedge_ratio) for constructing and sizing pairs trades.
  • Triangular arbitrage checks (triangular_arb_check) across currency triples.
  • Spread signals (spread_z_score_signals) for automated entry/exit based on z-scores.
  • Scans for cointegrated pairs (scan_cointegrated_pairs) across a set of assets.

Quick Start

Input two price series to detect cointegration, compute hedge ratios, and generate actionable cross-asset arbitrage signals.

Frequently Asked Questions about cross-asset-arbitrage-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect cointegration for pairs trading?

To detect cointegration for pairs trading, you input two price series into the engine to run statistical cointegration tests. This identifies mean-reverting relationships and estimates OLS hedge ratios to construct market-neutral spread positions.

What is the best way to calculate triangular arbitrage opportunities?

Calculating triangular arbitrage opportunities requires checking currency triples for pricing discrepancies. The engine performs triangular arbitrage checks across instrument sets to detect mispricing and calculate actionable convergence trades.

How do I generate spread signals for mean reversion strategies?

Spread signals for mean reversion strategies are generated by computing z-scores of the price spread between instruments. The engine automates entry and exit triggers based on configurable z-score thresholds derived from the cointegrated series.

Can I scan multiple assets to find cointegrated pairs automatically?

Yes, you can scan multiple assets to find cointegrated pairs automatically. The engine includes a cointegrated-pairs scanner that processes a set of time-series instruments and outputs configurable results identifying statistically valid pairs.

Does this engine support basis trades and relative value mispricing detection?

Yes, the engine supports basis trades and relative value mispricing detection. It processes cross-asset time-series data to identify convergence opportunities, enabling statistical arbitrage across multiple instruments using hedge ratios and spread signals.

Related Skills