Stop Sunday price gaps from breaching your drawdown limits. Use automated Friday flattening rules to protect your funded prop firm account from volatility.

Prop firm automation weekend gap risk management protects funded accounts from price jumps that occur between Friday's close and Sunday's open. Weekend gaps on ES, NQ, GC, and CL futures can exceed daily loss limits in seconds, making automated position protection and pre-weekend flattening rules a requirement for any trader running a prop firm trading bot on a funded account.
A weekend gap is the price difference between Friday's closing price and Sunday's opening price on a futures contract. Futures markets close at 5:00 PM ET on Friday and reopen at 6:00 PM ET on Sunday, creating a 49-hour window where news, geopolitical events, and sentiment shifts accumulate without any trading to absorb them. When the market reopens, price often "gaps" to a new level that reflects everything that happened over the weekend.
Weekend Gap: The difference between a futures contract's Friday settlement price and its Sunday opening price. For prop firm traders, gaps that move against an open position can trigger daily loss limits or trailing drawdown violations before you have any chance to react.
On ES futures, where each point equals $50 per contract, a 20-point gap means $1,000 of instant profit or loss per contract at the Sunday open. NQ futures are even more volatile, with each point worth $20 per contract but typical gap sizes running 30-80 points. CL (crude oil) gaps can be extreme when weekend OPEC announcements or Middle East tensions shift supply expectations. These moves happen instantly at the open, with no opportunity to manage the trade in between.
For discretionary traders, weekend gaps are a known risk they can choose to accept or avoid. For automated systems running on prop firm accounts, the gap risk problem is more specific: your automation needs explicit rules for handling the Friday-to-Sunday transition, or a single gap event can end a funded account.
Weekend gaps threaten prop firm accounts because they can breach daily loss limits and trailing drawdowns instantly, with no opportunity to exit or adjust. A stop loss set at -$500 on Friday means nothing if the market gaps past it by $2,000 on Sunday's open.
Here's the math that makes this concrete. Say you're trading a funded account with a $150,000 balance and a 3% trailing drawdown ($4,500). You have two ES contracts open with a stop loss 10 points away (-$1,000 total risk). The market gaps 40 points against you on Sunday. Your actual loss is $4,000 (40 × $50 × 2 contracts), not the $1,000 your stop loss was supposed to limit it to. That's 89% of your entire trailing drawdown gone in one tick of Sunday's opening print.
Trailing Drawdown: A maximum loss threshold that moves upward with your account's high-water mark but never moves back down. Once your account equity drops from its peak by the trailing drawdown amount, the account is typically breached. Weekend gaps can push equity below this threshold before any trade management is possible.
The problem compounds with these prop firm rule categories:
Prop firm weekend holding rules determine whether traders can keep positions open from Friday's close through Sunday's open. These rules vary significantly between firms, and your automation must match your specific firm's policy exactly.
Here's how the major rule categories break down:
Rule TypeWhat It MeansAutomation RequirementNo weekend holdingAll positions must be flat before Friday closeMandatory Friday flattening before 4:59 PM ETWeekend holding allowedPositions can carry over, normal rules applyPre-weekend equity check, reduced sizing optionalWeekend holding with restrictionsAllowed but with reduced position sizes or wider stopsFriday afternoon position sizing adjustmentEvaluation phase: no holdingNo weekend holds during challenge/evaluationStrict flattening during evaluation, flexible after funding
The evaluation phase is where this matters most. During a prop firm challenge, you're trying to hit a profit target while staying within a daily loss limit and trailing drawdown. One bad weekend gap can end a challenge that took weeks to build. Even firms that technically allow weekend holding during evaluations rarely make it worth the risk, because the asymmetry is brutal: the gap upside is capped by your profit target, but the downside can wipe your entire drawdown buffer.
After passing and receiving a funded account, some traders take a different approach. With a scaling plan in place and a larger drawdown buffer on funded accounts, selective weekend holding becomes more viable, but only if your automation includes the protective logic described below.
Automating weekend gap protection means building time-based and equity-based rules that either flatten positions before the weekend or reduce exposure to survivable levels. This is one area where prop firm automation weekend gap risk management directly prevents account breaches that no amount of strategy optimization can recover from.
The core automation components are:
1. Time-based Friday flattening. Set your automation to close all open positions and cancel all pending orders at a specific time on Friday. Most traders use 4:45-4:55 PM ET, giving a 5-15 minute buffer before the 5:00 PM close. This avoids the last-minute liquidity crunch that sometimes occurs in the final seconds.
2. Pre-weekend equity check. Before allowing any position to carry into the weekend (if your firm permits it), your automation should verify: current drawdown usage is below 50% of maximum, the open position's unrealized P&L is positive, and the position size is reduced to the minimum allowed by your max position size rules.
3. Friday afternoon trade restriction. Some traders configure their prop firm trading bot to stop opening new positions after a certain Friday cutoff, typically 2:00-3:00 PM ET. This prevents entering a new trade that doesn't have time to develop before the forced flattening window.
4. Sunday open monitoring. If you do carry a position over the weekend, your automation should include a Sunday 6:00 PM ET check that evaluates the opening price against your stop levels and daily loss limit. If the gap has consumed more than 50% of your remaining daily loss limit, the position closes immediately at market.
Platforms that connect TradingView alerts to broker execution can implement these rules through time-based alert conditions combined with position-checking logic. ClearEdge Trading's risk controls include daily loss limit settings that can help enforce these boundaries, though the time-based flattening logic typically lives in your TradingView strategy or alert configuration.
Friday flattening is the most reliable way to eliminate weekend gap risk entirely. The settings below represent a practical approach that most funded account automation setups can implement without complex coding.
Friday Flattening: An automated rule that closes all open positions and cancels pending orders before the Friday market close. This eliminates weekend gap exposure completely by ensuring you enter the weekend with zero market risk.
Recommended configuration:
In TradingView, you can use session-based conditions in Pine Script to detect Friday afternoon. The dayofweek variable combined with hour and minute checks gives you the timing logic. Your webhook payload then sends a flatten-all command to your execution platform.
One thing to watch: if you trade both RTH and ETH sessions, make sure your flattening logic uses the correct session end time. The CME's Friday close is 5:00 PM ET for equity index and metal futures, but some brokers show 4:15 PM ET as the RTH close. Your automation needs to flatten before the actual final session close, not the RTH close [2].
If a weekend gap pushes your funded account beyond its daily loss limit or trailing drawdown, most prop firms treat it the same as any other breach: the account is closed or suspended. The gap doesn't get special treatment just because it happened while the market was closed.
Here's how different scenarios play out:
Gap within daily loss limit: Your account survives but starts Monday already down. Your automation should recognize the reduced daily budget and adjust position sizing accordingly. If your daily loss limit is $3,000 and the gap cost you $1,800, you only have $1,200 of risk budget left for Monday's session.
Gap exceeds daily loss limit but not trailing drawdown: You've breached the daily limit, which at most firms means you cannot trade for the rest of that calendar day. Some firms may issue a warning; others may treat it as a violation. Your automation should detect this condition at Sunday's open and disable trading until the next session [3].
Gap exceeds trailing drawdown: The account is breached. At most firms, this means the funded account is terminated. Some firms offer resets or re-evaluation options, but the cost varies. This is the worst case and the primary reason weekend gap protection exists.
For traders running multiple prop firm accounts, a single weekend gap can breach several accounts simultaneously if they're all holding the same instrument in the same direction. Copy trading across accounts amplifies this risk rather than diversifying it.
1. Relying on stop losses for gap protection. Stop losses execute at the next available price after a gap, not at your stop price. A stop at 5,900 on ES means nothing if the market opens at 5,850 on Sunday. Your fill will be near 5,850, and the 50-point difference is real money. Automation that depends on stops for weekend protection is automation that will eventually fail.
2. Forgetting holiday weekends. Three-day weekends (Memorial Day, Labor Day, Good Friday) create longer gaps. The same applies to mid-week holidays where markets close early. Your flattening logic needs a holiday calendar, not just a Friday check. The CME publishes its holiday schedule annually.
3. Flattening too late on Friday. Liquidity drops in the final minutes before the 5:00 PM close. Traders who flatten at 4:58 or 4:59 PM often experience wider spreads and worse fills. Build in a buffer of at least 5 minutes, preferably 10.
4. Not testing the flattening logic in paper trading. Your Friday flattening command is a safety mechanism you'll use 52 times per year. If it fails once due to a webhook issue, timezone misconfiguration, or broker API timeout, the result could be an unprotected weekend hold. Test it repeatedly in a paper trading environment before going live.
No. Weekend holding policies vary by firm and sometimes by account type. Some firms prohibit it entirely during evaluation phases but allow it on funded accounts. Always check your specific firm's rules before configuring your automation.
ES weekend gaps typically range from 5-20 points under normal conditions, but they've exceeded 100 points after events like surprise elections, pandemic announcements, or geopolitical crises. At $50 per point per contract, even a 30-point gap is $1,500 per contract.
Yes. You can configure time-based rules that reduce maximum position size after a Friday cutoff time or that scale down open positions proportionally. This is a middle ground between full flattening and unrestricted weekend holding.
Yes. While micro contracts (MES, MNQ) have smaller per-point values ($1.25 and $0.50 respectively), the percentage gap relative to account size is the same. A 50-point gap on 10 MES contracts produces the same dollar impact as 1 ES contract.
Build redundancy into your system: a primary flattening command at 4:45 PM ET and a backup at 4:55 PM ET. Set a mobile alert to confirm flat status. Some traders also place a manual market order as a failsafe if the automated confirmation doesn't arrive by 4:50 PM.
FTMO prohibits holding positions over the weekend during evaluation phases. Your FTMO automation setup should include mandatory Friday flattening before the close. On funded FTMO accounts, weekend holding rules may differ, so verify the current policy in your account dashboard before configuring your automation settings.
Prop firm automation weekend gap risk management comes down to one principle: don't let a 49-hour window of unmanageable risk destroy weeks of careful trading. Automated Friday flattening, pre-weekend equity checks, and firm-specific rule compliance are not optional features for funded account automation. They're the baseline.
If you're building or refining your prop firm rules automation setup, start with the flattening logic and test it thoroughly in paper trading before risking a funded account. For a broader view of how these protections fit into a complete prop firm strategy, read the complete prop firm automation guide.
Want to dig deeper? Read our complete guide to prop firm automation for more detailed setup instructions and strategies.
Disclaimer: This article is for educational purposes only. It is not trading advice. ClearEdge Trading executes trades based on your rules; it does not provide signals or recommendations.
Risk Warning: Futures trading involves substantial risk. You could lose more than your initial investment. Past performance does not guarantee future results. Only trade with capital you can afford to lose.
CFTC RULE 4.41: Hypothetical results have limitations and do not represent actual trading.
By: ClearEdge Trading Team | About
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Block quote
Ordered list
Unordered list
Bold text
Emphasis
Superscript
Subscript
Every week, we break down real strategies from traders with 100+ years of combined experience, so you can skip the line and trade without emotion.
