Spread Logging Script: Recording Your Broker's Pricing Over a Month
Posted: Thu Oct 08, 2026 4:49 pm
Averages on broker websites rarely match what you see at your trading hours. Logging spreads yourself gives accurate data.
A simple approach in MT5:
Has anyone logged spreads over a long period, and what surprised you?
A simple approach in MT5:
- A small script or EA that writes time, symbol, bid, ask and spread to a CSV file every few seconds.
- Run it on a VPS for a month on your main pairs.
- Analyse the file in a spreadsheet or Python: average, median and 95th percentile spread per hour.
- Wide spreads around rollover (17:00 New York).
- Differences between Monday and the rest of the week.
- Spikes around news that are larger than expected.
Has anyone logged spreads over a long period, and what surprised you?