Gold Regime Portfolio
- Experts
-
Sondang Manik
Forex Trader | MetaTrader Tools & Broker Research
Forex trader based in Indonesia, with a focus on price action, market structure and disciplined risk management. I take a structured approach to chart analysis, position sizing and reviewing trading decisions. - Versione: 1.0
- Attivazioni: 10
Gold Regime Portfolio is an automated trend-following Expert Advisor for MetaTrader 5, developed and researched primarily on XAUUSD. It combines two long-only H1 signal models and a shared initial stop-risk budget.
Strategy A uses EMA 8/30 and ADX 30 with a configurable broker-server-time rollover filter. Strategy B uses EMA 8/50 and ADX 35 with a bullish D1 trend filter. Both use closed candles, ATR-based protective stops, a defined profit target and a maximum holding time of 24 hours.
The shared-risk mode allocates risk across the two models rather than assigning a full independent budget to each. The EA also provides split-risk, individual strategy and single-position modes. On netting accounts it uses a single-position implementation because independent positions on the same symbol cannot be maintained.
Volume is calculated from equity and stop distance and rounded down to the broker's permitted volume step. Trades are skipped when the allowed risk budget cannot support the minimum volume. The EA checks margin, volume limits, trading sessions and stop levels before submitting entries. It does not use martingale, grid trading or external DLLs.
Setup: attach one instance to the intended symbol, preferably XAUUSD on H1, use a unique magic number, enable algorithmic trading, and test broker-specific rollover hours. H1 and D1 calculations are internal and independent of the displayed chart timeframe. The default target aggregate initial stop risk is 0.25% of equity. Actual losses can exceed the target because of gaps, slippage, spread, swap and execution conditions.
Important: this is a long-only strategy, not a hedged or multi-asset portfolio. Its two models can be correlated. Recent high-volatility conditions can lead to very few or no trades at small account sizes and conservative risk settings. A backtest is not a live trading result and cannot establish future profitability. Test using the Market demo and your broker's trading specifications before considering use on a live account. No profit is guaranteed.
Inputs
- InpMode: shared, split, individual or single-position models.
- InpTotalRiskPct: target aggregate initial stop-risk percentage.
- InpWeightA: allocation to model A.
- InpMagicBase: position identification.
- InpMaxSpreadATR: optional spread-to-ATR filter.
- InpDeviationPoints: permitted deviation in points.
- InpCloseRetrySeconds: close retry interval.
- InpNoEntryHour, InpResumeHour, InpRolloverHour, InpRolloverMinute: broker server-time schedule for model A.
- InpShowStatus: chart status display.
