EA Weekend Holding Risk and Friday Close Design
Contents (6)
- Conclusion: Closing Everything on Friday Isn't Automatically Safe
- What Actually Happens When You Hold Over the Weekend
- Gaps Can Jump Past Your SL
- Some Days Charge Three Days of Swap
- Implementing a Friday Close, and Its Side Effects
- The Basics
- Side Effect: Your EA's Results Change
- Pre-Deployment Checklist
- Limitations and Caveats
- Summary
Contents
- Conclusion: Closing Everything on Friday Isn't Automatically Safe
- What Actually Happens When You Hold Over the Weekend
- Gaps Can Jump Past Your SL
- Some Days Charge Three Days of Swap
- Implementing a Friday Close, and Its Side Effects
- The Basics
- Side Effect: Your EA's Results Change
- Pre-Deployment Checklist
- Limitations and Caveats
- Summary
Conclusion: Closing Everything on Friday Isn't Automatically Safe
Here is the conclusion up front. Holding positions over the weekend carries two risks you don't face on weekdays: the opening gap and the swap burden. But force-closing everything on Friday is not a cure-all either. For an EA with long holding times, it changes the results themselves.
Rather than treating this as a binary choice between holding and closing, we recommend choosing based on your EA's holding-time profile, then re-verifying that choice with a backtest.
Recommended Broker Comparison →
🎁 Download Free EA📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
* Privacy strictly protected. You can unsubscribe at any time.
What Actually Happens When You Hold Over the Weekend
Gaps Can Jump Past Your SL
FX and gold CFDs have no prices between Friday's close and Monday's open. If major news breaks in between, Monday's opening price starts away from Friday's closing price. This is the weekend gap.
The problem is that if your stop loss (SL) sits inside the gap, it won't fill at the SL price. An SL is an order that closes the position at market once price reaches that level. If price opens beyond it, the position is closed near Monday's open instead. The loss can exceed the per-trade loss you planned for. If you size your lots backward from the SL distance, that assumption breaks right after the weekend.
Some Days Charge Three Days of Swap
Holding a position overnight incurs swap (the interest-rate differential adjustment). Because the weekend's swap is booked in one lump, one day each week charges three days' worth. In FX this is most often Wednesday, but for gold, stock index and crypto CFDs, the day and the calculation method vary by broker and symbol. Always check the triple-swap day and the swap values in the MT5 symbol specification (Market Watch → Specification).
For an EA that holds for long periods in the negative-swap direction, this is less conspicuous than a gap, but it steadily eats into profit.
Implementing a Friday Close, and Its Side Effects
The Basics
A Friday close is built by adding logic to the EA: "after a set time on Friday (server time), stop new entries; at a later set time, close open positions." Keep these points in mind:
- Judge time by server time (TimeCurrent). Brokers use different time zones, so hard-coding Japan time will drift on another broker.
- Use separate times for stopping new entries and for closing. An entry made right before the close just gets closed immediately.
- Avoid the very last bars. Spreads tend to widen just before the weekend, and closing at the last moment often means an unfavorable price.
- Plan for holidays and shortened sessions. Around Christmas and similar dates, markets can close earlier than usual on Friday. Relying on a fixed time alone means the close may not happen in time.
- Add a retry for failed closes. Expect order rejections (requotes or a closed market), and check the return code before retrying.
Side Effect: Your EA's Results Change
This is the point we most want to stress. Trend-following EAs earn their profit by holding for several days to capture large moves. For example, the average holding times in our EAs' backtests are as follows.
| EA | Symbol / Timeframe | Average holding time (backtest) | Impact of a Friday close |
|---|---|---|---|
| ATLAS | Multi-Asset H1/H4 | 79:07:31 | Likely large |
| MEGAMAX DONCHIAN | USDJPY H1 | 32:58:21 | May be noticeable |
| GOLD TRIPWIRE | XAUUSD H1 | 2:38:15 | Likely relatively small |
If you add a Friday close to an EA that holds for more than three days on average, like ATLAS, you cut off trends that would otherwise have run. The PF and drawdown figures we publish are numbers tested without a Friday close. Once you change that setting, those numbers no longer apply. Whether results improve or worsen can't be known without testing.
A low-win-rate trend EA such as MEGAMAX DONCHIAN is built so that a few large wins make up for many small losses. If those large wins span a weekend, a Friday close may cost you the win.
Pre-Deployment Checklist
- Check the EA's average holding time in the backtest report
- Check the triple-swap day and swap values in the symbol specification
- Check your broker's server time and the last trading time on Friday
- If you add a Friday close, rerun the backtest with that setting
- If you hold over the weekend, review whether your lot size can absorb a loss from a gap past the SL
- Confirm that your VPS and MT5 are reliably running at the Friday closing time
The steps for changing settings are covered in the EA setup guide.
Limitations and Caveats
- A backtest doesn't necessarily reproduce gap risk accurately. In tester data, the fill price at a gap can differ from a live account. Even if past gap losses show up in a backtest, there is no guarantee that a future gap won't be larger.
- Closing on Friday doesn't make Monday's gap go away. An EA that enters at Monday's open does so amid the choppy price action right after the gap.
- Some symbols, such as crypto, trade over the weekend at certain brokers, and for those the premise of a "weekend gap" doesn't apply at all.
- Both designs have losing scenarios. If you hold, you lose to a gap; if you close, you lose by missing the trend. We can't say that either one is always better.
For more on operating approaches, see our EA & MT5 know-how section.
Summary
- The risks of weekend holding are gaps that jump past your SL, and three days of swap
- The triple-swap day differs by symbol and broker, so check the symbol specification
- Base the Friday close on server time, separate the stop-new-entries time from the close time, and plan for wider spreads and holidays
- For long-holding trend EAs, a Friday close changes the results, and the published figures no longer apply
- After changing any setting, always rerun the backtest under those conditions
Related
2026-11-17
Rollover Spread Widening and How to Set a Filter Threshold
2026-11-07
Stop Level and Freeze Level: Why Your SL Gets Rejected
2026-10-02
XAUUSD EA Settings: Risk, MaxSpread, SL, Time Filter
2026-05-22
Gold EA Risk Management
📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
* Privacy strictly protected. You can unsubscribe at any time.
Have a question about EAs or FX?
You can post it on the Nattzy trading forum (free sign-up). Questions beyond this article are welcome too — EA settings, choosing a broker and more.
Ask on Nattzy ↗