Gold Twin Basket
- Experts
- Versione: 1.80
- Attivazioni: 5
Gold Twin Basket is an Expert Advisor for MetaTrader 5 with independent buy and sell cycles, pending-stop entries, grid limit additions and profit-based exit management.
Gold is the primary strategy focus. Version 1.71 also provides contract-normalized distance handling for other compatible instruments, including forex. Compatibility does not establish profitability or suitable settings for every instrument.
Trading and exit management
Each direction starts with a pending stop order. Positions open only when price reaches the trigger, so buy and sell positions do not necessarily open simultaneously.
Default settings include:
-
Initial position: 0.02 lots.
-
Grid volume unit: 0.01 lots, with progressively sized additions.
-
First-position profit target: 5 deposit-currency units.
-
Trailing activation: 3 units of price profit.
-
Initial profit lock: 1 unit.
-
Further trailing increments: 0.10 units.
-
Basket target after another same-direction position opens: 3 units.
Targets use price profit before commission, fees and swap. Actual net results can differ.
Manually closed volume is not restored at its old entry price. Once a direction and its previous order outcomes are confirmed flat, a fresh cycle can begin near the current quote.
Virtual exit protection requires the EA and terminal to remain running. Execution delays, gaps, slippage and broker stop/freeze restrictions can affect exits. A profit lock is an exit-management instruction, not a guaranteed realized amount.
Distance settings
PriceDistanceUnits defaults to CONTRACT_NORMALIZED. One configured distance unit represents the approximate local price movement producing one deposit-currency unit of price profit for a reference 0.01 lot. The EA calculates this using the symbol’s contract and profit-conversion details. Calibration is retained for each direction’s cycle across terminal restarts.
On a USD account with standard 100-ounce XAUUSD, the defaults retain these gold-price distances:
-
EntryOffset: 0.50.
-
GridDistance: 3.00.
-
MaxEntrySpread: 0.80.
On EURUSD with a 100,000-unit contract and USD account, the same defaults correspond approximately to:
-
Entry offset: 0.00050.
-
Grid spacing: 0.00300.
-
Maximum entry spread: 0.00080.
RAW_PRICE is an alternative for inputs deliberately expressed in quote-price units. Gold’s raw 3.00 grid spacing is not a suitable EURUSD distance.
Change distance mode and grid-distance settings only when both directions and their pending orders are flat. Broker minimum distances can move initial pending stops farther from the quote. Ordinary unfilled initial stops refresh after 60 seconds.
Main inputs
-
MagicNumber: identifies the EA’s orders and positions.
-
InitialLots: initial-position volume.
-
GridLotUnit: volume unit used for progressive grid additions.
-
PriceDistanceUnits: contract-normalized or raw-price distances.
-
EntryOffset: initial pending-entry offset.
-
GridDistance: spacing between grid levels.
-
MaxEntrySpread: spread threshold for new entries.
-
FirstTPProfit: first-position price-profit target.
-
FirstTrailStart: trailing activation threshold.
-
FirstLockedProfit: initial trailing profit lock.
-
FirstTrailStep: additional trailing increment.
-
BasketTarget: per-direction basket price-profit target.
-
EnableNewsFilter: enables the high-impact USD news filter.
-
NewsMinutesBefore / NewsMinutesAfter: entry-pause windows around filtered events.
-
HistoricalNewsOffsetMinutes: fixed historical calendar time adjustment.
-
DeviationPoints: requested execution deviation in symbol points.
Account and broker requirements
The strategy requires an MT5 retail hedging account that permits opposite positions and does not enforce FIFO-only closing. Netting accounts are unsupported.
The symbol must support the configured lot sizes, stop/limit pending orders, stop loss, take profit and GTC expiration.
Run one EA instance per account, symbol and MagicNumber combination. M1 is a convenient chart timeframe; management is tick-based. Keep the terminal or VPS running.
All monetary inputs use the account’s native deposit currency. On USD accounts, 5 means USD 5; on EUR accounts, it means EUR 5. Cent-denominated accounts use the platform’s cent units, without automatic conversion to whole dollars. Parameter suitability must be assessed for the actual account and contract.
News filter
The default live filter uses MT5 economic-calendar events classified as high-impact USD news. It applies this USD filter on every instrument; it does not automatically filter all currencies in a pair.
When required calendar data is unavailable, new entries pause while existing exits remain managed.
Historical calendar data is embedded with coverage from 1 January 2015 through 20 November 2026 at 00:00 in the source server’s time convention. HistoricalNewsOffsetMinutes provides a fixed adjustment and does not reconstruct historical daylight-saving changes. Event completeness has not been independently audited.
Outside historical coverage, new entries pause when the filter is enabled. An explicitly unfiltered backtest must not be presented as a filtered result.
Risk disclosure
This strategy uses averaging/grid additions with increasing volume. The current version has no configured basket-loss stop, maximum grid-depth cap or maximum total-lots risk cap. Broker limits are not a substitute for these controls.
A sustained directional move can cause substantial floating losses, margin calls or loss of the account. First-position trailing does not provide a hard stop-loss for an expanded basket. Independent buy and sell cycles do not make the strategy loss-free.
No verified live performance, minimum capital requirement, expected return or maximum drawdown is asserted. Test with realistic spreads, commissions, swaps, leverage and execution conditions before use. Past performance does not guarantee future results.
Support
Use product comments or MQL5 private messages. Include the EA version and relevant Experts/Journal errors. Never send trading passwords.
