Alibaba Gold

Alibaba Gold is a MetaTrader 5 Expert Advisor that trades EURUSD and gold together using a statistical mean-reversion strategy.

The EA monitors the relationship between the two instruments, calculates a hedge ratio and spread z-score, and looks for deviations that meet its entry conditions. Each trading basket contains two opposing positions: one instrument is bought while the other is sold.

Although gold is part of the strategy, Alibaba Gold is a two-instrument trading system.

Main features

  • Automatic detection of broker EURUSD and gold symbols, including common prefixes, suffixes, and GOLD naming.

  • Z-score entry and exit conditions.

  • Adjustable correlation filter and hedge-ratio smoothing.

  • Separate lot settings for each instrument.

  • Combined margin checks before opening a basket, followed by individual order checks.

  • Broker trading-session checks and deferred close retries.

  • Configurable basket profit and loss thresholds.

  • Trading schedules, Friday controls, and path-memory filtering.

  • Dashboard showing operating status, open trading instruments, basket profit/loss, and model statistics.

  • Dashboard drawing is disabled automatically during non-visual backtests.

Setup

  1. Make sure your broker offers both EURUSD and gold against USD.

  2. Attach one instance to an EURUSD or gold chart. M15 is the recommended display timeframe.

  3. Leave both instrument overrides blank for automatic detection.

  4. Select lot sizes appropriate for your account balance, leverage, and broker contract specifications.

  5. Enable Algo Trading.

The EA calculates its signals using M1 data internally, independently of the attached chart timeframe. Both instruments require sufficient historical data.

Avoid running multiple instances on the same instruments with the same magic number.

Input parameters

Symbols and position sizing:

  • FirstLegOverride — Optional exact broker symbol for EURUSD. Leave blank for automatic detection.

  • SecondLegOverride — Optional exact broker symbol for gold against USD. Leave blank for automatic detection.

  • LotsAset — Base lot size for EURUSD.

  • LotsBset — Base lot size for gold.

  • XBalance — Set to zero for fixed lots. A positive value enables stepped lot multiplication based on account balance.

  • showPanel — Show or hide the chart dashboard.

Entry and exit settings:

  • EntryThreshold — Absolute z-score required for an entry.

  • ExitThreshold — Z-score reversion level used to close a basket.

  • smoothing — Hedge-ratio smoothing factor.

Correlation settings:

  • CorrThreshold — Minimum correlation required for entry.

  • CorrOnReturns — Calculate correlation from candle price changes instead of price levels.

  • UseAbsCorr — Use absolute correlation, allowing strongly inverse relationships to meet the filter.

Risk and trade management:

  • magicNumber — Identifier for positions managed by this EA.

  • closeTarget — Profit threshold for an additional signal-based basket exit. Zero disables this condition.

  • closeTargetProfit — Basket profit threshold for requesting closure. Zero disables it.

  • closeTargetLoss — Basket loss threshold for requesting closure. Zero disables it.

  • minWaitAfterClose / minWaitAfterClose2 — Combined entry cooldown. The current release interprets these values in seconds.

Trading schedules:

  • TradeStartHour / TradeStartMinute / TradeEndHour / TradeEndMinute — Allowed entry window in broker server time.

  • TradeStartHourC / TradeStartMinuteC / TradeEndHourC / TradeEndMinuteC — Allowed normal exit window in broker server time. Basket loss protection can request closure outside this window.

  • fridayStopHour — Friday entry cutoff hour. Zero disables the cutoff.

  • closeAllOnFriday — Request closure of managed positions after the enabled Friday cutoff.

Path-memory settings:

  • PathMemoryEnable — Enable additional filtering of repeated spread excursions.

  • PathMemoryWindowMinutes — Lookback window following a basket close.

  • PathMemoryMinPriorBars — Minimum excursion age used by the filter.

  • PathMemoryResetDepth — Z-score reset level used to clear path-memory blocking.

Trading considerations

Opposing positions in different instruments do not eliminate market risk. Their relationship can change, and either or both positions can lose money.

Basket thresholds are managed by the EA rather than guaranteed execution prices. If a market is closed or an order cannot be executed, closure must wait until trading becomes available.

Test the settings using your broker’s data and a demo account before live use. Historical results do not guarantee future performance.


More from author
Kingfish Gold EA Kingfish Gold EA is an automated trading system for MetaTrader 5, designed for gold trading. It identifies price swings and places Buy Stop or Sell Stop pending orders at calculated entry levels. No Grid. No Martingale. The EA does not build a ladder of orders to average into a losing position. It does not increase lot sizes to recover previous losses. Trade size follows your selected fixed-lot or percentage-based sizing settings. With percentage-based sizing, lot size can chang
Kiwi MTF Trend Pro is a multi-timeframe trend-following indicator for MetaTrader 5. It combines trend direction, trend strength and momentum confirmation in one clear chart display. The indicator projects the selected analysis timeframe onto the current chart. For example, traders can monitor an H1 trend while working from an M5 chart. Kiwi MTF Trend Pro is designed for Forex, Gold, indices, commodities and other instruments available in MetaTrader 5. MAIN FEATURES Multi-Timeframe Trend Analysis
Quantum Diamond
Don Luong
5 (1)
QUANTUM DIAMOND MT5 9 Independent Strategies. One Automated Trading System. Quantum Diamond MT5 is a multi-strategy Expert Advisor for MetaTrader 5. It combines nine independent automated trading strategies with individual Stop Loss control, automatic money management, spread protection, news filtering, account protection and a real-time strategy dashboard. Instead of relying entirely on one entry model, Quantum Diamond uses a portfolio-style architecture designed to identify trading opportuniti
Kiwi Commander MT5 is an Expert Advisor for MetaTrader 5 designed for automated trading on Gold (XAUUSD). The EA combines a structured entry system with configurable entry quality, lot management, drawdown protection, trailing exit management, spread protection, trading-session controls and an on-chart monitoring interface. The default configuration is designed for a controlled single-trade approach with the M15 timeframe. Main Features Automated Gold Trading Kiwi Commander MT5 is designed prim
Kiwi Lifestyle Gold Kiwi Lifestyle Gold is an automated trading Expert Advisor designed for Gold (XAUUSD) on MetaTrader 5. The EA combines three independent trading strategies with grid-based recovery and volume-weighted basket management. Each strategy operates independently and can be enabled or disabled by the user. The objective is to provide a complete automated Gold trading system with flexible lot sizing, basket management, trading schedules and account protection controls in one EA. Main
FREE
Quantum Kiwi Gold MT5 Quantum Kiwi Gold MT5 is a multi-strategy Expert Advisor designed primarily for Gold (XAUUSD) trading on MetaTrader 5 . The EA combines three independent DeMarker-based trading strategies with multi-timeframe confirmation, individual trading sessions, grid-based position management and basket profit management. Instead of relying on one entry condition, Quantum Kiwi Gold uses three separate strategy engines. Each strategy evaluates the market independently and manages its o
FREE
Quantum Platin MT5 Quantum Platin MT5 is a multi-strategy Expert Advisor for MetaTrader 5 designed to combine three independent trading profiles within one automated trading system. The EA uses separate BUY and SELL strategy logic together with grid-based position management, basket profit targets, automatic lot sizing and account protection controls. Quantum Platin is designed for traders who want an automated multi-strategy EA with a clear chart dashboard and configurable risk management. Main
FREE
Kiwi AI Gold MT4 12 Independent Strategies. One Intelligent Gold Trading System. Kiwi AI Gold MT4  is a multi-strategy Expert Advisor developed specifically for automated Gold (XAUUSD) trading on MetaTrader 4. Instead of depending on a single entry method, Kiwi AI Gold combines 12 independent trading strategies inside one Expert Advisor. Each strategy can be switched ON or OFF individually, allowing traders to customize how the EA participates in different Gold market conditions. The EA combines
Quantum Diamond MT4 Quantum Diamond MT4 is a multi-strategy Expert Advisor for MetaTrader 4 designed to combine multiple independent trading strategies inside one automated trading system. Instead of depending on a single entry method, Quantum Diamond uses a portfolio of 9 trading strategies . Each strategy can identify and manage its own trading opportunities while the EA provides centralized money management, trade management and risk controls. The objective is simple: 9 Strategies. One EA. Fl
Kiwi AI Gold MT5 12 Independent Strategies. One Intelligent Gold Trading System. Kiwi AI Gold MT5 is a multi-strategy Expert Advisor developed specifically for automated Gold (XAUUSD) trading on MetaTrader 5. Instead of depending on a single entry method, Kiwi AI Gold combines 12 independent trading strategies inside one Expert Advisor. Each strategy can be switched ON or OFF individually, allowing traders to customize how the EA participates in different Gold market conditions. The EA combines
Quantum AI Universe MT5 Quantum AI Universe MT5 is an automated Gold trading Expert Advisor developed specifically for XAUUSD on MetaTrader 5 . The EA combines M15 market-structure analysis with H1 trend confirmation to identify directional Gold trading opportunities. Instead of relying on the chart timeframe selected by the user, its primary analysis timeframes are handled internally. The objective is simple: Analyze structure. Confirm the trend. Control risk. Execute automatically. Gold-Focuse
Quantum Star Gold MT5 Quantum Star Gold MT5 is an Expert Advisor developed for automated Gold (XAUUSD) trading on MetaTrader 5. The EA uses a multi-zone H1 breakout framework. Instead of relying on one breakout level, the system monitors six selectable trading zones and manages entries, pending orders, open positions and risk automatically. The strategy is designed around H1 market structure while providing configurable controls for trading direction, position sizing, spread, sessions and trade
QUANTUM OCEAN SIGNALS MT5 Quantum Ocean Signals MT5 is a multi-filter decision-support indicator for MetaTrader 5. It evaluates trend direction, momentum, directional strength, volatility and candle confirmation to display structured BUY and SELL setups after a candle has closed. The indicator does not open or manage trades. It gives manual traders a clear trade plan consisting of a signal, an adaptive Stop Loss and three optional Take Profit reference levels. MAIN FEATURES • Closed-candle
Kiwi Smart Trend System MT5 is a multi-feature trend and signal indicator for MetaTrader 5. The indicator combines trend direction, momentum, volatility, volume and multi-timeframe analysis in one clear chart system. It is designed to help traders identify market direction, evaluate signal conditions and plan potential entries with configurable risk-to-reward zones. Kiwi Smart Trend System is an analytical indicator. It does not open, modify or close trades. MAIN FEATURES Bullish and bearish tre
KIWI TRADE ASSISTANT PRO MT5 Kiwi Trade Assistant Pro MT5 is a visual manual-trading and position-management utility for MetaTrader 5. It helps traders plan entries, calculate position size, place orders and manage open positions from one chart panel. This product does not generate trading signals and does not decide market direction. The trader chooses every entry and remains responsible for risk and execution. MAIN FEATURES • Visual Entry, Stop Loss and Take Profit lines • Automatic lot c
Dark Hunter is a multi-pair Expert Advisor for MetaTrader 5. It uses rule-based overnight trading with configurable session times, price bands and trading filters. The EA can manage up to 28 configured forex pairs from one chart. In paired-limit mode, it places buy and sell limit orders around a calculated price centre and manages their targets and protective stops. Features Multi-pair operation from one chart. Configurable trading sessions based on broker server time. Fixed-lot or automatic pos
True Trend Trader — MT5 Expert Advisor True Trend Trader combines automatic trend-following entries with a manual trading panel. It uses SuperTrend, higher-timeframe confirmation, and an optional MA200 filter to identify trade direction, while displaying entry, stop-loss, and take-profit levels directly on your chart. Main features Manual and Auto modes: choose your own direction or let the EA trade confirmed signals. UP/DOWN controls: refresh suggested prices for a BUY or SELL setup. Flexible s
Sea Gold — No Grid. No Martingale. Sea Gold is a gold breakout Expert Advisor for MetaTrader 5. It uses confirmed swing levels to place pending entry orders, with configurable stop loss, take profit and trade management. No Grid Sea Gold does not build a ladder of positions at fixed price intervals or add recovery trades as the market moves against a position. No Martingale Sea Gold does not increase lot sizes because previous trades lost. Choose fixed lots or percentage risk based on account ba
Filter:
No reviews
Reply to review