Statistical Arbitrage AI

StatArb Basket: Statistical Arbitrage EA for MetaTrader 5

Market-neutral pairs trading on forex and commodities.

StatArb Basket trades the relationship between two related instruments instead of betting on market direction. When the price gap between a pair stretches unusually far from its recent norm, the EA sells the expensive leg and buys the cheap one, then closes both when the gap returns to normal.

How it works

  • Estimates a rolling hedge ratio between the two symbols using regression on log prices.
  • Measures the spread as a z-score and enters when it moves beyond your threshold.
  • Sizes the second leg so both legs carry matched money exposure, even across different contract sizes (for example gold against silver).
  • Exits on mean reversion, a z-score stop, a maximum holding time or a Friday close.
  • Trades a basket of pairs at once, with each pair managed independently.

Key features

  • Multi-pair basket set up from a single text input, e.g. EURUSD/GBPUSD,XAUUSD/XAGUSD .
  • Stability filters: return correlation and an ADF-style stationarity test, so pairs that have stopped moving together are skipped.
  • Cost filter: skips trades whose expected profit doesn’t clearly exceed the two-leg spread cost.
  • Spread cap per leg, as a percentage of price.
  • Risk-based position sizing at the stop level, or fixed lots.
  • Trading-hours window, Friday flatten and a daily loss limit that closes everything and halts trading.
  • Rollback protection: if the second leg fails, the first is closed. Orphaned legs are cleaned up automatically.
  • Works on netting and hedging accounts. On netting accounts, each symbol can appear in only one pair.

Requirements

  • MetaTrader 5, with all basket symbols in Market Watch.
  • A low-spread broker with forex and metals or oil CFDs.
  • Recommended timeframes: H1 or H4.
  • Recommended minimum balance: $1,000 or more, since small accounts can’t hedge accurately at minimum lot sizes.

Risk disclosure
Trading leveraged products carries substantial risk. Statistical relationships between instruments can weaken or break without warning, and past performance does not indicate future results. Test on a demo account and in the Strategy Tester before trading live, and only risk capital you can afford to lose.

Pairs to trade on

Pair Why they move together Notes
AUDUSD / NZDUSD Similar commodity-driven economies, same region The classic forex pair and a good first test
EURUSD / GBPUSD Both are dollar-quoted European majors Very liquid, tight spreads, but correlation shifts with Brexit-type news
EURJPY / GBPJPY Same yen leg, so mostly euro against pound Higher volatility; watch Bank of Japan events
XAUUSD / XAGUSD Gold and silver are both precious metals Silver spreads are wide, and small accounts may hit lot-rounding limits
XBRUSD / XTIUSD Brent and WTI are the same commodity in two markets Symbol names vary (UKOIL/USOIL); avoid the daily roll hours

A starter basket that avoids overlapping symbols:

EURUSD/GBPUSD,AUDUSD/NZDUSD,EURJPY/GBPJPY,XAUUSD/XAGUSD,XBRUSD/XTIUSD

What to avoid

  • Inversely correlated pairs like EURUSD/USDCHF. The EA rejects negative hedge ratios.
  • Triangular sets like EURUSD/GBPUSD/EURGBP, because the legs are mathematically linked.
  • Exotics and thin pairs, where spread costs swallow the edge.
  • Any pair that keeps failing the correlation or ADF filter. That means the link isn’t stable right now.

I can’t promise any of these will be profitable, so check each one in the Strategy Tester with your broker’s data before using it. This is general information and not financial advice.


Другие продукты этого автора
Автоматизированная торговая система XAUUSD, объединяющая каналы линейной регрессии, неглубокие уровни Фибоначчи (23,6%–38,2%), подтверждение тренда на нескольких таймфреймах, фундаментальные фильтры и продвинутое управление рисками с соотношением риск/прибыль 1:3 и адаптивным трейлинг-стопом. Этот продукт предназначен для внутридневной и свинг-торговли, но не для скальпинга. Настройка EA Параметр  Изменённая настройка Символ  XAUUSD Таймфрейм входа  H1 Подтверждение тренда  H4 Зона входа по Фиб
Just Flip It
Mark Telvin Gikiri Nyoko
Stop Fighting the Trend. Start Trading with the Institutional Footprint. This isn't a simple "buy low, sell high" martingale. This is an institutional-grade algorithmic solution that uses market structure to determine when and where to deploy a grid. Standard grid EAs place orders at set intervals, regardless of market conditions. In a strong trend, they just keep adding to a losing position. This approach works until it doesn't, usually leading to a catastrophic margin call. Market Structure A
Momentum Swing EA trades with the dominant trend on the daily chart and enters on 4-hour breakouts. It covers a whole watchlist from a single chart. It sizes every trade by risk, so you know the planned loss before you enter. How it works Daily trend filter. A market qualifies only when price, the 50 EMA and the 200 EMA are aligned and 60-day momentum agrees. Momentum ranking. Qualifying markets are ranked by ATR-normalised momentum, so the strongest trends get the open slots first. 4-hour entry
Pumpfun
Mark Telvin Gikiri Nyoko
Stop staring at charts waiting for the setup. This EA trades the ICT model for you on gold and other liquid pairs, with the same logic many traders do by hand. What it looks for 1H market structure to set the daily bias Liquidity sweeps on the 15M chart, where stops get hunted Fair value gaps on 30M, 15M and 5M, confirmed by displacement 5M rejection entries inside the gap, with the stop placed beyond the sweep Built for traders who want control Trades only in the London and New York  Stacks mul
ElliottWaveCFDHunter
Mark Telvin Gikiri Nyoko
ElliottWave CFD Hunter EA Ride the Wave. Capture the Trend. Automate Your Edge. Stop chasing the market. Start trading its structure. Markets move in waves. The challenge is knowing which wave to ride and when to enter. ElliottWave CFD Hunter is an automated trading Expert Advisor for MetaTrader 5, engineered around the principles of Elliott Wave Theory, Fibonacci retracement levels, and price structure analysis. Designed for Forex, Indices, and Commodities CFDs, this EA seeks to identify potent
Ichimoku Cloudwalker
Mark Telvin Gikiri Nyoko
Ichimoku Cloudwalker is an Expert Advisor for MetaTrader 5 that automates a classic Ichimoku trend-following strategy. It waits for a closed candle to confirm four things before it enters: Tenkan-sen crosses Kijun-sen Price closes beyond the cloud Chikou Span confirms the direction The future cloud agrees (optional) All signals come from closed bars, so nothing repaints and nothing is decided on a half-formed candle. Risk is built in, not bolted on Position size is calculated from your chosen ri
Garch System Intraday
Mark Telvin Gikiri Nyoko
Turn Market Volatility into a Trading Advantage. Markets move in cycles of uncertainty. The GARCH Trading Bot for MetaTrader 5 is designed to adapt to changing market conditions using volatility forecasting and intelligent intraday trade execution. Powered by a GARCH (1,1) volatility model and enhanced with trend-following breakout logic, this Expert Advisor aims to identify trading opportunities while dynamically adjusting risk parameters to evolving market volatility. Stop relying solely on s
Adaptive Crypto EA
Mark Telvin Gikiri Nyoko
ML Long-Horizon EA – Intelligent Algorithmic Trading for MT5 Turn Market Data Into Data-Driven Trading Decisions. Unlock a smarter approach to automated trading with the ML Long-Horizon EA , a machine-learning-powered Expert Advisor designed to analyze market behavior, identify directional opportunities, and execute systematic trades on MetaTrader 5. Powered by an adaptive Logistic Regression model with rolling walk-forward training, this EA continuously learns from historical price patterns to
Quant Edge Optimizer
Mark Telvin Gikiri Nyoko
QuantEdge CFD EA v1.05 Quantitative Regime-Adaptive Momentum & Mean-Reversion Expert Advisor for MetaTrader 5 Trade smarter with quantitative market analysis, adaptive trading regimes and disciplined risk management. QuantEdge CFD EA v1.05 is an algorithmic trading system for MetaTrader 5, designed to identify market opportunities using statistical momentum, autocorrelation, price efficiency and volatility analysis. Rather than relying on conventional indicator crossovers alone, QuantEdge evalua
ORB Identfier
Mark Telvin Gikiri Nyoko
Opening Range Breakout System Multi-symbol automated CFD trading Opening range detection Confirmed breakout entries ATR-based stop losses Risk-based lot sizing Automated take profit and trailing stops Portfolio and daily drawdown protection Parameter Default Opening range timeframe M5 Breakout confirmation M15 Opening range start 09:00 Range duration 30 minutes Entry window 240 minutes Risk per trade 0.25% Maximum portfolio risk 1.50% Daily loss limit 2% Maximum drawdown 8% Maximum positions 6 R
Turtle soup Hunter
Mark Telvin Gikiri Nyoko
Turtle Soup EA: False Breakout Reversal Trader for MT5 Turtle Soup EA automates the Turtle Soup pattern popularized by Linda Raschke and Larry Connors. It trades against failed breakouts, which is where many breakout traders get trapped. How it works When price breaks to a new N-bar low (or high) that hasn’t been tested for several bars, many breakout traders pile in. If price then snaps back inside the range, those traders are stuck and the move often reverses. The EA looks for that moment. Lon
VWAP tailored POC
Mark Telvin Gikiri Nyoko
VWAP + POC EA: Institutional Levels, Automated for MT5 VWAP + POC EA trades around two of the levels that active traders watch most: the session VWAP (volume-weighted average price) and the POC (Point of Control), the price where the most volume has traded. It looks for price reacting to these levels and enters with a defined stop and target. How it works The EA builds both levels from closed bars and draws them on your chart, so you can see what it sees. Session VWAP: resets at a start hour you
Correlation Trader Basket  Correlation Trader Basket is an automated Expert Advisor for MetaTrader 5 designed to identify temporary price divergences between historically correlated instruments. It uses correlation analysis, regression-based hedge ratios and statistical mean-reversion signals to identify potential pair-trading opportunities. Instead of relying on the direction of a single instrument, the EA monitors two related instruments and looks for situations where their price relationship
CRT + MSNR Filter EA – Smart Liquidity Sweep Trading for MT5 Trade the liquidity sweep. Confirm with market structure. Enter with precision. CRT + MSNR Filter EA is an automated trading robot for MetaTrader 5 that combines Candle Range Theory (CRT) with Market Structure and Support & Resistance (MSNR) confirmation. The EA is designed to identify liquidity sweeps around previous candle ranges and filter potential entries using market structure breaks and support/resistance confluence. Rather than
Фильтр:
Нет отзывов
Ответ на отзыв