Twin Engine Portfolio
- Uzmanlar
-
Tyrone Gareth Jackson
Independent MQL5 developer and active trader based in Johannesburg, South Africa. - Sürüm: 1.2
- Etkinleştirmeler: 10
Two independent strategies in one Expert Advisor, run from a single chart: an index dip-buyer and a gold trend-follower. They trade different markets in different ways, so their weak periods tend to fall at different times.
No grid. No martingale. No averaging. Every trade has a stop loss.
HOW IT WORKS
Engine 1 - Index Dip (daily, long only)
- Trades USTEC, US500, US30 and JP225 from one chart.
- Buys a short pullback (RSI(2) below 10) only while the index is above its 200-day SMA.
- Exits on the first daily close above the 5-day SMA, or after 10 days.
- Stop: 3 x daily ATR(14). Default risk: 1% of balance per trade.
Engine 2 - Gold Trend (XAUUSD, M15, buys and sells)
- Enters when the 9 EMA crosses the 50 EMA, with price past the 100 EMA and the H1 trend agreeing.
- Sells only while gold's daily close is below its 200-day SMA.
- Exits when the 9 EMA crosses back over the 20 EMA.
- Stop behind the 10-bar swing plus a small ATR buffer. Default risk: 0.5% per trade.
Each engine has its own risk setting and magic number, and either one can be switched off.
BACKTEST (MT5 Strategy Tester, Exness symbols, 1-minute OHLC, $10,000 start, January 2022 - December 2026)
- Index Dip: 224 trades, profit factor 2.65, maximum drawdown 4.2%.
- Gold Trend: 961 trades, profit factor 1.39, maximum drawdown 8.3%.
- Both together: 1185 trades, profit factor 1.52, maximum closed-trade drawdown 8.1%, 16 of 20 quarters positive.
- Monthly correlation between the two engines: -0.11.
Backtest results are not a forecast. Live results will differ, especially when market conditions change.
SETUP
1. Attach to one XAUUSD M15 chart (any chart works; the gold chart gives the fastest reaction for the gold engine).
2. Allow Algo Trading.
3. Symbol names are matched to your broker automatically (for example US500, US500m, US500z, US500c). If your broker uses different names, type them in the "Index symbols" and "Gold symbol" inputs.
4. Keep the terminal running (a VPS is recommended).
ACCOUNT SIZE
The EA skips any trade whose smallest lot would risk more than the cap you set (default 3% for indices, 2% for gold).
- Index engine only: from about $600 (US30 and USTEC trades will then risk close to 3%).
- Both engines at the default settings: about $3,000 or more. Below that, many gold trades are skipped.
A hedging or netting account both work. Raw-spread or zero-spread accounts suit the gold engine best.
INPUTS (main ones)
- Run the index dip engine / Run the gold trend engine: switch each engine on or off.
- Index symbols / Gold symbol: the markets to trade.
- % of balance risked per trade, and the cap above which a trade is skipped, for each engine.
- Gold exit EMA (default 20) and the daily trend filter for gold sells.
- Magic numbers for each engine (must be different).
