Who a swap-free EA is for
This service is for traders who hold a swap-free or Islamic account and already know what they want to trade. Some trade a clear strategy by hand and want it coded as it is. Others run an EA that holds trades overnight with no rollover rules at all. Some pay an admin fee or hit a holding limit on longer trades. Nearly all of them need every time setting in broker server time rather than the clock on their phone.
AlgoKhaleej writes trading software and gives no religious rulings. On this page a swap-free account is simply an account type some brokers offer, and its conditions are whatever your broker’s own terms say.
What is a swap-free account?
A swap-free account is an account type, offered by some brokers, in which positions held past the daily rollover are not charged swap in the usual way. Each broker writes its own conditions. Some replace swap with an admin fee. Others cap the number of nights a trade may stay open, or review accounts that hold positions for long periods. An EA built for this account type has to know those limits and act on them in the broker’s clock.
What we build into your swap-free EA
Most traders ask for a mix of the same five options. Each is an input in the EA, so you can switch it on or off without new code.
| Option | What the EA does | Example setting |
|---|---|---|
| Close before rollover | Closes its trades shortly before the daily rollover, then waits for a resume time you choose before it trades again | close at 23:45 server time |
| No-overnight mode | Trades only inside a daily window and stays flat outside it | 08:00 to 21:00 server time |
| Entry cut-off | Opens no new trades in the last hour before rollover, so a fresh trade never closes minutes after it opens | stop entries at 23:00 server time |
| Triple swap day check | Reads the weekday of the triple charge from the symbol’s settings | read from symbol |
| Holding limit | Counts the nights each trade has been held and closes it at the limit your broker allows | 3 nights |
You can combine them or use one. A swing trader, for example, may skip the nightly close and rely on the holding limit alone. The usual EA features stay too: stops, TP, trailing and alerts, all listed on our MT5 Expert Advisor development page.
MetaTrader 5’s help describes swap rates as a multiplier for each weekday, and its own example uses a ratio of 3 on Wednesday. The triple day is still a symbol setting that can differ between symbols and brokers, which is why the EA reads it from the symbol.
What time is rollover in the UAE and Saudi Arabia?
Rollover happens at a time your broker sets in its server clock, so the Gulf time depends on the server’s offset. Take a server on UTC+2 with rollover at 00:00 server time. That is 02:00 in the UAE and Oman (GST, UTC+4), and 01:00 in Saudi Arabia, Kuwait, Qatar and Bahrain (AST, UTC+3). None of these six countries changes its clocks during the year.
Some broker servers do. A server that runs on UTC+2 in winter and UTC+3 in summer moves rollover one hour earlier on your local clock for half the year. Most rollover bugs come from an EA that was told a local time and kept it through that change.
We never hard-code your local time. The EA reads the trade server time and applies every setting in that clock, so 23:45 server time stays 23:45 server time whatever the season.
For a trader in Dubai or Riyadh, rollover lands in the middle of the night. The EA can only close trades while the terminal is running. That is the usual reason to put it on a VPS.
Matching the EA to your broker’s terms
Read your broker’s swap-free terms before you go live, and check your local regulations as well. Then send us the terms with your strategy. If the broker allows three free nights, for example, the counter closes each trade before the fourth rollover.
The EA can also show the swap values your terminal reports for each symbol, so you see what the account shows before the first trade. The same figures can be checked by hand in MT5. Right-click the symbol in Market Watch and open Specification, which lists the swap type, swap long, swap short and the swap rate for each day.
Account checks use the standard MQL5 account properties: login, server name and trade mode. Each check therefore runs on the exact account you trade.
Already have an EA?
With the .mq4 or .mq5 source code, we add the rollover module to your own EA. Your strategy logic stays as it is and only the time rules change. A compiled .ex4 or .ex5 file can’t take new code. The alternative there is a small helper EA that watches every trade on the account and closes them all before rollover. Your old EA may try to reopen trades straight after, so we test the two together on demo before you rely on them.
How a swap-free EA project works
It follows our usual path of rules, code, a demo test and delivery.
- You send your strategy and your broker’s swap-free terms. Together we fix the close time, the cut-off and the holding limit in server time.
- We write the EA in MQL5 or MQL4, with the rollover module kept apart from the strategy code.
- You run the build in the MT5 Strategy Tester and on a demo account, and let it run through at least one real rollover.
- You receive the files, the settings guide and a short setup call.
What you receive
Every swap-free EA project ends with the same package:
- a compiled .ex5 or .ex4 file, ready to attach to a chart,
- the source code (.mq5 or .mq4), if you chose that option,
- a settings guide that explains each rollover input in server time,
- a setup walkthrough on a call, with a server-time check on your account,
- 7 days of fixes after delivery.
Safe delivery on your demo account
You test a trial build on your own demo account before you pay in full. The trial can carry an account-number lock or an expiry date. Once you approve it and pay the balance, the full version arrives, plus the source code if you chose it.
A swap-free build gets one extra check on demo. After a real rollover, open the Experts tab in the Toolbox and find the close entries. The journal’s Time column uses your computer’s time zone. For that reason the EA writes the server time into each close message, which you compare with the close time you set.
For prop firm challenges, read our Islamic funded account EA guide and see how a swap free EA works.
How much does a swap-free EA cost?
Adding a rollover module to an EA you already own starts from $50. A new EA with the full set of swap-free options costs more, because there is more to test. Each quote is a fixed USD price agreed before we start, with a 50% deposit before coding and payment in USDT. Our expert advisor development cost page shows where a rollover add-on sits next to other projects.
If you also trade a funded account, our prop firm risk manager for MT4/MT5 adds daily loss and drawdown guards to the same code. For copying trades between accounts, the same rollover rules can go into an MT4/MT5 trade copier.
Sources
- Symbol properties: swap mode, swap long and short, 3-day swap day, MQL5 reference and MQL4 reference
- Market Watch and the symbol specification, MetaTrader 5 help
- TimeCurrent(), MQL5 reference
- TimeTradeServer(), MQL5 reference
- Platform logs and the Experts journal, MetaTrader 5 help
- Strategy Tester, MetaTrader 5 help
- Virtual hosting, MetaTrader 5 help





