Swing Edge Gold - User Manual

30 November 2026, 23:45
Mr Adisorn Mayang
0
9

User manual of Swing Edge Gold for MetaTrader 5, version 2.30.

Warning: high-risk EA

  • It makes money only when gold is highly volatile (average daily range above about 60 USD), and it lost money in the calm market of 2023-2024.
  • The EA pauses by itself when the market is calm, but it uses a 20-day average. If the market changes fast, the EA may keep trading for a while before it pauses.
  • It can hold up to 4 orders at once (4 legs). If they hit their stop losses together, you lose several trades at once.
  • Start on Demo for at least 2-4 weeks, then use real money with the smallest lot.
  • Suggested start: Cent account 50-100 USD (= 5,000-10,000 USC), to learn, not to make a profit.
  • Ask the author first (private message on MQL5) before you change a setting or use real money.

1. What this EA does

It trades gold automatically. When its conditions are met it places a pending order, which fills if price gets there. Then it moves the stop loss to lock in profit.

  • It trades in 4 legs (A, B, C, D). Each leg can be switched on or off, and each has its own Magic number
  • Every order has a stop loss from the moment it is placed
  • It checks gold's volatility every day. When the market is calm it cuts the lot or stops opening new orders by itself (section 6)
  • It has guards against a wide spread and too much margin, and an optional news filter

Strategy values are locked inside the EA. Every user gets the same system that was tested. What you can adjust is in sections 4-10.

2. Before you start

  • Symbol and chart: XAUUSD, H1 chart
  • Account type: Hedging is suggested (on a Netting account the EA places 1 order at a time and stops placing orders while a position is open)

Cent accounts: money in MT5 is shown in USC (1 USD = 100 USC). Inputs that are an amount of money, such as Balance mode: balance for each 0.01 lot, also count in USC. Inputs that are a % and inputs that are a price (spread, price range) work the same.

3. Minimum settings to run it

The default values run as they are. Just check these 3 items.

Step Setting Suggested value Why
1 Lot mode Fixed lot Start with a fixed lot
2 Fixed lot per order 0.01 Lot for each order (4 legs = up to 4 orders)
3 Pause / reduce in calm markets true Lets the EA pause by itself when the market is calm. Do not turn it off

4. Legs (4 legs)

Setting What it does Default
Enable leg A (Fast) Turns on leg A (Fast) true
Leg A (Fast): lot / risk x this (1 = full, 0.5 = half) Lot / risk multiplier of leg A (1 = full, 0.5 = half) 1.0
Enable leg B (Session) Turns on leg B (Session) true
Leg B (Session): lot / risk x this Lot / risk multiplier of leg B 1.0
Enable leg C (Core) Turns on leg C (Core) true
Leg C (Core): lot / risk x this Lot / risk multiplier of leg C 1.0
Enable leg D (Wide) Turns on leg D (Wide) true
Leg D (Wide): lot / risk x this Lot / risk multiplier of leg D 1.0
Direction (all legs) Side to trade, for all legs: Both / Buy / Sell Both
Magic of leg A (B = +1, C = +2, D = +3) Magic number of leg A (B = +1, C = +2, D = +3) 52001

Want less risk? You can turn off some legs (the number of orders open at once goes down) or lower a leg's multiplier. But the system was tested with all 4 legs on and every multiplier at 1.

How a leg's multiplier works. The lot you set in section 5 is multiplied by the leg's multiplier, in every lot mode. For example, Risk 0.5 % with a multiplier of 0.5 = that leg risks 0.25 % per order, and Fixed lot 0.10 with a multiplier of 0.5 = 0.05 lot. A value above 1 is allowed (2 = twice the risk). The value must be greater than 0; to turn a leg off, use its Enable input.

The lot cannot go below the broker's minimum. Fixed lot 0.01 with a multiplier of 0.5 is still 0.01. Orders that were already waiting before you changed the value keep their lot until the EA places them again.

5. Lot

Setting What it does Default
Lot mode Fixed lot / Risk % per order / 0.01 lot per amount of balance Fixed lot
Fixed lot per order [Fixed] lot for each order 0.01
Risk mode: % of balance lost at the leg's SL [Risk] the % of the balance you lose if that leg hits its stop loss 0.5
Balance mode: balance for each 0.01 lot [Balance] how many USD of balance for each 0.01 lot 1000
Risk / Balance mode: count the broker bonus (credit) as balance [Risk / Balance] adds the broker's bonus (credit) to the balance when the lot is calculated false

Risk % is counted per leg. With 0.5 % and every leg's multiplier at 1, if all 4 legs hit their stop losses together you lose about 2 %. And if the calculated lot is below the broker's minimum, the EA uses the minimum lot, so the real risk is higher than the value you set.

Counting the bonus means a bigger lot. Brokers take the bonus only after your own money (the balance) is gone, so a loss eats your own money first. For example, balance 1,000 + bonus 500 with Risk 1 %: off = 10 USD at risk per order, on = 15 USD (1.5 % of your own money). It has no effect on Fixed lot. If you are not sure, leave it off.

Trailing stop (TRAILING group)

Setting What it does Default
Trailing stop Trailing stop style: Tight or Loose (the earlier style) Tight
Loose only: move the SL only to entry + costs or better (false = original) [Loose] moves the stop loss only once it can sit at the entry price + costs or better (false = the original way) false
Start trailing after the same price move on any spread (false = original) Adjusts the point where trailing starts to your account's spread (false = the original way) false
Spread the trailing was tuned on (price) [Used when the setting above is on] the reference spread, as a price 0.10
Max change of the trailing start, either way (price) [Used when the setting above is on] the most the start point can be moved (price) 0.30

If you are not sure, keep the defaults.

6. Regime Guard (pauses by itself in a calm market)

The EA measures the average daily range of the last 20 days (each day's high minus its low, in USD) and adjusts its trading like this.

20-day average range What the EA does
Below 45 USD Pauses. Deletes its pending orders and places no new ones (orders it already holds are still managed)
45-60 USD Trades with lot x 0.5
Above 60 USD Trades with the full lot
Setting What it does Default
Pause / reduce in calm markets Turns on the pause / lot cut in calm markets true
Below this range: pause (no new orders) Below this value = pause 45
Above this range: full lot Above this value = full lot 60
Between the two: lot x this Between the two values = lot x this value 0.5

Do not turn off the Regime Guard. This EA loses money in a calm market, and this guard is what pauses it then. Below this range: pause (no new orders) must not be greater than Above this range: full lot, or the EA will not start.

7. Execution Guards

Setting What it does Default
Max spread for new orders (price; 0 = off) The widest spread at which new orders may be placed, as a price (0.60 = 60 points, 0 = off) 0.60
Max margin if all pendings fill (% of equity, 1 - 100) If all pending orders fill, the total margin must not exceed this % of equity (1-100) 50
Friday: cancel pendings, place none until Monday (open trades kept) On Friday, deletes the pending orders and places no new ones until Monday (open trades are not closed) false
Friday cutoff hour (server time) / Friday cutoff minute The Friday cutoff time (broker server time) 22:00

Gold spread in points: 1 point = 0.01 USD. For example, MT5 shows a spread of 25 points = 0.25, which passes the 0.60 limit. (At brokers that quote gold with 3 decimals the number on screen is 10 times larger: 250 = 25 points.)

8. News Filter

Around high-impact USD news it deletes the pending orders and places no new ones. It uses the MT5 economic calendar and works on real and Demo accounts only (not in the Strategy Tester). It is off by default.

Setting What it does Default
Pause around high-impact USD news Turns on the pause around news false
Minutes before How many minutes before the news to pause 30
Minutes after How many minutes after the news to stay paused 30

9. Slippage Protection + Fill Audit

Slippage is the gap between the price you get and the price of your order. This part helps make up for it, and records how much it cost you.

Setting What it does Default
How much earlier to enter Enters earlier to make up for slippage: Off (the tested value) / Soft / Medium / Hard Off
Your usual slippage in USD (0 = the EA measures it itself) Your usual slippage (USD). 0 = the EA measures it itself 0
Log every fill to Common\Files\FillAudit_v2_*.csv Writes every filled order to the file Common\Files\FillAudit_v2_*.csv true

Soft / Medium / Hard are not always better. Entering earlier = more orders fill, and more of them are false breakouts (Hard the most). Use Off first, then watch the EXECUTION part of the Dashboard. If slippage eats much of the profit, ask the author in a private message on MQL5.

10. Dashboard (the panel on the chart)

  • Panel header: the account, EA status (RUNNING / PAUSED) and the A- / A+ buttons that shrink and enlarge the panel
  • Account: Balance, Drawdown, floating profit and loss
  • Legs + Guards: the current state of each leg, and the guards that are active (calm market, spread, margin, news)
  • When the broker refuses an order: that leg's cell shows rejected followed by the broker's reason, for example "rejected · invalid stops", "rejected · market closed" or "rejected · algo trading off" (the Algo Trading button in MT5 is off). The EA tries again by itself on its next check.
  • History: counted from the first month the EA traded on this account and read from the account's own history, so it is not lost after a power cut or a new MT5 install.
  • Execution: entry / exit slippage, latency, broker grade and the cost lost to slippage
  • Results: today, this week, this month, the STATS tab (Win rate, Profit factor) and the last 20 trades
Setting What it does Default
Show the dashboard (kept across settings changes / restarts) Shows the Dashboard (its history stays when you change a setting or restart) true
Start the dashboard history from now (set back to false afterwards) Starts the Dashboard history again from now (turn it on once, then set it back to false) false
Dashboard size (0.4 - 1.5; A- / A+ on the panel) Size (0.4-1.5). You can also change it on the panel with A- / A+ 1.0
Dashboard X (px) / Dashboard Y (px) Position on the chart (pixels) 10 / 20
Hide trade history arrows on the chart (they cover the dashboard) Hides MT5's trade history arrows on the chart so they do not cover the dashboard true

11. Problems and fixes

Symptom Common cause Fix
No orders for several days The market is calm and the Regime Guard has paused the EA Normal: the EA pauses on purpose. See the average range on the Dashboard
No orders even though the market is volatile Spread above Max spread for new orders (price; 0 = off) / margin above Max margin if all pendings fill (% of equity, 1 - 100) / news window Look at Guards on the Dashboard to see which one is active
The EA is removed right after you attach it A wrong input value, such as lot = 0, a leg's multiplier = 0, or Below this range: pause (no new orders) greater than Above this range: full lot Go back to the defaults, then change one value at a time

12. Checklist before you run it

Go through every item before you turn on the EA.

- I understand that this EA loses money in a calm market and is high risk

- Tested on Demo for at least 2-4 weeks

- Using money I can afford to lose (not savings, loans or family money)

- The account is Hedging

- The EA is on an XAUUSD H1 chart

- Set Lot mode = Fixed lot and Fixed lot per order = 0.01

- Pause / reduce in calm markets = true

- No other EA uses Magic 52001-52004

- The Algo Trading button is green

13. 5 hard rules (never do these)

1. Do not turn off the Regime Guard
A calm market is when this EA loses money

2. Do not delete the stop loss or move it further away yourself
The stop loss is what limits the loss of each order

3. Do not raise the lot after a loss to win it back
It makes the risk much higher than what was tested

4. Do not run 2 charts with the same set of Magic numbers
The EA uses 4 Magic numbers in a row (base +0 to +3). If you run several charts, keep the bases at least 4 apart

5. Do not use real money before you pass Demo
Always watch how it really works on Demo for 2-4 weeks first

14. Support

Questions about the settings: send me a private message on MQL5 or write in the Comments tab of the product page.