Scalping Gold Pro - Optimization & User Guide
Step-by-step guide to configuring, optimizing, and deploying Scalping Gold Pro on MetaTrader 5.
Scalping Gold Pro is designed specifically for Gold/XAUUSD, the M1 timeframe, and a Hedging account. If your broker uses a name such as XAUUSD.a, GOLD, or XAUUSDm, select that exact symbol.
1. How to Open the Strategy Optimizer
Alternative: in Navigator → Expert Advisors, right-click Scalping Gold Pro and select Test. Then enable an optimization mode in the Settings tab.
2. How to Configure the Settings Tab
| Field | Recommended setting | Explanation |
|---|---|---|
| Expert | Scalping Gold Pro | Select the copy installed from MQL5 Market. |
| Symbol | Your broker's Gold symbol | Usually XAUUSD, although it may include a prefix or suffix (e.g. XAUUSD.a, GOLD, XAUUSDm). |
| Period | M1 | This is the EA's operating timeframe. |
| Date | Custom or predefined period | Last year is only an example. The longer the period, the longer the optimization will take. |
| Forward | No during exploration; 1/3 during confirmation | During final optimization, reserve the most recent third of the period to verify parameters. |
| Delays | Zero latency, ideal execution | Makes the initial comparison simpler and faster. |
| Modelling | 1 minute OHLC | The recommended mode for optimizing Scalping Gold Pro. New entries are evaluated at the start of each M1 candle. |
| Profit in pips | Unchecked | Allows the tester to consider the deposit currency and margin calculations. |
| Deposit | Match the intended account | Use the actual starting capital you plan to trade with. Minimum: USD 100. |
| Leverage | Match your account | Leverage directly changes the margin used. |
| Optimization | Fast genetic based algorithm | Significantly reduces the number of passes when multiple combinations exist. |
| Criterion | Depends on your objective | You can use Custom max, Complex Criterion max, Drawdown min, or Profit Factor max. |
How to Choose the Optimization Criterion
The criterion tells the genetic algorithm which results should be considered superior. There is no single correct criterion for every user.
| Criterion | What it prioritizes | When to use it |
|---|---|---|
| Custom max | Scalping Gold Pro's proprietary criterion combining compounded monthly return, equity drawdown, and weekly trading activity. Passes with fewer than 5 trades or no profit receive a score of 0. | Use when you want a performance balance specifically engineered for this EA. |
| Complex Criterion max | MT5 built-in formula combining trade count, drawdown, expected payoff, Recovery Factor, and Sharpe Ratio. | Use for an overall multi-metric evaluation without over-focusing on one statistic. |
| Drawdown min | Searches for the lowest relative balance drawdown. | Use when capital preservation is the absolute priority. Check trade count to avoid selecting inactive setups. |
| Profit Factor max | Searches for the best ratio between gross profit and gross loss. | Use when seeking high profit-to-loss efficiency. Ensure enough trades are executed to be statistically sound. |
How Much Historical Data Should You Use?
- Initial search: 3–6 months.
- Confirmation: Use a longer period containing different Gold market volatility phases.
- Rule: The longer the period, the longer each individual test pass will take.
3. How the Inputs Tab Works
| Column | Meaning |
|---|---|
| Checkbox | Checked: MT5 varies that input during optimization. Unchecked: it remains fixed. |
| Value | The fixed value used when the checkbox is unchecked. |
| Start | The first value MT5 will test. |
| Step | The increment between one test value and the next. |
| Stop | The final value in the test range. |
| Steps | The total number of values generated for that input. |
Lot Management During the Search
To compare the core strategy logic without lot compounding distorting the results, initially configure:
- Lot calculation method: Fixed lot.
- Fixed lot: 0.01.
- Maximum calculated lot: 0.01.
Before saving the final SET file, restore the lot calculation method you actually intend to use and run the complete backtest again.
4. Recommended Ranges for Periodic Strategies
This group includes strategies S01, S02, S03, and S06.
| Input | Start | Step | Stop |
|---|---|---|---|
| Enable Sxx | Do not optimize. Keep true for the strategy being studied and false for the others. |
||
| Sxx activation | Ignore previous direction | Automatic | Previous net movement was downward |
| Entry interval — S01 | 3 | 3 | 15 |
| Entry interval — S02/S03/S06 | 5 | 5 | 30 |
| Maximum Sxx positions | 1 | 1 | 5 |
| Basket target per 0.01 lot | 0.25 | 0.25 | 2.00 |
- Stage A: Activation + Entry interval = 15–18 combinations.
- Stage B: Maximum positions + Basket target = 40 combinations.
5. Recommended Ranges for Distance Strategies
This group includes strategies S08, S09, S10, and S12.
| Input | Start | Step | Stop |
|---|---|---|---|
| Enable Sxx | Do not optimize. Keep true for the strategy being studied and false for the others. |
||
| Sxx activation | Ignore previous direction | Automatic | Previous net movement was downward |
| Distance between entries | 300 | 200 | 1500 |
| Maximum Sxx positions | 1 | 1 | 5 |
| Basket target per 0.01 lot | 0.25 | 0.25 | 3.00 |
One distance unit equals 0.01 in the Gold price. For example, 300 represents a distance of $3.00 in XAUUSD.
- Stage A: Activation + Distance = 21 combinations.
- Stage B: Maximum positions + Basket target = 60 combinations.
7. Recommended Step-by-Step Optimization Procedure
SGP_ORIGINAL.set.
Enable S01 = true (unchecked for optimization). Set all other Enable Sxx = false. Check only S01 activation and Entry interval. Click Start (only ~15 combinations).
8. How to Select an Optimization Result
- Open the Optimization Results tab.
- Sort Result from highest to lowest.
- Do not look only at Profit. Compare drawdown, trade count, Profit Factor, Recovery Factor, and forward results.
- Look for a stable area containing several reasonable neighboring values.
- Right-click a candidate and select Set Input Parameters.
- Run a single backtest and review the report and balance/equity curve.
9. How to Generate the .set File
- In Optimization Results, right-click the selected candidate.
- Select Set Input Parameters.
- Open the Inputs tab and confirm the values.
- Restore the strategies, lot calculation method, and protections you actually intend to use.
- Right-click inside Inputs and select Save.
- Save the file with the
.setextension (e.g.,SGP_ICMarkets_XAUUSD_M1_LowRisk.set).
10. How to Load the Set File into the EA
- Open a chart of your broker's Gold symbol (XAUUSD).
- Change the timeframe to M1.
- Drag Scalping Gold Pro from the Navigator onto the chart.
- Open the Inputs tab.
- Click Load and select the
.setfile. - Review Magic Number, lot calculation method, Maximum calculated lot, Emergency equity drawdown, and Minimum margin level.
- Click OK and verify that Algo Trading is enabled in MetaTrader 5.
Quick Summary
- Select your broker's Gold/XAUUSD symbol and M1 timeframe.
- Use 1 minute OHLC for fast and accurate optimization.
- Use Fast genetic based algorithm and a criterion matching your goal (Custom max or Complex Criterion).
- Optimize one strategy and only 1–2 inputs per stage.
- Use a broad range first and a fine search afterward.
- Select results based on consistency, drawdown, and stability, not profit alone.
- Always validate on a demo account before trading with real money.
Risk Warning
Leveraged trading can result in substantial losses. Historical results and optimizations do not guarantee future performance. Use a level of risk you can afford and validate every configuration before trading live.
Guide for Scalping Gold Pro v1.22 © Antonio Simón Del Vecchio