🔲 Grid/Martingale | MT5

XAU Layer Engine Free EA
Gold basket EA: up to 5 positions in one direction, the same lot on each, grid-like risk

XAU Layer Engine trades gold automatically with 16 modules on one chart. It opens one basket at a time. A basket starts with 1 position; if price moves against it, the EA can add positions in the same direction, up to 5 in total, all with the same lot (no martingale). Every basket has a stop that the EA watches and closes itself; it is not placed at the broker. Most baskets close with a small profit, and from time to time one closes with a large loss. A dashboard on the chart shows the status, the licence and why no new basket opens.

Full manual

Read first: the risks

  • You can lose up to 100% of your deposit. The EA holds several positions in one direction and adds positions when price moves against it (grid-like risk). Most baskets close with a small profit, and from time to time one basket closes with a large loss.
  • In the tests at 0.01 lot per position, a basket that closed at its stop lost about 121 USD (median), the worst 211 USD, and the deepest fall of closed results was 361 USD; this happened 36 times in 34 months. A bigger lot scales these figures.
  • A big account is not protected. A strong one-way move in gold can take a large account too. Only a smaller lot for your balance lowers the risk.
  • The win rate on the panel will look very high, but one basket that closes at its stop can take back the profit of dozens of winning baskets.
  • The basket stop is held by the EA, not placed at the broker. If MT5 or the VPS is off, the connection drops or price gaps (for example after a weekend), a basket can lose more than the figures in the tables.
  • The figures come from past data (real ticks, one broker, January 2024 - October 2026), and the EA was built on these same years, so later years can be worse.
  • Start on a Demo account for at least 2-4 weeks, then a Cent account with 50-100 USD (= 5,000-10,000 USC) on Low risk: to learn, not to earn.

Who can use it for free

Free for MT5 accounts opened through our partner (IB) link. One account unlocks every EA.

Exness does not accept residents of some countries, including the US, Canada, the UK, most of Europe, Australia, Japan, India, Malaysia and Singapore. This offer is not for residents of those countries. Please check before you open an account.

RoboForex is the other broker you can use. It does not accept or serve residents of some countries either, including the US, Canada, Japan, Australia, Brazil, Indonesia, Russia, Turkey, the UK and the EU. Please check before you open an account. After you log in, the unlock window shows the brokers open in your country.




We are a RoboForex partner and may receive a commission. This site is not owned or operated by RoboForex.

What is XAU Layer Engine

TopicDetails
PlatformMT5 on Windows, hedging account (netting accounts are refused)
Symbol and chartXAUUSD (suffix allowed, e.g. XAUUSDm), any timeframe
Baskets1 at a time, up to 5 positions in one direction
LotThe same on every position in a basket, no martingale
Stop lossNone at the broker: every basket has a stop the EA watches and closes itself (MT5 must stay on)
Risk modesLow (default) / Mid / High / Fixed lot
Balance per 0.01 lotLow 6,000 / Mid 3,000 / High 1,000 USD
No new basketsOn some major US news days, before the Friday close, and on your own pause dates
Always onVPS or a computer running 24/5, because the EA closes baskets itself

Who it suits

Suits

  • People who understand basket (grid-like) risk and can accept a large loss on one basket from time to time
  • People with a VPS or a computer that stays on 24/5
  • People who have passed Demo and start real money on a Cent account in Low mode

Does not suit

  • People who need this money for living costs
  • People who want a fixed monthly income
  • People who cannot keep MT5 running all week
  • People who plan to raise the risk after a few good weeks

Minimum settings to run it (3 items)

Input (as shown in MT5)Suggested valueMeaning
Risk modeLow0.01 lot for each 6,000 USD of balance (default)
Magic number52003100Change it only if another EA uses it; never while a basket is open
Server hours ahead of New York when it cannot be read7Used only when the EA cannot read the server clock itself; leave it at 7

Loss when a basket closes at its stop (Fixed lot, tests)

Lot per positionTypical loss per basketWorst loss per basketDeepest fall (closed results)
0.01121 USD211 USD361 USD
0.05605 USD1,055 USD1,805 USD
0.101,210 USD2,110 USD3,610 USD

Tests on real ticks, one broker, January 2024 - October 2026: 36 full-basket losses in 34 months; the worst was about 1.7 times the typical one. The deepest fall counts closed baskets only; the floating loss of an open basket comes on top. A live stop can close at a worse price (slippage). On cent and non-USD accounts the money per lot is different from this table.

Risk modes (% of balance)

Mode0.01 lot perTypical loss per basketWorst loss per basketDeepest fall (closed results)
Low (default)6,000 USD2.0%3.5%6.0%
Mid3,000 USD4.0%7.0%12.0%
High1,000 USD12.1%21.1%36.1%

The % is for a balance of exactly one, two, three ... times the amount, the riskiest point. Below one amount the EA still opens the broker's minimum lot (usually 0.01), so 1,000 USD in Low mode carries the risk of High mode. On a cent account with 5,000 USC in Low mode a typical basket loss is about 2.4% and the worst about 4.2%.

How to install XAU Layer Engine on MT5

  1. Download the .ex5 file with the button above
  2. Open MT5 and go to File > Open Data Folder
  3. Open the MQL5 > Experts folder and put the .ex5 file there
  4. Back in MT5, right-click Expert Advisors in the Navigator window and click Refresh
  5. Go to Tools > Options > Expert Advisors, tick Allow WebRequest and add these 3 URLs (used for the licence check): https://zab-license.bangzeed.workers.dev, https://zab-license.vercel.app, https://license.forexreviewth.com
  6. Drag the EA onto a chart, set it up with the settings on this page, then turn on the Algo Trading button

5 hard rules (never do these)

  1. Do not close, add or change the EA's positions by hand. If you decide to close a basket by hand, close all of its positions together.
  2. Do not change the Magic number while a basket is open.
  3. 1 copy per account. A second copy needs its own Magic number, and the margin in use and the risk become 2 times as large.
  4. Moving VPS: remove the EA from the old one first, then install it on the new one with the same Magic number.
  5. Do not use real money before 2-4 weeks on Demo.

Read next