Settings Guide

This guide explains the most important settings of Gold 6 Hexagon Strategy AI and their default values. You see them in MT5 when you attach the EA to a chart (the Inputs tab). Every group name starts with the strategy it belongs to (S1 … S6). If you are not sure, keep the defaults. They are the settings used in the backtests on this blog.

1. Quick start

  1. Open a gold (XAUUSD) chart on the H1 timeframe.
  2. Drag the EA onto the chart and open the Common tab: tick Allow Algo Trading.
  3. In the Inputs tab, check the lot / risk settings for your balance (about 1,000 USD or more with all 6 strategies on; S3 needs it).
  4. Click OK and turn on the Algo Trading button in the MT5 toolbar.
  5. Use a hedging account. Test on a demo account first. For live trading, a VPS keeps the EA running 24/5.
One chart is enough. All six strategies run from the same chart and read their own timeframes inside the EA. Do not attach the EA to a second gold chart on the same account.

2. Turn strategies ON / OFF

Group STRATEGIES ON / OFF at the top. You can also click ON/OFF for each strategy directly on the dashboard. Switching a strategy off stops new entries; its open trades keep their stop and target.

SettingStrategyDefault
G6_Use_S1S1 RSI + EMA Divergence (H1)true
G6_Use_S3S2 MDR Liquidity (H1)true
G6_Use_S4S3 H4 Trend Pullback (needs about $1,000+)true
G6_Use_SRS4 AMD Power of 3true
G6_Use_TPS5 Trend Pullback (M15 / H1)true
G6_Use_VWS6 VWAP + 9/20 EMA Momentum (H1)true

Note: some setting names keep their older names (for example G6_Use_S3 switches S2). The comment next to each one in MT5 shows which strategy it belongs to.

3. Majority close

When most strategies agree on a direction, the single trade against them can be closed early. Group MAJORITY CLOSE, also a button on the dashboard.

SettingWhat it doesDefault
G6_Maj_EnableMajority close ON/OFFtrue
G6_Maj_MinMajorityStrategies needed on the majority side3
G6_Maj_MaxMinorityMax strategies on the opposite side1
G6_Maj_UseTrend / TrendTF / TrendEMAPrice must be on the majority side of this EMAtrue, H1, EMA 50
G6_Maj_NeedMajorityProfitMajority trades together must be in profittrue
G6_Maj_OnlyIfLosingClose the opposite trade only while it is losingtrue
G6_Maj_MinAgeMinutesDo not close a trade younger than this5 min

4. Lot size and risk

Each strategy has its own sizing:

StrategySettingsDefault
G5_S1_Lot_Per_StepS1: lot per $1,000 of balance0.01 per $1,000
G5_S3_Lot_Per_StepS2: lot per $1,000 of balance0.01 per $1,000
G5_S2_LotStep / G5_S2_BalanceStepS3: lot per balance step, capped by the S3 risk limits below0.02 per $1,000
SR_LotMode / SR_RiskPercentS4: % of balance lost if the stop is hitrisk %, 0.5%
TP_UseRiskPercent / TP_RiskPercent / TP_MaxLotS5: risk per trade and max lot1%, max 2.0
VW_InpLotMode / VW_InpRiskPercentS6: total risk per signal (split over 3 orders)risk %, 1%
SettingWhat it doesDefault
G5_Max_Lot_Per_TradeSafety cap for one S1/S2 order5.0
G5_Lot_Never_DecreaseKeep the highest lot step reached after a drawdown (S1/S2)true
G5_S4P_MaxRiskPerTradePctS3: max loss of one trade at its stop, % of balance2%
G5_S4P_MaxRiskTotalPctS3: max loss of all open S3 trades together4%
G5_S4P_MinLotMaxRiskPctS3: use the minimum lot only if its real risk is below this, else skip6.5%
SR_MaxRiskPercentAtMinLotS4: same idea for small accounts3%
Bigger lots mean bigger wins and bigger losses. Start small. If you are not sure what lot to use for your balance, ask on Telegram.

5. Global and live safety

SettingWhat it doesDefault
G5_Allow_Buys / G5_Allow_SellsAllow buy / sell trades (S1-S3)true / true
G5_Use_Session_GuardNo new entries 15 min after the daily open and before the breaktrue
G5_Max_Total_PositionsMax open positions of S1-S3 together0 = no limit
G5_Daily_Loss_Limit_PercentNo new S1-S3 entries for the day after this equity drop0 = off
G5_Friday_Stop_HourNo new S1-S3 entries on Friday from this hour0 = off
VW_InpMaxDailyLossPct / VW_InpMaxSignalsPerDayS6 daily loss limit and max signals per day4% / 3

On top of that, before every order of every strategy the EA checks free margin, the broker volume limit, the minimum stop distance, the freeze level and whether the market is open. This avoids "not enough money", "invalid stops" and "market closed" errors.

6. Filters: AMD PRO, trend strength, trailing

AMD PRO filter (S1, S2, S3)

Asia builds a range, London sweeps one side, then a market structure shift (MSS) and a fair value gap (FVG) confirm the direction for New York. Trades against the confirmed direction are blocked. Also a button on the dashboard.

SettingWhat it doesDefault
G5_AMD_EnableFilter ON/OFFtrue
G5_AMD_Asia_Start_Hour / EndAsia range (server hours)0 to 7
G5_AMD_London_Start_Hour / EndLondon sweep window (server hours)9 to 13
G5_AMD_Min_Sweep_PointsHow far London must go beyond the Asia high/low150 points
G5_AMDP_TFDetection timeframe (sweep, MSS, FVG)M6
G5_AMD_Apply_S1 / S3 / S4Apply to S1 / S2 / S3true / true / true

S5 has its own AMD filter (TP_AMD_Enable, Asia 01-09, London 09-14).

Trend-strength (choppy market) filter

Blocks entries when the market is going sideways. Available for S1, S2, S3, S5 and S6.

SettingWhat it doesDefault
G5_S1/S3/S4_UseTrendStrengthON/OFF for S1, S2, S3 (shared H1 settings: CHOP max 65, ER min 0.10)true
TP_UseTrendStrengthFilterS5: CHOP max 59, ER min 0.40, EMA separation and slopetrue
VW_UseTrendStrengthFilterS6: CHOP max 65, ER min 0.10 on H1true

Trailing stop (S1, S2, S3)

SettingWhat it doesDefault
G5_Trail_Master_EnableTrailing ON/OFF for S1-S3 (also a dashboard button)true
G5_Trail_S1_Enable / S3 / S4Trailing for S1 / S2 / S3false / false / true

7. Settings of each strategy

S1 RSI + EMA Divergence

SettingWhat it doesDefault
G5_S1_TFTimeframeH1
G5_S1_EMA_Period / G5_S1_RSI_PeriodEMA and RSI periods200 / 5
G5_S1_Divergence_LookbackBars searched for divergence50
G5_S1_RRTake profit = this x risk3.0
G5_S1_Max_Spread_PointsSkip if spread is above40

S2 MDR Liquidity

SettingWhat it doesDefault
G5_S3_TFTimeframeH1
G5_S3_Start_Hour ... G5_S3_End_HourTrading window (server time)08:30 to 14:59
G5_S3_Liquidity_LookbackBars used to find liquidity25
G5_S3_RRTake profit = this x risk3.2
G5_S3_Max_Spread_PointsSkip if spread is above35

S3 H4 Trend Pullback

(Its settings start with G5_S2_ because of their history. Pips here: 1 pip = 0.10 on gold.)

SettingWhat it doesDefault
G5_S2_StartHour ... G5_S2_FinishHourTrading window (server time)11:00 to 22:59
G5_S2_TakeProfitPip / G5_S2_StopLossPipTake profit / stop loss in pips350 / 600
G5_S2_TrendTF / G5_S2_TrendMinATRTrend timeframe and minimum trend moveH4 / 3.0x ATR
G5_S2_CloseAtFridayClose S3 trades before the weekendtrue
G5_Break_S4_EnablePause S3 for 2 days after 2 losing days in a rowtrue
G5_S4P_DailyLossCapPctClose S3 and stop for the day at this S3 loss6%

S4 AMD Power of 3

New in Gold 6 Hexagon Strategy AI: S4 is now the AMD Power of 3 strategy (Accumulation, Manipulation, Distribution). It replaces the old M30 Support / Resistance Breakout, so the old S4 breakout settings no longer apply. Its settings are in the S4 group of the EA inputs, and every S4 trade also passes the trend direction, choppiness, market-efficiency and trend-slope filters. The default S4 values are the ones used in the IC Markets backtest.

S5 Trend Pullback

SettingWhat it doesDefault
TP_TradeTF / TP_TrendTFEntry and trend timeframesM15 / H1
TP_FastEMA / TP_SlowEMA / TP_SignalEMATrend EMAs and pullback EMA20 / 50 / 10
TP_StopATRMultStop loss (x ATR)2.8
TP_TP1_RR / TP_PartialClosePercent / TP_TP2_RRPartial close at TP1, final target4R, 90%, 6R
TP_UseTrailingBreak-even + EMA trailingtrue
TP_UseSellHoursSells only 02:00-12:00 server timetrue

S6 VWAP + 9/20 EMA Momentum

SettingWhat it doesDefault
VW_InpTimeframeStrategy timeframe (works on any chart)H1
VW_InpFastEMA / VW_InpSlowEMAMomentum EMAs9 / 20
VW_InpUseDailyFilterDaily 20/50/200 SMA trend filtertrue
VW_InpOrdersPerSignal / VW_InpTPLevelsROrders per signal and their targets3 / 1R, 2R, 3R
VW_InpBreakEvenRMove stop to break-even at1.5R
VW_InpExitEMACrossClose on a 9/20 cross against the tradetrue
VW_InpUseATRTrailOptional ATR trailing stopfalse

8. Dashboard

SettingWhat it doesDefault
G6_Dash_ShowShow the results panel on the charttrue
G6_Dash_X / G6_Dash_YPanel position12 / 26
G6_Dash_FontText size9
G6_Dash_Opacity100 = solid, lower = see the chart through it100
G6_Dash_Keep_After_TestKeep the final results on screen after a visual backtesttrue

The dashboard counts every trade of every strategy, including trades you close by hand. For faster backtests, keep G5_Tester_Show_Journal_Log = false and raise G6_Dash_Redraw_Ms.

9. Magic numbers

Each strategy marks its trades with its own magic number and a short comment (for example S1 BUY, S4 SELL), so you can see in the history which strategy opened which trade. Change them only if you run the EA on two charts of the same account.

SettingStrategyDefault
G5_S1_MagicS1 RSI + EMA Divergence51001
G5_S3_MagicS2 MDR Liquidity51003
G5_S2_MagicS3 H4 Trend Pullback222
SR_MagicNumberS4 AMD Power of 330092201
TP_MagicNumberS5 Trend Pullback26041007
VW_InpMagicS6 VWAP + 9/20 EMA Momentum920920

10. Server time: important

All hours in the settings are broker server time (the time shown in MT5 Market Watch). If your broker uses a different server time, the session hours (Asia/London, the trading windows) may need to be moved. Test in the Strategy Tester on your own broker before trading live.

More help: FAQ · Testing Results & free demo · Telegram @Gold5EA

Trading involves risk. Backtest results do not guarantee future results. Not financial advice.

Comments