Service · XAUUSD · MQL5

A Gold Trading Bot UAE Traders Can Test on Demo First

We build a custom gold trading bot UAE and GCC traders run on MetaTrader 4 (MT4) or MetaTrader 5 (MT5), coded from your own XAUUSD rules. Its spread, session and news filters run in Gulf time. You test every build on your demo account before the final payment, and custom builds start from $50.

  • Custom built
  • Demo testing before payment
  • Source code option
  • NDA on request

How it works

Rules → Code → Backtest → Deliver

  1. STEP 01

    Rules

    You share your entry, exit and risk rules in plain words.

  2. STEP 02

    Code

    We write clean MQL4, MQL5, Pine Script or Python code.

  3. STEP 03

    Backtest

    You test the build on your own demo account first.

  4. STEP 04

    Deliver

    You get the final file, a settings guide and setup help.

On this page

Gold trading bot UAE workflow from your rules to delivery

Who is a gold trading bot UAE service for?

It is for traders who already have a gold plan and want a program to follow it on XAUUSD while they sleep or work. Most people who write to us fit one of these:

  • you trade a written gold plan by hand and want it coded exactly as it stands,
  • you watch the London and New York sessions late into the UAE evening,
  • your funded account needs firm daily limits,
  • an MT4 robot already runs for you and you want a clean MT5 version.

A bot won’t invent a strategy. It runs yours with the same speed and discipline on every tick. For a look at the code inside first, read our guide on how an Expert Advisor trades XAUUSD, then come back with your rules.

7 gold rules we code into your bot

Your entry logic is your own. Around it, these seven filters turn up in almost every gold spec we receive:

Seven XAUUSD rules we code into a gold trading bot

Rule What the bot does
Spread filter Blocks new entries while the spread is above your limit. If your broker’s spread widens at the weekly open or at a session change, the bot sits those minutes out.
Session hours in Gulf time Trades only inside the windows you choose, for example the London open or the New York overlap. You enter them in UAE time.
News pause Stops opening trades for a set time before and after the events you pick. On MT5 it reads event times from the built-in economic calendar.
ATR-based stop Sets the stop from recent volatility, such as 1.5 times ATR(14) on the M15 chart, in place of a fixed distance. The stop is wider on busy days and tighter on calm ones.
Max trades per day Counts entries and stops at your number, which keeps a choppy day from turning into ten small losses.
Symbol and lot data Takes the gold symbol name as an input (XAUUSD, GOLD or XAUUSD.m, depending on the broker) and reads the contract size and tick value live.
Close before rollover Closes gold trades before the daily rollover or the weekend, if you switch it on.

Every rule is an input, so you can switch it off or change its value without new code.

Session hours for gold in Gulf time

London and New York both move their clocks, while the UAE and Saudi Arabia keep the same time all year. The same session therefore lands an hour apart in UAE time between summer and winter. With a session of 08:00 to 17:00 local time in each city, the windows look like this:

London and New York gold sessions shown in UAE time for summer and winter

Session Winter, UAE time Summer, UAE time
London 12:00 to 21:00 11:00 to 20:00
New York 17:00 to 02:00 16:00 to 01:00

Traders in Saudi Arabia, Kuwait, Qatar and Bahrain take one hour off each time.

However, the two clock changes don’t fall on the same dates. The UK moves on the last Sunday of March and the last Sunday of October, while the US moves on the second Sunday of March and the first Sunday of November. For two or three weeks in March, and for one week around the start of November, the gap between London and New York is an hour shorter than usual.

Your broker’s server clock may also shift on its own date. We keep the hours as inputs in Gulf time for that reason, and the code does the conversion. Our trading software development for the UAE page explains how we work across these time zones.

Risk settings in your gold trading bot

Your entry rule decides when to trade. How much is at stake is the risk code’s job, and we build three layers of it into every bot:

Risk settings panel of a gold trading bot with ATR stop and daily loss limit

The lot comes from your percent risk. When a signal appears, the bot reads the stop distance and the tick value from your account, then works out the lot that would lose your chosen percent at the stop and rounds it to the broker’s volume step. If the result falls below the minimum lot or above the maximum, the bot skips the trade and writes the reason to the log.

A daily loss limit also sits above each trade. Once the day’s closed and open losses reach it, the bot closes its trades and waits for the next day. You choose whether the day resets at server midnight or at a set Gulf time.

The equity stop is the last net. When equity drops below the level you set, the bot closes everything and pauses. For funded accounts, our prop firm risk manager for MT4/MT5 puts the same guards on the whole account, manual trades included.

Swap-free gold: how the mechanics work

The bot is compatible with swap-free / Islamic accounts, but each broker runs them its own way. Some charge a fixed fee after a set number of nights. Others cap how long a gold trade may stay open.

We match the code to your terms. The bot can count the nights a trade has been open, and it can close gold positions before the rollover or before the Friday close. These are mechanics only, set from your broker’s written terms. See our swap-free EA page for more detail, and check your broker’s terms and local regulations before you trade live.

Demo test first, then MT4 or MT5

You never have to trust a bot blind. Each gold trading bot UAE clients order from us starts on their own demo account, where they can hold every trade up against their rules.

Gold trading bot on MT4 compared with MT5 for code, orders and testing

  1. Run the build in the MT5 Strategy Tester. Pick “Every tick based on real ticks” when your broker supplies that history, since the tester then replays the broker’s recorded ticks.
  2. Let it trade a demo account for at least two weeks.
  3. Tell us what differs from your rules, and we fix it in a new build.
  4. Approve it, and you receive the final files.

The platforms differ under the hood. MT4 code is MQL4 and sends orders with OrderSend. Its tester models the ticks inside each bar from smaller timeframes, so an MT4 test runs on modelled ticks, not the broker’s recorded ones.

MT5 code is MQL5, uses the CTrade trade class, and works on hedging or netting accounts. A netting account holds only one position per symbol, so we build the order logic for the account type you trade.

For the language itself, MetaQuotes publishes the official MQL5 documentation. Every step from spec to delivery is on our MT5 Expert Advisor development page.

What you receive

  • A compiled .ex4 or .ex5 file, ready to attach to an XAUUSD chart.
  • Optional source code (.mq4 or .mq5) after the final payment.
  • A settings guide that shows each input and the Gulf time conversion.
  • A setup walkthrough over a call or a screen share.
  • 7 days of fixes after delivery.
  • An NDA on request, so your rules stay private.

Until the final payment, we can lock the trial build to your account number or give it an expiry date.

Gold trading bot UAE price in USD, AED and SAR

A custom gold bot starts from $50. At the fixed rates of 3.6725 AED and 3.75 SAR per dollar, that comes to about 184 AED or 188 SAR. One entry rule plus the basic filters sits near that starting point.

We fix every quote in USD before we start, and you pay in USDT: 50% before coding, the rest when you approve the demo build. If you cancel before coding starts, we refund the deposit. Once coding has started, it is not refundable.

Our expert advisor development cost page lists prices for larger builds.

What to send with your rules

A quote comes back faster when your first message holds everything we would otherwise ask for. Write out your entry and exit rules the way you trade them, and say whether you use MT4, MT5 or both. Add the gold symbol exactly as your broker shows it, such as XAUUSD.m, and whether the account is hedging or netting.

For a swap-free account, attach the broker’s written terms. Then list the risk inputs you want from the risk panel: percent per trade, the daily loss limit and the equity stop.

Send your XAUUSD rules on WhatsApp in your own words, or by email to support@algokhaleej.com. The AlgoKhaleej team works remotely from India, Sunday to Friday, 10:30 to 20:30 UAE time, and will reply with questions and a fixed quote.

Sources

Official pages we checked this page against on 17 Nov 2026:

Frequently asked questions

Can the gold trading bot run on both MT4 and MT5?

It can, as two separate builds. MT4 code doesn't run in MT5 without a conversion, so we write the version you trade on, or both with the same logic and the same input names. One settings guide then covers both terminals.

Do I set the session hours in UAE time or in server time?

You type them in UAE or Saudi time. The settings guide lists your broker's server offset for summer and winter. MT5's economic calendar also gives event times in server time, so the news pause goes through the same conversion as the session hours.

Will the bot work on my swap-free account?

The same build runs on a standard or a swap-free account, because the bot only places and closes orders. What changes is the holding rule. Send your broker's written swap-free terms with your rules, and we set the night count or the Friday close to match them.

Can the bot run on the MT5 mobile app?

Expert Advisors only run in the desktop terminal, on a PC or a VPS. The phone app still shows every trade the bot opens, and the bot can send push alerts to it through your MetaQuotes ID.

Can you promise results from a gold trading bot?

Nobody can promise that, us included. We promise that the bot follows your written rules, and the demo test is where you check it. Live results will be close to demo but not identical, because spread, fills and the data feed differ from one account to the next.

How much does a gold trading bot cost in AED or SAR?

A simple build lands near 184 AED in the UAE or 188 SAR in Saudi Arabia. Grids, baskets, several symbols or a custom chart panel cost more, because each one needs extra testing. Both currencies are pegged to the dollar, so the AED and SAR figures barely move between quote and payment.

WhatsApp · Email · Telegram

Tell us what you want to automate

Send your rules on WhatsApp. You get a clear quote, then a demo build to test before you pay in full.