Service · Swap-free · MQL5 · MQL4

Swap-Free EA Built Around Your Broker's Rollover Time

A swap free EA from AlgoKhaleej is a MetaTrader 4 (MT4) or MetaTrader 5 (MT5) Expert Advisor that trades your strategy on a swap-free / Islamic account and follows its time rules. It can close every trade before the daily rollover, block entries near it and count nights held, all in your broker's server time.

  • Custom built
  • Demo testing before payment
  • Source code option
  • NDA on request
Swap-free EA settings: close before rollover, a cut-off time, intraday-only mode and a holding limit on a 24-hour timeline

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

Swap-free EA close-before-rollover flow: trade, stop new entries, close open trades, let rollover pass, resume

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.

Swap-free EA inputs panel with rollover close time, entry cut-off, resume time and nights held

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.

No-overnight trading window shown in server time, UAE time and Saudi time

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.

Generic EA compared with a swap-free EA on rollover handling and time settings

How a swap-free EA project works

It follows our usual path of rules, code, a demo test and delivery.

  1. 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.
  2. We write the EA in MQL5 or MQL4, with the rollover module kept apart from the strategy code.
  3. You run the build in the MT5 Strategy Tester and on a demo account, and let it run through at least one real rollover.
  4. 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.

Files and support included in a swap-free EA project

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

Frequently asked questions

Is a swap-free EA different from a normal EA?

The entry and exit logic can stay exactly as you trade it today. We add the time rules as a separate module, which means a later change to your strategy leaves the rollover settings alone, and the other way round.

Do you certify that the EA meets religious rules?

We don't, and we give no rulings of any kind. What we stand behind is the code: the EA follows the time rules you set, and you watch it do so on your own demo account. A qualified adviser is the right person for the religious question.

Will my broker charge fees on a swap-free account?

That depends on the broker, and the answer is in its account terms, not in the EA. Send us the relevant page with your strategy. We read the fee and holding rules from it and set the night counter to close a trade one rollover before any charge would start.

What time does the EA use for rollover?

The trade server's clock, since that is the clock your broker uses for rollover. In MQL5, TimeCurrent() returns the time of the last quote from the server, while TimeTradeServer() is calculated on your computer and depends on its time settings. The EA cross-checks the two.

Can you add a rollover close to my existing EA?

We can when you have the .mq4 or .mq5 file. Send the source with a short note on what the EA does now, and we quote the add-on before any work starts. Owners of a compiled file only get the helper EA route.

Do I need a VPS for a swap-free EA?

For most Gulf traders it is the safer setup. MetaQuotes' help on virtual hosting says a running EA needs a constant connection to the trade server and an uninterrupted power supply, which a home PC left on overnight does not always give.

Does it work on both MT4 and MT5?

It does. MQL4 and MQL5 both expose the triple swap weekday as SYMBOL_SWAP_ROLLOVER3DAYS and the swap values as SYMBOL_SWAP_LONG and SYMBOL_SWAP_SHORT. We write MQL4 for MT4 and MQL5 for MT5, and every option works on either.

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.