Spread Monitoring System MT4
- Utilities
-
Maros Petrik
Special broker deals for our traders
I have partnered with the best brokers to offer you better trading conditions: tighter spreads, lower commissions and faster trade execution. These improvements allow my expert advisors to perform at their best and increase your profits. - Version: 1.0
- Activations: 10
Spread Monitoring System is a lightweight, always-on indicator that continuously records the minimum, maximum, and average spread (in pips) for every completed M1 candle and renders a live overlay panel directly on your chart — no separate window needed.
What it does
Every tick, the indicator samples the current spread and accumulates per-candle statistics. When a new M1 bar opens, the completed candle's Min/Max/Avg values are committed to an internal history buffer that grows automatically as long as the indicator runs — there is no fixed cap. All of this data is then visualised in a compact panel anchored to the bottom of the chart, updating every 200 ms.
Panel layout
- Title bar — symbol, timeframe, MA period, total bars stored, and approximate duration (days/hours)
- Candle row — live spread, plus Min/Max/Avg for the current open bar
- History row — session-wide Min/Max/Avg across all stored bars
- MA row — smoothed Min, Max, and Avg lines calculated over a configurable period
- Bar graph — pixel-column chart of the full visible history; the live bar is highlighted with a grey outline; the three MA lines are drawn as continuous connected segments over the bars
Key technical points
- Uses a fixed-size object pool for graph columns — objects are created once and repositioned each frame rather than deleted and recreated, keeping CPU overhead minimal even on wide monitors
- Pool scales with chart width and is automatically trimmed or extended on resize events
- Supports all 4- and 5-digit brokers; spread is always expressed in pips regardless of broker convention
- All colors, the MA period, panel height, and offsets are fully configurable via input parameters
- Compatible with MetaTrader 5 (MQL5); no DLL, no external dependencies
Ideal for
Traders who want to study spread behavior across different sessions, identify high-spread periods before news events, or simply monitor broker execution quality over time without leaving their main chart.
