Tollgate Spread Atlas

Tollgate Spread Atlas shows what trading really costs on your broker. It reads the real tick history of the chart symbol and up to 8 watchlist symbols, builds an hour-of-week spread map (Monday to Friday, 24 server hours), compares the live spread with the typical spread for the current hour, and turns spread, commission and swap into round-trip cost and cost as a share of ATR on six timeframes. It is read-only: it never opens, modifies or closes trades.

Quick Start

  1. Attach the utility to any chart (for example XAUUSD or EURUSD). No Algo Trading permission is needed because it never trades.
  2. The cockpit shows SCANNING TICK HISTORY with a SCAN percentage while it reads the history (Lookback Window, default 28 days). The first scan can take a minute while the terminal downloads ticks.
  3. When the scan ends, the live card shows LIVE SPREAD, TYPICAL, RATIO and a status: CHEAP, NORMAL, WIDE or SPIKE.
  4. Set Cost Calculator Lot Size to your usual lot and choose the Commission Source.
  5. To check it works, hover a heatmap cell (tooltip) or press CSV to save the atlas.

How the atlas is built

  • Every quote's spread (ask minus bid, in whole points) counts for the seconds until the next quote, capped by Max Seconds Credited Per Quote, so gaps and closed markets add nothing. Busy and quiet minutes are weighted by time, not by tick count.
  • Each cell (weekday x server hour) keeps a spread distribution. MEDIAN, P90 (90th percentile) and MEAN (time-weighted mean) come from it. Values are exact up to 31 points, then in 16 steps per doubling (the lower edge is shown).
  • Typical spread = median of the current cell. If the cell has less than Minimum Coverage For A Cell, the same hour on all weekdays is used, then the whole week. The source is shown as [CELL], [HOUR] or [WEEK].
  • With Add Live Quotes To The Atlas on, the current spread of every symbol is added once per second while its quote is fresh.
  • The atlas is rebuilt from history once per server day at Daily Rebuild Hour (to roll the window), and when you press RESCAN.

Status rules

RATIO = live spread / max(typical, 1 point). Excess = live minus typical.

  • SPIKE: RATIO at or above SPIKE From and excess at or above Minimum Excess For WIDE / SPIKE.
  • WIDE: RATIO at or above WIDE From and the same excess rule.
  • CHEAP: RATIO below CHEAP Below.
  • NORMAL: everything else.
  • NO DATA: no quote yet, or no typical spread.

The excess rule keeps raw or ECN accounts (typical 0-2 points) from flagging tiny changes.

Cockpit

Header

  • LED: green or teal (NORMAL, CHEAP), amber (WIDE or scanning), red (SPIKE), grey (NO DATA).
  • TOLLGATE SPREAD ATLAS, the focus symbol and SERVER TIME (all hours are broker server time).
  • [-] minimizes the cockpit to a pill showing TSA, the symbol, ratio and status; [+] restores it.

Live card

  • LIVE SPREAD in points (and pips on 3/5-digit symbols).
  • TYPICAL with its source [CELL], [HOUR] or [WEEK]; RATIO; the status badge.
  • Meter from 0 to 3x the typical spread (METER 0-3x), with white marks at CHEAP Below, WIDE From and SPIKE From.
  • TODAY MAX: widest spread since server midnight; the number of quotes read; the lookback days.

Cost card (ROUND-TRIP COST, account currency)

  • SPREAD: spread cost for the lot size at the live and at the typical spread (points x tick value x point / tick size x lots).
  • COMMISSION per lot per side with its source: [HISTORY] (from your deals), [FIXED] or [NONE].
  • TOTAL: live and typical round trip (spread + 2 x commission x lots), and the live total in points.
  • SWAP / NIGHT long (L) and short (S) for the lot size and the triple-swap day (3x WED). Swaps in points or in the deposit currency are converted; other swap modes show the raw value with the unit (currency/LOT, %/YEAR or RAW). SWAP OFF when swaps are disabled.
  • COST / ATR: live round-trip cost in price divided by ATR of the last closed bar, x 100, for M1, M5, M15, H1, H4 and D1. Green below 5%, amber 5-15%, coral 15% and above; the bar is full at 30%. A high value means the cost eats a large part of a typical bar on that timeframe.

Toolbar

  • METRIC: MEDIAN / METRIC: P90 / METRIC: MEAN cycles the heatmap metric.
  • RESCAN reloads commission and rebuilds every atlas from history.
  • CSV saves the focus atlas (after the scan) to MQL5\Files\Tollgate_<SYMBOL>.csv.
  • ALERTS ON / ALERTS OFF switches spike alerts for this session.
  • click cell = pin: reminder that heatmap cells can be pinned.

Button changes return to the input values when the utility is re-initialized (timeframe change, re-attach, restart).

Heatmap (HOUR-OF-WEEK ... SPREAD)

  • Rows MON to FRI, columns 00-23 server hours. Colour = cell value / the same metric over the whole week (shown as WEEK MEDIAN, WEEK P90 or WEEK MEAN): teal 0.6x or less, green 1.0x, gold 1.6x, coral 2.6x or more. Dark cells = no data (coverage below the minimum).
  • Gold border = the current hour (now). White border = pinned cell.
  • Tooltip: median, P90, mean and coverage of the cell. Click a cell to pin it; click again to unpin.
  • Detail line: NOW (current cell) or PINNED with MEDIAN, P90, MEAN and COVERAGE.
  • CHEAPEST HOURS and DEAREST HOURS: the three server hours with the lowest and highest time-weighted mean spread across all weekdays.
  • Weekend quotes count in the HOUR and WEEK values but are not drawn. The map refreshes every 30 seconds.

Watchlist

Columns WATCHLIST, LIVE, TYPICAL, RATIO, STATUS and COST/ATR H1 (live round trip vs H1 ATR). Click a row to make that symbol the focus of the whole cockpit (highlighted row). NOT FOUND = the broker has no such symbol; SCANNING = its history is still loading; no watchlist symbols when the list is empty.

Alerts

When a symbol (chart or watchlist) stays at SPIKE for SPIKE Must Last seconds, one alert is sent per symbol per Alert Cooldown, for example: [Tollgate Atlas] XAUUSD spread SPIKE 51 pts = 5.1x typical 10 pts (THU 23:00 server) It is printed to the Experts log and sent by Terminal Pop-Up Alerts, Audible Alerts (alert.wav, only when pop-ups are off because the pop-up has its own sound) and Push Notifications To Mobile (MetaQuotes ID set under Tools, Options, Notifications).

Flags for other EAs (terminal global variables)

With Publish Terminal Global Variables on, every second after the scan, for each symbol:

  • TSA_<SYMBOL>_RATIO: live / typical.
  • TSA_<SYMBOL>_TYPICAL: typical spread in points (-1 = no data).
  • TSA_<SYMBOL>_OK: 1 = CHEAP or NORMAL, 0 = WIDE or SPIKE, -1 = NO DATA.

They are deleted when the utility is removed.

if(GlobalVariableCheck("TSA_EURUSD_OK") && GlobalVariableGet("TSA_EURUSD_OK") == 0)
   return; // spread is WIDE or SPIKE: skip new entries 

Side effects

  • Adds watchlist symbols to Market Watch. Creates chart objects named with the Object Name Prefix (removed with the utility). Uses a 250 ms timer.
  • Writes a file only when CSV is pressed: 168 rows with day, hour, median_pts, p90_pts, mean_pts, coverage_min (-1 = no data).

Inputs

  • Lookback Window (28, 3-90 calendar days): history read per symbol.
  • Max Seconds Credited Per Quote (60, 5-600): cap per quote.
  • Minimum Coverage For A Cell (15 minutes): below it a cell is no data and the typical falls back.
  • Heatmap Metric (Median Spread): Median Spread, 90th Percentile Spread or Time-Weighted Mean Spread at start.
  • Add Live Quotes To The Atlas (true): live learning.
  • Daily Rebuild Hour (3, server time, -1 = never): daily rebuild after rollover.
  • CHEAP Below (0.85), WIDE From (1.5), SPIKE From (2.5): ratio thresholds.
  • Minimum Excess For WIDE / SPIKE (5 points).
  • Cost Calculator Lot Size (1.0).
  • Commission Source (From Account History): From Account History, Fixed Per Lot Per Side or No Commission.
  • Fixed Commission (3.5 per lot per side): also the fallback when the history has no deals.
  • Commission History Window (90 days).
  • ATR Period For Cost Burden (14).
  • Watchlist Symbols ("EURUSD,GBPUSD,USDJPY,XAUUSD", max 8, exact broker names with suffixes).
  • Alert On SPIKE (true), SPIKE Must Last (5 s), Alert Cooldown (15 minutes).
  • Terminal Pop-Up Alerts (true), Push Notifications To Mobile (false), Audible Alerts (true).
  • Publish Terminal Global Variables (true).
  • Object Name Prefix ("TSA_"): change it to run two copies on one chart.
  • HUD Chart Corner (Top Left; Top Right, Bottom Left, Bottom Right), HUD X Offset (16), HUD Y Offset (24) in pixels.
  • Panel Scale (1.0, 0.5-2.5): size multiplier on top of Windows display scaling.
  • Start Minimized (false).

Typical setups

  1. M1 scalper: Heatmap Metric 90th Percentile Spread, WIDE From 1.3, SPIKE From 2.0, Minimum Excess For WIDE / SPIKE 2; trade the CHEAPEST HOURS and check COST / ATR on M1.
  2. Gold: Lookback Window 42, SPIKE From 3.0, Minimum Excess For WIDE / SPIKE 15, Alert Cooldown 30, Push Notifications To Mobile true.
  3. Raw or ECN account: Heatmap Metric Time-Weighted Mean Spread, Commission Source From Account History, Minimum Excess For WIDE / SPIKE 5.
  4. EA gate: Alert On SPIKE false, Publish Terminal Global Variables true, and the snippet above in your EA.

Notes and limitations

  • History depth depends on the broker; some keep only a few weeks of ticks.
  • In the Strategy Tester the atlas comes from the tester's ticks: use "Every tick based on real ticks" to see real spreads.
  • Spreads differ between brokers and account types, and past spreads do not guarantee future spreads. The utility measures costs; it does not predict prices or results. Trading involves risk of loss.
More from author
EA Budak Ubat
Syarief Azman Bin Rosli
4 (3)
Download Trial EA Budak Ubat Channel Limited Time Price! The price will increase by 10 USD after every 10 purchases! How it works When the EA is active, it will analyze the chart based on the Execution Mode parameter. If there are no existing positions on the chart, the EA will enter a trade based on the parameter. If the trend is bullish, it will enter a buy trade and if it is bearish it will enter a sell trade. And it will also set a Stop loss order at a certain distance from the opened trad
EA Budak Ubat MT5
Syarief Azman Bin Rosli
EA Budak Ubat MT5 is an automated grid-trading Expert Advisor designed for MetaTrader 5. It combines technical trend analysis, dynamic volatility scaling, and multi-layered risk management to trade ranging and trending market conditions. Optimized for the M5 timeframe on major forex pairs and metals (XAUUSD / Gold). ### Key Features • 4 Selectable Analysis Methods:   1. Classic Candle: Directional momentum from candle patterns.   2. SMA20: 20-period Simple Moving Average crossover.   3. Allig
Indi RBO
Syarief Azman Bin Rosli
Input: Range Start Time : The starting time of the range creation Range End Time : The ending time of range creation Trade End Time : The time where the line of range zone high/low will be extended to Minimum Size : The minimum size of the range in point Maximum Size : The maximum size of the range in point If the range size is between the minimum and maximum, indicator will print the 1st color (blue).
Apex Flow Reversion
Syarief Azman Bin Rosli
# Apex Flow Reversion MT4 Apex Flow Reversion is an automated trading system developed for MetaTrader 4 that executes an intraday statistical mean-reversion strategy. The system monitors price deviation from a dynamic Volume-Weighted Average Price benchmark and identifies exhaustion points using standard deviation bands, Relative Strength Index momentum filtration, and Average True Range volatility constraints. ## Strategy Overview The algorithm computes a rolling intraday VWAP curve weighte
Vortex Confluence Radar
Syarief Azman Bin Rosli
Vortex Confluence Radar MT4 Vortex Confluence Radar is a multi-oscillator confluence scoring engine developed natively for MetaTrader 4. It fuses three distinct technical oscillators—Relative Vigor Index (RVI), Commodity Channel Index (CCI), and Williams % Percent Range (WPR)—into a unified momentum histogram with a smoothed signal line and automated crossover alert signals. Understanding the Indicator Architecture The indicator operates in a separate sub-window and renders several distinct visu
Kinetix Speed Commander
Syarief Azman Bin Rosli
Kinetix Speed Commander MT4 Kinetix Speed Commander   is an institutional-grade, on-chart one-click trade execution cockpit, dynamic position sizing calculator, and risk-to-reward order management terminal engineered natively for MetaTrader 4. Built specifically for proprietary trading firm challengers, fast-paced scalpers, and systematic day traders, Kinetix Speed Commander eliminates manual calculation delays, human execution errors, and over-leveraged risk exposure. Operating via a high-perfo
Prism Candle Forge
Syarief Azman Bin Rosli
Prism Candle Forge — Candlestick Pattern Recognition Engine for MT4 Prism Candle Forge is a native MQL4 library that detects and validates 20+ Japanese candlestick patterns using ATR-weighted geometric analysis. It provides pattern identification, directional confidence scoring, candle morphology classification, and trend context validation — all through 8 exported functions callable from any Expert Advisor, Indicator, or Script. Zero DLLs, zero external dependencies, pure MQL4 computation. Dist
Sigma Squeeze Reactor
Syarief Azman Bin Rosli
Sigma Squeeze Reactor Bollinger-Keltner Volatility Squeeze Breakout Expert Advisor Sigma Squeeze Reactor is an intelligent breakout Expert Advisor for MetaTrader 4 that identifies and trades explosive volatility expansion moves. It detects when Bollinger Bands contract inside Keltner Channels (the classic volatility squeeze) and executes precise entries when the compression releases, confirmed by momentum oscillator direction. The EA is engineered with a   Dual-Engine Breakout Architecture   tha
Fulcrum Value Profile
Syarief Azman Bin Rosli
Fulcrum Value Profile is a MetaTrader 4 indicator that builds a tick-volume profile for every session, marks its Point of Control (POC) and value area, draws the developing POC/VAH/VAL as lines, tracks naked POCs and flags two value-area setups on closed bars: re-entry into the prior value area (80% rule) and acceptance outside it (breakout). It never opens, modifies or closes trades. Quick Start Attach the indicator to an M5, M15 or M30 chart. Keep Profile Period = Daily session, or choose Cust
Filament Tripline Console
Syarief Azman Bin Rosli
Filament Tripline Console turns your own horizontal lines and trendlines into armed triplines. When price touches a line, or a bar closes beyond it, the tripline fires its action: an alert, a market BUY or SELL with automatic lot size, stop loss and take profit, or an EXIT that closes positions. It never trades on its own analysis; it only acts on lines you arm. Quick Start Attach the utility to any chart. For BUY, SELL and EXIT actions enable Algo Trading in the toolbar and Allow live trading o
Tectonic Structure Engine
Syarief Azman Bin Rosli
An MQL4 library that maps market structure for your EA, indicator or script: confirmed swings labelled HH, HL, LH, LL, EQH and EQL, break of structure (BOS), change of character (CHoCH), liquidity sweeps, order blocks and fair value gaps with fill tracking, and the position of price in the dealing range. It reads closed bars only and never repaints. It does not trade, draw or alert. You receive the compiled Tectonic_Structure_Engine.ex4; this page is the full API reference. Quick Start Copy Tect
Recoil Retrace Engine
Syarief Azman Bin Rosli
Recoil Retrace Engine is a MetaTrader 4 Expert Advisor that trades the pullback after a strong move. It finds an impulse leg that ran from a confirmed swing by a multiple of ATR, waits for price to recoil into a retracement pocket (default 38.2-61.8 %), enters in the direction of the leg, takes a partial at the leg extreme and runs the rest to an extension target. One position at a time per symbol and magic number; no grid, martingale, averaging or hedging. Quick Start Attach the EA to one chart
Gnomon Diurnal Cone
Syarief Azman Bin Rosli
Overview Gnomon Diurnal Cone shows how far price normally travels from the day open by each time of day. For every intraday slot it takes the last N complete days and draws the median excursion above and below the open (core cone) and a chosen percentile (outer cone). Today's cone is fixed at the day open from completed days only, so it never repaints, and it is projected to the end of the day. A range budget compares today's range with the median full-day range, and two closed-bar signals flag
Ephemeris Trade Calendar
Syarief Azman Bin Rosli
Ephemeris Trade Calendar - your account history as a monthly profit calendar (MT4) Ephemeris Trade Calendar turns your MetaTrader 4 history into a monthly profit calendar on the chart. Every closed trade lands on its day: cells are shaded by result, show win and loss counts and add up into weekly totals. A lower deck switches between statistics, an edge map (P/L by entry weekday and hour plus a closed-trade equity curve) and a day ledger, and a TODAY meter follows your daily target and loss limi
Meridian Session Clock
Syarief Azman Bin Rosli
An MQL4 time library: DST-correct conversions between UTC and 12 world time zones, a model of your broker's server clock (auto-detected from price history), the Sydney, Tokyo, London and New York sessions plus your own, with open state, start and end times and OHLC range, the FX trading day and the weekend. Unlike TimeGMT(), it gives the same answers in the Strategy Tester as live. It never trades, draws or writes files. You receive the compiled Meridian_Session_Clock.ex4; this page is the compl
Trebuchet Bracket Engine
Syarief Azman Bin Rosli
Trebuchet Bracket Engine is a MetaTrader 4 Expert Advisor for daily range-expansion breakouts. At the anchor (the day open by default) it measures the recent N-day range, brackets the anchor with a buy stop above and a sell stop below at K x range, puts the stop loss at the anchor and closes everything at the day exit. At most one trade per side per day; no grid, martingale, averaging or overnight holding (unless you switch the day exit off). Quick Start Attach the EA to one chart of the symbol
Spectra Trend Ribbon
Syarief Azman Bin Rosli
Spectra Trend Ribbon is a multi-tier trend direction and volatility expansion indicator developed natively for MetaTrader 5. It combines an adaptive smoothed central trend baseline with dynamic volatility envelope bands and automated momentum breakout signals. Understanding the Visual Signals: 1. Central Adaptive Baseline (Color Line) - Green Color: Indicates that the market price is trading above the baseline and the baseline slope is positive, representing an active bullish trend regime. -
Aegis Risk Sentinel
Syarief Azman Bin Rosli
Aegis Risk Sentinel MT5 Aegis Risk Sentinel   is an institutional-grade, real-time equity protection and risk management utility developed natively for MetaTrader 5. Engineered for proprietary trading firm challengers, professional fund managers, and retail day traders, Aegis enforces mathematical discipline on your trading account, preventing catastrophic drawdowns, emotional revenge trading, and over-leveraged margin calls. The utility features an ultra-responsive on-chart Head-Up Display (HUD
Stratos Momentum Engine
Syarief Azman Bin Rosli
Stratos Momentum Engine MT5 Stratos Momentum Engine is a fully automated multi-timeframe momentum breakout trading system designed for MetaTrader 5. The Expert Advisor combines structural trend identification on the higher timeframe (H1) with precision momentum timing and breakout confirmation on the lower timeframe (M15). The system utilizes mathematical least-squares linear regression slope to define primary directional bias, Stochastic oscillator dynamics to identify optimal entry points with
Nexus Quant Matrix
Syarief Azman Bin Rosli
Nexus Quant Matrix — Quantitative Computing Engine for MT5 Nexus Quant Matrix is a high-performance quantitative library built natively in MQL5. It delivers institutional-grade Kalman filtering, Cornish-Fisher VaR, Expected Shortfall (CVaR), Kelly Criterion sizing, margin-protected lot calculation, and Pearson correlation directly into your Expert Advisors — zero DLLs, zero external dependencies. Distributed as a compiled binary (Nexus_Quant_Matrix.ex5). This description is your complete API ref
Quasar Regime Cloud
Syarief Azman Bin Rosli
Quasar Regime Cloud is a market regime indicator for MetaTrader 5. It measures whether price is currently trending or chopping, then shows the result directly on the chart through a fractal-adaptive cloud. Signals are only produced while the market is classified as trending, which filters out many of the false crossovers that occur in sideways conditions. How It Works 1. Fractal Dimension Estimate For every bar the indicator estimates the fractal dimension (D) of price over a configurable window
Isobar Event Shield
Syarief Azman Bin Rosli
Isobar Event Shield protects your trades from economic news in MetaTrader 5. It reads the terminal's built-in economic calendar, counts down to every release that affects your symbols and, shortly before each release, applies the protection you choose to the positions and pending orders that you or your other Expert Advisors already have. It never opens trades of its own. Quick Start Attach the utility to one chart (one copy per terminal) and enable Algo Trading in the terminal toolbar. The bas
Riptide Sweep Reclaimer
Syarief Azman Bin Rosli
Riptide Sweep Reclaimer is a MetaTrader 5 Expert Advisor that trades liquidity sweeps of a quiet-session range: it measures the high and low of a window you choose (default 00:00-08:00 server time), waits for the next session to push through one side and fades the move once a candle closes back inside, targeting the midpoint and the opposite side. One position at a time on the chart symbol; no grid, martingale or averaging. Quick Start Attach the EA to one chart of the symbol (any timeframe; th
Turnstile Order Gateway
Syarief Azman Bin Rosli
An MQL5 library between your Expert Advisor and OrderSend. Each request passes 9 gates (connection, Algo Trading, symbol mode, session, order-type flags, volume, stops, margin, OrderCheck) before sending. Closes and modifications blocked by the freeze level, a closed session or a lost connection are queued and sent later. It never trades on its own. You receive the compiled Turnstile_Order_Gateway.ex5; this page is the full API reference. Quick Start Copy Turnstile_Order_Gateway.ex5 to MQL5/Libr
Counterpoint Divergence Matrix is a MetaTrader 5 indicator that finds divergence between price swings and momentum. It marks regular divergence (price makes a new extreme, the oscillator does not) and hidden divergence (the reverse), keeps only clean ones with a line-of-sight check, and scores each signal by how many of five oscillators agree: RSI, MACD, Stochastic, CCI and Momentum. Signals appear once the newest swing is confirmed and never repaint. It does not trade. Quick Start Attach it to
Cascade Exit Conductor
Syarief Azman Bin Rosli
Cascade Exit Conductor is a position-management utility for MetaTrader 5. It watches the trades you already have open - placed by hand or by any Expert Advisor - and runs their exits for you: it locks a breakeven stop, banks profit in a staged partial-exit cascade, trails the runner with an ATR or fixed distance, and can close a position after a maximum holding time. It is operated from a compact on-chart cockpit with one-click controls. It never opens trades of its own and it does not predict d
Ziggurat Pivot Engine
Syarief Azman Bin Rosli
Ziggurat Pivot Engine is a MetaTrader 5 Expert Advisor for the Camarilla tiers of the previous day. It fades rejections of the inner tier (H3/L3) back toward the prior close and follows confirmed closes through the outer tier (H4/L4). A day-regime matrix decides each day which setups may trade, based on how wide the previous day was. One position at a time per symbol and magic number, closed at the day exit; no grid, martingale, averaging or hedging. Quick Start Attach the EA to one chart of the
Orrery Cycle Toolkit
Syarief Azman Bin Rosli
An MQL5 library that measures the dominant market cycle of any symbol and timeframe: period in bars, phase, a sine / lead sine pair whose crossings mark cycle turns, cycle or trend mode, amplitude, trendline, spectrum, adaptive indicator lengths and a projection of the current cycle. It only reads price history: it never trades, draws or writes files. You receive the compiled Orrery_Cycle_Toolkit.ex5; this page is the complete API reference. Quick Start Copy Orrery_Cycle_Toolkit.ex5 to MQL5/Libr
Torque Effort Analyzer
Syarief Azman Bin Rosli
Torque Effort Analyzer is a MetaTrader 5 indicator for effort versus result (volume spread analysis). Effort is the bar's volume, result is the bar's range, and both are measured against the same time of day on the last N days, so the quiet Asian hours and the busy London open are each judged against their own normal. Torque = effort / result. It shows a torque cloud, a tiered effort histogram and the result line in its subwindow, marks eight confirmed patterns on the price chart and reports eve
Filter:
No reviews
Reply to review