Geopolitical events and trading automation.
Elections have a date but not a result; shocks have neither; and what happens at the weekend arrives as a gap on Monday. Here is what no economic-calendar filter can catch, and the risk settings that actually protect an automated strategy.
The short answer
Geopolitical risk comes in two kinds. Some events have a known date but an unknown outcome: elections, referendums, summits, trade deadlines. Others are unscheduled: a military escalation, an attack, sudden sanctions, an emergency announcement. And a lot of what happens at the weekend lands while the forex market is closed, so it shows up as a gap at the reopen.
No economic-calendar filter can catch an event that is not on the calendar, including SignalForge's. What protects an automated strategy here is risk you set before the event: position size, a stop-loss at the broker, a daily loss limit, and a plan for Friday afternoon. For the scheduled side of macro risk, see central bank decisions, speeches and minutes and FOMC.
Which geopolitical events matter for trading
- Elections and referendums. The date is fixed; the result is not, and it often arrives overnight, in pieces, during thin trading hours. Example: the US general election is on Tuesday 3 November 2026 (ncsbe.gov, checked 4 October 2026); results come in through the night in Europe and the Asian session. Many elections around the world are held on Sundays, with markets closed.
- Summits, trade talks and tariff deadlines. Known windows, unknown headlines, often published before, during and after the meeting.
- Unscheduled shocks. Conflicts, attacks, sanctions, government collapses, sudden policy announcements. Typical first reactions include safe-haven flows and sharp moves in the currencies, indices and commodities directly involved, but each event is different and none comes with a timestamp.
- Emergency central bank action. Unscheduled rate moves or statements, usually in response to the above.
Why they cause volatility and gaps
With a data release, the market has a consensus forecast to price against. With a shock there is nothing to price against, so liquidity providers pull back, spreads widen and price can jump instead of moving step by step.
The weekend adds a structural problem. The forex market closes on Friday and reopens on Sunday evening; anything that happens in between is priced in at the open, all at once. If the first price on Monday is beyond your stop-loss, the stop is filled at that first available price, not at your level. That is a gap, and no bridge, EA or VPS can fill you at a price that never traded.
What it means for a TradingView to MT5 bot
- Alerts keep firing. Your Pine strategy reads price, not headlines. After a shock it may generate entries into the most disorderly market of the month.
- Calendar filters are blind. SignalForge's news filter blocks around high-impact events on the ForexFactory calendar. An unscheduled event has no entry, so the filter never triggers. A scheduled election only counts if it is listed as high impact, and even then its results rarely arrive at a single time.
- Closed markets reject orders. If your TradingView chart keeps printing while the broker's symbol is closed, the EA's order is rejected with retcode 10018 (market closed). The server does not check market hours; the broker does.
- Prop firm weekend rules. FTMO requires positions on a Standard FTMO Account to be closed shortly before the market closes for the weekend, or before a rollover longer than 2 hours; Swing accounts and the evaluation phase are exempt (ftmo.com, checked 4 October 2026). Other firms have their own rules: read yours.
Event by event: what can and cannot be filtered
How to protect an automated strategy in SignalForge
- Size for the gap, not for the average day. In the dashboard you can size by fixed lot, lot from the signal, or risk %. Risk mode needs a stop-loss (without one, the EA falls back to the fixed lot). Choose a size where a gap through your stop is a bad day, not the end of the account.
- Always send a stop-loss. The SL and TP are placed on the order at the broker. If the broker rejects the stops (retcode 10016), the EA retries without them and sets them right after. A stop will not save you from a gap, but it caps everything else.
- Keep the Prop Firm Shield on (Trader plan and above). Daily loss limit in $ or %, on equity against the day's starting balance; at the limit the EA closes open positions and stops until 00:00 broker server time. Two honest limits: after a gap the close happens at the market price, so the loss can exceed the limit; and the Shield does not apply a maximum drawdown rule, so watch that yourself.
- Weekends: SignalForge has no automatic weekend close. If your prop firm forbids holding over the weekend, or you simply do not want to, use the time filter to block new entries in the last hours of Friday (broker time), and close open positions with a close alert from your strategy (for example a session-end exit in Pine) or by hand. Close signals are never blocked by the time filter, and the time filter does not close positions on its own.
- Scheduled political events. If the calendar lists one as high impact, the news filter covers its default window (30 minutes before, 15 after). For a results night, block the whole window with the time filter instead.
- Emergency stop. If something breaks and you want every EA to stop opening trades, turn off the Algo Trading button in MT5; orders then fail with retcode 10027 until you turn it back on.
Checklist before the weekend or a risky week
- Check the dates you can know: elections, referendums, summits, deadlines, central bank decisions.
- Lower position size or risk % for the week if the calendar of unknowns is heavy.
- Every strategy sends a stop-loss; risk mode has one on every alert.
- Prop Firm Shield daily limit set, and you know how your firm defines the trading day.
- Friday: time filter blocks new entries in the last hours before the close.
- Friday: close what your firm or your plan does not allow you to hold, by alert or by hand.
- Monday: check fills, slippage and the FILTERED and FAILED signals in the dashboard.
Prop firm rules in one list: prop firm compliance checklist. Why TradingView cannot filter news by itself: TradingView news filter guide.
FAQ
Can a news filter protect me from geopolitical shocks?
No. Shocks are unscheduled, so they have no calendar entry and no calendar-based filter can see them coming. Position sizing, stop-losses at the broker and a daily loss limit are what limit the damage.
Does SignalForge close my positions before the weekend?
No, there is no automatic weekend close. Use the time filter to stop new entries late on Friday and close open positions with a close alert from your strategy or by hand; close signals are never blocked by the time filter.
Will my stop-loss protect me from a weekend gap?
Not at its exact price. If the market opens beyond your stop, the stop is filled at the first available price, which can be much worse. Size positions so that a gap through the stop is survivable.
Does the Prop Firm Shield stop a loss caused by a gap?
It closes open positions and stops trading when the daily loss limit is reached, but after a gap the close happens at the market price, so the loss can exceed the limit. The Shield does not apply a maximum drawdown rule; track that yourself.
Is holding trades over the weekend allowed at prop firms?
It depends on the firm and the account type. FTMO, for example, requires positions on a Standard FTMO Account to be closed shortly before the weekend market close, while Swing accounts and the evaluation phase are exempt (ftmo.com, checked 4 October 2026). Check your own firm's rule.
Macro events cluster
Set the risk before the headline.
Risk-based sizing, Prop Firm Shield daily limit and a half-hour time filter on every MT5 account, from the Trader plan. 14-day free trial, no card required.
SignalForge AI is an order-execution tool. We do not provide investment advice and this page is not a recommendation to trade or avoid any event. Trading involves risk of loss, and gaps can cause losses larger than your stop-loss. Prop firm rules change: confirm them with your firm.