🔲 Grid/Martingale | MT5

DynamicGrid Free EA
MT5 grid EA built for frequent, quick basket closes, with spacing that follows ATR

DynamicGrid places a pending first order. If price moves against it, the EA adds grid orders, then closes the whole basket once the basket is in combined profit. Grid spacing follows volatility (ATR), and several filters (Spike, Trend, News, Hedge) can each be switched on or off.

Full manual (Thai)

Read first: the risks

  • Worst case: the account blows up and you lose 100% of your capital. If the market runs one way, the EA keeps adding orders until margin runs out.
  • More capital does not mean you are safe. A grid caught in a strong trend can wipe out 10,000 USD too.
  • Test on a Demo account for at least 2-4 weeks before using real money.
  • Use only money you can afford to lose. Never use savings, loans or family money.

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 DynamicGrid

TopicDetails
PlatformMT5
Suited toGold (XAUUSD), major currency pairs
EntriesPending first order, then grid orders when price moves against it
Grid spacingFollows ATR
DirectionBUY and SELL at the same time
Profit close modesBreakevenTP / KeepProfit / Trailing

Who it suits

Suits

  • Gold (XAUUSD) and major currency pairs
  • Ranging markets with no clear direction
  • People who have passed Demo and start real money small (Cent account 100 USD = 10,000 USC)

Does not suit

  • People who cannot accept drawdown
  • People who would use savings or loans
  • People who have never tried it on Demo

Minimum settings to run it (5 items)

InputSuggested valueMeaning
StartEAtrueMain switch. The EA does nothing unless this is on
Trade_DirectionBOTHBuy and sell, 2 directions
Fixed_Lot0.01Start with the smallest lot
UseGridtrueTurns the grid on
CloseIDeaSelectBreakevenTPThe safest profit close mode according to the manual (check the current value before you run it)

Floating loss by number of orders in a basket

Orders in basketHow oftenCent account (USD)Standard account (USD)
167% of baskets0.021.75
2-430%0.13 - 1.1113 - 111
5-82.8%2 - 11223 - 1,099
9-1123 baskets17 - 281,659 - 2,751
12-1716 baskets45 - 734,520 - 7,253
201 basket16916,944
251 basket31131,073

Source: XAUUSD backtest over 9 months (Jan - Oct 2026), 10,158 baskets, default settings, Fixed_Lot 0.01. This is a single backtest run, and real markets can run further. A basket of 30 orders would show a floating loss of about 410-470 USD on a Cent account.

How much capital is enough (Cent account, leverage 1:500, Fixed_Lot 0.01)

CapitalResult in the 9-month backtestSuited to
50 USDAccount blew up 17 timesNot recommended
100 USDAccount blew up 2 timesLearning, if you accept losing all of it
360-600 USDDid not blow upSurviving the worst basket seen so far

For a Standard account, multiply every figure by 100. Raising Fixed_Lot to 0.02 means multiplying the capital by 2. With small capital, use a Cent account only.

How to install DynamicGrid 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 delete orders the EA placed. It will calculate the grid wrongly.
  2. Do not change the lot size midway. If orders are open, wait until they have all closed.
  3. Do not cut the internet or close MT5 while orders are open. Trailing and TP will stop working.
  4. Do not run 2 EAs on the same symbol with the same Magic Number.
  5. Do not use capital you cannot afford to lose. A grid EA can blow up if the market runs hard one way.

Read next