Skip to content
Daily Strategy Lab / 17 November 2026
HISTORICAL MODEL · MQL5 SOURCE NOT COMPILED

Gold overnight.
What survives the costs?

Overnight versus intraday, with two fixed rules on gold CFD quotes. Ten years, a €10,000 EUR account, actual bid/ask data and an explicit carrying-cost model.

OVERNIGHT€9,979.51

−0.20% net return · 2,512 closed trades

INTRADAY€4,162.30

−58.38% net return · 2,514 closed trades

BUY AND HOLD€32,962.90

229.63% net return · 1 closed trades

01 / Completed results

The session effect after modeled costs.

Both session rules lost money after the modeled costs. Reject these two unfiltered rules at the tested exposure and cost assumptions; neither establishes a usable trading edge.

These are two unfiltered, predetermined session cases. The benchmark stays invested, while the session rules repeatedly enter and exit; that difference changes their turnover, cost burden and exposure. The test uses gold CFD P&L in a EUR account and does not reproduce an ETF return series.

2016–2025 · EUR account · after modeled costs
MetricOvernightIntradayBuy and hold
Final equity€9,979.51€4,162.30€32,962.90
Net profit€−20.49€−5,837.70€22,962.90
Total return−0.20%−58.38%229.63%
CAGR−0.02%−8.39%12.67%
Maximum drawdown · daily closes40.47%61.76%23.13%
Maximum drawdown · 5-minute closes40.68%62.19%23.82%
Maximum daily-close drawdown in EUR€4,548.13€6,615.74€3,774.70
Trade Profit Factor0.99960.8014—
Annualized Sharpe0.05−1.090.84
Recovery Factor−0.00−0.886.08
Closed trades2,5122,5141
Win rate51.11%46.58%100.00%
Time exposed81.25%18.63%99.92%
Commission paid€847.38€599.06€0.62
Financing paid€3,177.89€481.70€4,752.31
Turnover / initial capital3,926.632,599.484.65
Indicative spread cost€3,908.84€2,623.07€6.64
Indicative slippage cost€2,421.08€1,711.60€1.77

Overnight is effectively break-even under these assumptions. Its net result is −€20.49; its trade Profit Factor is 0.9996. Such a small terminal difference is sensitive to the financing and fill assumptions. Its 40.47% daily-close drawdown remains substantial. This does not establish a usable edge.

Hypothetical historical account results, not live trading or an MT5 Strategy Tester report. A dash means the metric is undefined, including Profit Factor when no closed trade loses. A single buy-and-hold trade cannot establish a stable Profit Factor or win rate.

Cumulative net profit
Cumulative net profit. EUR account equity less the initial €10,000, after all modeled costs. Download chart ↓
Account equity and drawdown
Account equity and drawdown. Daily-close account equity and its decline from the running peak. The table separately reports drawdown sampled at available 5-minute closes. Download chart ↓
Profit Factor, Sharpe and Recovery Factor
Profit Factor, Sharpe and Recovery Factor. Net trade Profit Factor and account-level performance metrics. Buy and hold is a single trade, so its trade statistics have limited meaning. Download chart ↓
Calendar-year net returns
Calendar-year net returns. A fixed annual view of the three account paths, with no re-selection of the strategy or parameters. Download chart ↓
02 / Public idea, explicit adaptation

Two sessions. No filters or optimization.

Quantified Strategies’ public article of 11 March 2026 examines gold’s close-to-next-open and open-to-close returns using gold ETFs. We take those public baseline rules and apply the US equity-session clock to XAUUSD quotes. The source also mentions a filtered subscriber strategy; its filters are undisclosed. This study does not reproduce that strategy or its reported results.

CASE A / OVERNIGHT

Close → next open

Buy gold at the scheduled close of an NYSE session. Sell at the next scheduled NYSE session opening. Weekends and exchange holidays extend the holding period.

CASE B / INTRADAY

Open → close

Buy gold at the scheduled NYSE opening. Schedule the exit at that session’s close. A missing gold quote can delay the exit, including across a weekend.

Both cases use the same exchange calendar, data, lot model and costs. There are no technical, seasonal or news filters, stop-losses, targets or optimized parameters. Buy and hold is a comparison series rather than a third strategy case.

An exchange clock with holidays and daylight saving.

The session schedule comes from the XNYS calendar in exchange_calendars. Ordinary sessions are 09:30–16:00 in America/New_York. The actual calendar supplies holidays, scheduled early closes and daylight-saving changes. An early-close session ends at its actual scheduled close, commonly 13:00, rather than an assumed 16:00. The packaged CSV and MQL5 include cover 2015–2030 and contain explicit UTC timestamps.

These timestamps define events for a gold CFD; they are not a claim that spot gold closes with the NYSE. An entry uses the first available 5-minute gold opening quote at or after the event. If it is more than 15 minutes late, the entry is skipped. An exit waits for the first available quote at or after its event, including a longer delay; the position remains exposed and financing continues until that exit. Invalid FX data, minimum-lot constraints and overlapping positions also cause entry skips recorded below.

Execution diagnostics · actual source availability
SeriesPlanned tradesEntry >15mStale-FX entry skipOverlap skipMinimum-lot skipDelayed exitsLongest exit delay (min)
Overnight2,513100000
Intraday2,514000013,180
Buy and hold1000000

The intraday case is not always flat overnight. On 24 November 2023, the NYSE early close was 18:00 UTC, but the gold feed’s final bar opened at 17:40 UTC. The next gold quote arrived on Sunday, 26 November at 23:00 UTC: a 53-hour exit delay. The already-open intraday position remained exposed until that quote; the overnight entry scheduled for Friday’s close was skipped because it exceeded the 15-minute entry deadline. This is a real session-hours mismatch in the source data, handled by the predetermined fill rules rather than removed after inspecting returns.

Delayed exits are counted separately from rejected late entries. The full trade log records scheduled and actual timestamps, so a delayed fill is visible rather than silently treated as an on-time execution.

03 / Data, account and carrying costs

A reproducible EUR account model.

The test window is 1 January 2016 through 31 December 2025. XAUUSD and EURUSD bid/ask OHLC are Dukascopy-derived data distributed by EV Trading Labs, an attributed third-party aggregation rather than a direct bank export or FTMO broker feed. Exact yearly source URLs, coverage checks and SHA-256 hashes accompany the package. No gold prices are invented to fill gaps.

FX alignment uses information available at each gold observation, looking backward only. Across the underlying sample, 33 gold observations have no matching FX timestamp; the oldest carried FX quote is 51 hours old. Entry eligibility and held-position quote-age diagnostics are in the results. Stale conversion quotes remain a limitation of account mark-to-market, for both overnight and benchmark positions.

FX quote age while a position is held
SeriesStale-FX held barsHeld bars with FX >1 hour oldOldest quote (hours)
Overnight292451.00
Intraday400.17
Buy and hold332451.00

The FX quotes more than one hour old occur in the 26 May 2019 Sunday reopening window. The intraday case has no held quote older than one hour; its maximum quote age is ten minutes. These are observed limitations rather than invented replacement FX prices.

Fixed account and execution assumptions
ItemModel
Initial balance€10,000; EUR account; idle cash earns zero
Position exposureLong gold CFD; entry notional no greater than 1× current equity
Contract and rounding100 oz per lot; 0.01 lot step and minimum; round down
Entry and exitAsk + $0.10 per oz; bid − $0.10 per oz
Commission$3.50 per lot per side
Financing5% per year of entry USD notional, over elapsed calendar time / 365
USD P&L conversionEURUSD bid/ask quotes; direction-sensitive conversion
BenchmarkFirst available 2016 entry, unchanged gold ounces, final 2025 exit

The financing rate is an assumption, not historical swaps. It is charged consistently to each held position, including elapsed nights, weekends and holidays. Real broker financing depends on dates, contract terms and rollover conventions. Entry notional is capped at equity, but the CFD model does not exchange the full principal: EUR cash plus USD trading P&L forms account equity. It is different from physical gold priced in EUR or a gold ETF total-return investment.

Session positions resize at their next eligible entry. Buy and hold retains its original ounces, so it does not rebalance to a daily target weight. All series pay the same modeled spread, slippage, commissions and financing, including final liquidation. Indicative spread and slippage costs in the table are diagnostics already reflected in fill prices; they are not additional fees charged twice.

Fixed retrospective subperiods.

The 2016–2020 and 2021–2025 diagnostics were fixed before this run; no parameters were fitted to either slice. The source article appeared in March 2026, after the entire test window. This is retrospective research, and neither slice is a pristine prospective out-of-sample test of our decision to investigate the idea.

2016-2020 · fixed retrospective diagnostic
SeriesReturnDaily max drawdownSharpeClosed trades
Overnight−8.24%27.58%−0.121,258
Intraday−44.96%49.10%−1.401,259
Buy and hold44.91%22.17%0.590
2021-2025 · fixed retrospective diagnostic
SeriesReturnDaily max drawdownSharpeClosed trades
Overnight8.75%28.70%0.211,253
Intraday−24.38%25.69%−0.731,255
Buy and hold127.47%22.22%1.060

Split trade counts include only trades whose entry and exit both fall inside the slice. Buy and hold spans the full decade, so it has zero fully contained trades in either slice even though its equity remains exposed.

Profit Factor
Positive net closed-trade P&L divided by the absolute negative net closed-trade P&L, including allocated execution and carrying costs.
Annualized Sharpe
Mean calendar-day EUR equity return divided by its sample standard deviation, multiplied by √365, with a zero risk-free rate. Idle cash days are included.
Recovery Factor
Total net EUR profit divided by maximum EUR drawdown measured from daily-close equity. Negative total profit can produce a negative factor.
Drawdown and CAGR
Headline drawdown uses calendar-day closes. Maximum drawdown at observed 5-minute closes is shown separately; neither captures every tick. CAGR annualizes the full-period change in account equity.
04 / Sampled risk screening

FTMO: no certified pass.

The tables screen one continuous account over 2016–2025. They do not run a complete Challenge and Verification with target-triggered closures, phase resets or every possible start date. Daily flags use an approximate Prague-day opening balance, and actual historical broker swaps are unavailable. A 5-minute OHLC path cannot certify the equity path between quotes.

Under the 2-Step objectives, a €10,000 account has €1,000/€500 phase targets, a €500 daily loss allowance and €9,000 static equity floor. Each phase requires four separate days with an opening trade. Targets require closed positions.

2-Step sampled screen · continuous account, not phase replay
SeriesClassificationApproximate daily-loss flagStatic-loss flag
Overnightstatic-total-loss sampled breach under modelNo sampled flag2018-04-23 12:30 UTC · €8,994.39
Intradaystatic-total-loss sampled breach under modelNo sampled flag2016-10-24 14:00 UTC · €8,985.44
Buy and holdno sampled breach; pass NOT certifiedNo sampled flagNo sampled flag

Both session rules breach the static €9,000 floor in this continuous-account model. Reject the tested 1× sizing under these costs for this screen; that is not a result for every potential start date or a different risk setting.

For 1-Step, the target is 10%, daily allowance 3%, and trailing floor max(initial balance, highest prior Prague-midnight balance) − 10% of initial capital. For orders from 12 October 2026, Consistency requires best closed-profit day ≤ 50% of total net closed profit, including losing days. Daily limits include floating P&L and costs and reset at Prague midnight.

1-Step approximate screen · not a certified pass
SeriesDaily-loss flagTrailing-loss flag€1,000 target at endConsistency at end
Overnight2016-02-16 02:35 UTC · €10,154.042016-12-01 01:25 UTC · €10,201.85NoNo
IntradayNo sampled flag2016-05-27 14:55 UTC · €9,706.89NoNo
Buy and holdNo sampled flagNo sampled flagYesNo

Ending target and Consistency checks describe the continuous account’s end state, not the first successful evaluation date. The one-trade benchmark closes all its profit on one day; that cannot satisfy the modeled 50% Consistency condition.

Overnight/weekend holding rules differ by account. Evaluation and Swing accounts permit longer holds; funded Standard accounts impose market-break restrictions. Funded 1-Step has no Swing option. The overnight case can hold through weekends, and a delayed exit can extend either case beyond its planned session. News restrictions also depend on the account and instrument; this model does not filter restricted releases. These are execution mismatches to resolve before a broker-specific evaluation.

05 / Open implementation

Every rule, timestamp and code file.

Original code is MIT licensed. Market data retain their provider’s rights and attribution. The ZIP contains code, exact calendars, manifests, account curves and trade logs; the downloader reproduces the quote input from the named source.

Download the full research package ↓

Supporting source: data downloader · calendar generator · accounting tests · MT5 implementation notes · calendar manifest.

MQL5 status: source reviewed, not compiled or run in MetaTrader 5 here. The Python results do not validate the EA. Its required XNYS_Sessions.mqh calendar must be installed with the EA; broker time, symbols, sessions, lot sizes and costs must match the notes. Actual MT5 swaps replace the Python financing assumption.

Neither case has a protective stop. A 1× entry-notional cap limits initial exposure; it does not guarantee a maximum loss or prevent adverse gaps and delayed exits.

Sources & evidence

Trace the idea and the inputs.

Published 17 November 2026. Educational historical research; hypothetical results do not guarantee future returns.