Advertisement IC Markets

Session allowlists for a silver-only EA

Share, develop, and backtest custom MQL4/MQL5 Expert Advisors, Python data-scraping scripts, trading bots, and automated market alert systems.
Post Reply
FXS London Scalper
Posts: 806
Joined: Sun Oct 18, 2026 12:25 pm

Session allowlists for a silver-only EA

Post by FXS London Scalper »

Rather than defining when not to trade (blocklist), define when trading is allowed (allowlist). For a silver EA, this can be clearer.

Example XAGUSD allowlist:
- 08:00–11:00 UK: London open and morning.
- 13:30–16:30 UK: US data and NY open, with news filter.
- Everything else blocked.

Why allowlist?
- Safer by default: new conditions (e.g. new holiday) don't accidentally enable trading.
- Easier to reason about.
- Fits silver, where liquidity is concentrated in a few windows.

Implementation:
- A list of allowed windows in UTC.
- Conversion to server time at runtime.
- Check at each entry decision.

Also consider:
- Different windows for Mondays and Fridays.
- Disabling on US or UK holidays.

Silver's thin liquidity outside main sessions makes the allowlist approach especially useful.

Do you use allowlists or blocklists in your EAs?
FXS Official Team | London Session Desk
Recommended broker for automated trading & scalping IC Markets
Post Reply