# Gold seasonality — September versus November

Edge Quant, 16 November 2026. Two component tests of the September/November allocation described by Quantpedia (6 August 2018): https://quantpedia.com/an-extensive-test-of-market-timing-strategies-in-the-gold-market/

This is a hypothetical EUR-denominated gold CFD account study. It is neither a physical-gold total-return test nor an MT5 Strategy Tester result. Original source code is MIT licensed; third-party price data retain their source rights.

## Reproduce

Use Python 3.11+ (tested in Python 3.12) in a virtual environment. Install `python -m pip install -r requirements.txt`, then from this package directory run:

```sh
python download_data.py --symbols XAUUSD EURUSD --period M5 --start-year 2016 --end-year 2025
python backtest.py --data-dir data --out results
python -m unittest discover -s . -p 'test_backtest.py'
```

The downloader requires network access. It caches annual public responses in `data/raw/`. The study's price manifests and daily aggregations are included for inspection. The full M5 price files and raw cache are obtained by the downloader rather than duplicated in this package. Verify SHA-256 file and annual input hashes against the supplied manifests. Do not replace prices or FX with another source without relabeling the test. If a provider changes historical data, a different hash is evidence that the rerun uses different observations.

Data attribution: Dukascopy ticks aggregated into bid/ask candles by EV Trading Labs, https://evtradelabs.com/data. This is an explicitly attributed distributor feed, not a direct Dukascopy bank export or an FTMO feed. See `data/README.md` and the manifests for coverage, endpoints and validation. The original direct route required AWS Requester Pays credentials that were unavailable; no different underlying price source was substituted. The independent reconciliation performed here compared provider M5 aggregates against its separately downloaded H1 data for 2025, not against original ticks.

## Fixed model

Evaluation: 2016-01-01 to 2025-12-31 UTC, using available M5 observations; no invented weekend prices. Case A buys at the first September opening quote and exits at the first October opening quote. Case B independently buys at the first November opening quote and exits at the first December opening quote. Both otherwise hold cash. The source combines the two months; this study tests their components and does not test an extra combined case.

Each account starts at EUR10,000. Each entry uses at most 1x current-equity gold notional under the stated conversion convention, rounded down to 0.01 lots, 100 ounces per lot, with a 0.01 lot minimum. Benchmark: buy-and-hold gold CFD, fixed initial ounces, first available entry in 2016 and final available 2025 close. It has the same cost model, but much more market exposure. There are no optimized parameters, protective stops, profit targets or additional leverage.

Execution: ask plus USD0.10/ounce entry, bid minus USD0.10/ounce exit; USD3.50 per lot per side commission. Assumed financing is 5% annually of entry USD notional across elapsed calendar time (365-day year); cash interest is zero. This is not measured historical swap. USD profits convert at EURUSD ask and USD liabilities at EURUSD bid. CFD principal is not itself converted into USD cash: EUR equity consists of account cash plus converted floating CFD P&L. Full rules and executable constants are in `backtest.py`.

Headline Sharpe uses all calendar daily returns, zero risk-free rate and sqrt(365) annualization. Headline drawdown is based on daily equity; separate sampled M5 close drawdown is supplied. Trade Profit Factor includes commission and funding. An undefined PF for a winning one-trade benchmark is not an estimate of consistent profitability. Ten seasonal trades per case are a small sample.

Fixed 2016–2020 and 2021–2025 diagnostic slices are descriptive stability checks, not an untouched prospective OOS experiment: the source was published during the first slice. No fitting or parameter selection was performed on either slice.

## FTMO and MQL5 status

See the article and `results/summary.json` for the actual continuous-account necessary-condition screen. It does not simulate separate Challenge and Verification phases or certify a pass. Actual FTMO tick equity, reset balances, broker swaps/commissions, target closure and program-specific conditions remain necessary. Checked official rules: https://ftmo.com/en/trading-objectives/ and https://ftmo.com/en/faq/can-i-hold-positions-overnight-or-over-the-weekend/.

For a EUR10,000 2-Step account: +EUR1,000/+EUR500 targets, EUR500 daily limit, EUR9,000 static equity floor, at least four distinct position-opening days per phase. A sampled static-floor breach rules out this continuous trajectory under the model. It is not a universal claim about all starting dates or sizing.

For new 1-Step orders from 12 October 2026: 10% target, 3% daily limit, 10% end-of-day trailing maximum-loss rule; the best closed-profit day cannot exceed 50% of total net closed profit (including losing days). A full 1-Step phase replay is not supplied. Current rules can change.

`GoldSeasonality.mq5` is a complete source implementation of the calendar signal and EUR notional sizing. It was source reviewed, not compiled or tested in MT5 in this environment. Its actual broker fills, swaps, contract sizes and server clock differ from research-model assumptions. Follow `MQL5_NOTES.md`; select September or November per run and start the tester before the selected month. The EA contains no artificial financing adjustment: MT5 uses broker swaps. Installing the EA is not an instruction to trade live.
