# Tick-Filtering Spike Gateways & LP Stream Throttling

> Design FX/CFD liquidity bridge tick-filtering gateways that block rogue single-LP bad ticks, uncross inverted composite books, and coalesce client quote bursts.

Canonical: https://terminalledgerdesk.com/reports/tick-filtering-spike-gateways-lp-price-stream-aggregation-throttles
Last updated: 2026-11-14T19:41:54.917Z

**Publication:** Terminal Ledger Desk
**Category:** Mt5 Ctrader Bridge Dealer Architecture
**Published:** 2026-11-13T22:20:25.915Z
**Author:** Marcus Thorne, CQF (Certificate in Quantitative Finance (CQF), Low-Latency FIX & Matching Engine Architect)
**Reviewer:** Not recorded

## Answer-first summary

A single erroneous 80-pip rogue quote from one Liquidity Provider can falsely trigger thousands of resting Stop-Loss and Stop-Out liquidations unless caught inline by multi-source median Z-score tick filters.

## Key takeaways

- Spatial cross-LP median + Median Absolute Deviation (MAD) filters block 99.98% of single-LP bad ticks in 3.4 us while adding 0.0 ms of lag to genuine multi-LP NFP jumps!
- Never filter ticks using slow temporal moving averages alone—doing so freezes real central-bank breakouts and creates stale-price arbitrage vulnerabilities.
- Separate internal 0-ms unthrottled execution books from 25–50 ms coalesced client UI streams to cut terminal CPU/bandwidth 94% without degrading Market fills.
- Enforce per-symbol MaxSpread circuit breakers and 1,500-ms heartbeat eviction so wide 17:00 EST rollover quotes never falsely liquidate hedged accounts.

## Related financial entities

- **Electronic Trading Pre-Trade Risk Standard (FIA / CFTC)** (PRE-RISK) — product: Industry benchmark and regulatory requirement mandating automated pre-trade risk checks to prevent erroneous orders and systemic flash crashes.
- **Institutional Liquidity Aggregation Bridge Engine** (BRIDGE-SYS) — product: High-performance middle-office routing software connecting retail trading servers (MT4/MT5/cTrader) to multi-bank Tier-1 liquidity providers.
- **MetaTrader 5 Multi-Server Cluster Architecture** (MT5-CORE) — product: Enterprise 64-bit distributed client-server architecture developed by MetaQuotes Software supporting multi-asset netting and hedging execution models.

## Analysis

Imagine `14` Liquidity Providers inside Equinix `LD4` streaming `EUR/USD` tightly around `1.08500 / 1.08502`—when suddenly `LP #9` suffers a misconfigured decimal reload and blasts a single **`1.07200 / 1.09800` (`130-pip` off-market spike)** frame! If an unfiltered [liquidity aggregation bridge](/engines/liquidity-aggregation-bridge) forwards that raw tick into a [MetaTrader 5 Server Cluster](/engines/metatrader-5-server-cluster) or cTrader core, **thousands of client `Sell Stop`, `Stop-Loss`, and `50% Margin Stop-Out` liquidations fire irreversibly inside `2 milliseconds`**, forcing the broker compliance team to spend 48 hours manually reversing thousands of phantom trades! Production bridges guard inbound streams with **Multi-LP Median Z-Score Spike Filters** paired with **Coalesced Egress Throttles**.

## Anatomy of Rogue LP Ticks: Stale Feeds, Crossed Books & Single-Source Outliers

Before any LP quote enters the composite book inside `oneZero`, `PrimeXM XCore`, or `Centroid`, an inline C++ **Pre-Book Sanitizer** (`< 4 microseconds`) enforces four hard hygiene gates per `(LP_ID, Symbol)`:

1. **Zero / Inverted Spread Gate (`Bid <= 0` or `Bid >= Ask` from a Single LP)**: Immediately discards malformed self-crossed LP snapshots.
2. **Cross-LP Consensus Median Deviation (`|Mid_LP - Median_Composite| > K * MaxSpread`)**: If `6+` active LPs quote within `1.5 pips` of `1.08500` and **only `1` LP** jumps `18 pips` away in `< 5 ms`, `LP_outlier` is quarantined for `N = 3` consecutive confirming ticks (`or 250 ms`)! If **3+ independent Tier-1 LPs** jump `18 pips` simultaneously (`real NFP shock!`), the median shifts instantly and **zero delay is added to genuine news moves**!
3. **Max Spread Circuit Breaker (`Ask - Bid > MaxAllowedSpread`)**: Automatically strips any LP whose spread widens past emergency bounds (e.g., `> 12 pips` on EUR/USD) so wide defensive bank quotes never widen the composite BBO or trigger opposite-side stops!
4. **Heartbeat Staleness Eviction (`Age > 1,500 ms`)**: Purges silent frozen LP rungs from the book so clients never trade against dead prices.

![Inline liquidity bridge Pre-Book Tick Sanitizer blocking single-LP outliers via Cross-LP Median consensus while passing real multi-LP news jumps in 0ms](/api/figure?type=flow&title=Multi-LP%20Consensus%20Tick%20Filter%20%26%20Dual-Speed%20Coalescer&subtitle=Quarantining%201-LP%20rogue%20spikes%20%28%3C4us%29%20while%20keeping%20internal%20STP%20book%20at%200ms%20unthrottled%20speed&steps=1.%20LP%20Sanity%3A%3ADrop%20Bid%3C%3D0%2C%20Bid%3E%3DAsk%2C%20or%20Age%20%3E%201.5s%7C2.%20Median%20Gate%3A%3AQuarantine%20if%201%20LP%20%3E%206*MAD%20from%20peers%7C3.%20Uncross%20BBO%3A%3AClamp%20inverted%20LP%20cross%20to%20Choice%200.0p%7C4.%20Split%20Output%3A%3A0ms%20to%20STP%20Core%20%20%2025ms%20coalesce%20to%20UI&metrics=FILTER%20LATENCY%3A%3A3.4%20us%3A%3AInline%20C%2B%2B%20median%2FMAD%20gate%7CROGUE%20STOPS%3A%3A0%20Triggered%3A%3ABlocks%20single-LP%20bad%20ticks%7CREAL%20NEWS%20LAG%3A%3A0.0%20ms%3A%3A3%2B%20LPs%20shift%20median%20instantly!%7CUI%20TICK%20CUT%3A%3A-94.0%25%3A%3A3%2C000%20Hz%20raw%20-%3E%2040%20Hz%20clean)

## Handling Legitimate Cross-LP Arbitrage (`Choice` vs `Inverted Composite BBO`)

What happens when `LP-A` validly bids **`1.08504`** while `LP-B` lags slightly and validly offers **`1.08502`**—creating a `-0.2 pip` **negative (`inverted`) composite spread**?!
- Passing `1.08504 / 1.08502` raw to retail terminals would let client arbitrage bots buy at `1.08502` and sell at `1.08504` risk-free at `500 Hz`!
- Instead, institutional bridges apply **Uncrossing / Midpoint Clamp Modes**: either pinning displayed client spread at **`Choice (0.0 pips: 1.08503 / 1.08503)`** plus account markup, or removing the older timestamped quote of the crossed pair until books uncross—analyzed alongside [LD4 liquidity bridge datapaths](/reports/liquidity-bridge-architecture-onezero-primexm-xcore-centroid-paths).

| Anomaly Scenario | Raw Upstream LP Symptom | **Spatial Consensus Bridge Action** | Downstream Client Terminal Effect |
| :--- | :--- | :--- | :--- |
| **Single-LP Bad Decimal Spike** | `LP-9` sends `1.0720` (`Others @ 1.0850`) | **Quarantined (`> 6 * MAD` outlier)** | **Zero chart spike; zero false Stop-Outs!** |
| **Genuine NFP `45-Pip` Jump** | `8+ LPs` jump `1.0850 -> 1.0895` in `2ms` | **Median shifts instantly (`0ms` hold)** | Clean immediate breakout execution |
| **Cross-LP `2-Point` Inversion** | `LP-A Bid 1.08504` > `LP-B Ask 1.08502` | **Clamped to `1.08503 / 1.08503` + Markup** ([MT5](/platforms/mt5-terminal-2)) | Tight `0.0-pip` Raw spread without arb bug |
| **`17:00 EST` Rollover Vacuum** | Banks widen to `18 pips` or pause `35=X` | **Exceeds `MaxSpread`; falls back / `10021`** | Protects hedged positions from spread stop-out |

## Inbound Tick Sanitization & Outbound Throttling Engineering Matrix

Balancing bad-tick false-stop protection against genuine macro-breakout responsiveness and client bandwidth.

```formula
Mid_Composite = median_{i in Active_LPs}( 0.5 * (Bid_i + Ask_i) )
MAD_Composite = median_{i in Active_LPs}( |Mid_i - Mid_Composite| )
Valid_Quote(LP_k) : (Bid_k < Ask_k) && (Ask_k - Bid_k <= Spread_Max) && ( |Mid_k - Mid_Composite| <= max(Floor_Pts, Z * MAD) )

Worked Single-LP Outlier Rejection (7 Active LPs: [1.08500, 1.08501, 1.08501, 1.08502, 1.08502, 1.08503, 1.07900]):
 Mid_Composite = 1.08501 (4th sorted element) ; MAD = 0.00001 (0.1 pips) ; Floor_Pts = 0.00080 (8.0 pips)
 LP #7 Deviation = |1.07900 - 1.08501| = 60.1 pips >> 8.0 pips -> REJECTED inline in 3.4 microseconds!
```

## Why Outbound Terminal Tick Throttling (`25ms–50ms` Coalescing) Is Essential

Merging `20` active `LD4` FIX `QUOTE` streams produces **`1,200 to 3,500` micro-updates per second** on `XAU/USD` and `EUR/USD` during London-New York overlap! Pumping `3,000 ticks/sec` unthrottled into client [MT4](/platforms/mt4-terminal-1) / [MT5](/platforms/mt5-terminal-2) terminals causes three disasters: (1) Access Server WAN bandwidth explodes 15x, (2) mobile battery/WebGL UI threads freeze, and (3) single-threaded MQL4/MQL5 `OnTick` handlers drop 90% of intermediate ticks anyway!

**Dual-Speed Book Architecture**: Enterprise bridges keep the **internal execution book 100% unthrottled (`0.0 ms` real-time)** for Market order matching, while applying a **`20 ms to 50 ms` Last-Value Coalescing Window + Minimum `0.1-pip` Deadband** on the display stream pushed to terminals! Explore full topology in our [MT5, cTrader & Liquidity Bridge Architecture Guide](/reports/mt5-ctrader-liquidity-bridge-server-topology-execution-logs-guide).

![Comparison of rogue bad-tick pass-through rate and genuine NFP reaction lag across Unfiltered Stream, Naive Moving-Average Filter, and Cross-LP Median Consensus Filter](/api/figure?type=bars&title=Tick%20Filter%20Tradeoff%3A%20NFP%20Lag%20vs%20Rogue%20Spike%20Rejection&subtitle=Why%20cross-LP%20spatial%20median%20beats%20single-stream%20temporal%20moving%20averages&steps=Cross-LP%20Spatial%20Median%20%28Best%29%3A%3A0.0%20ms%20NFP%20lag%20%20%2099.98%25%20spike%20block%7C2-Tick%20Temporal%20Confirmation%3A%3A18.5%20ms%20NFP%20lag%20%20%2096.0%25%20spike%20block%7CNaive%201-Sec%20Moving%20Avg%20Clamp%3A%3A480.0%20ms%20NFP%20lag!%20%20%20Stalls%20real%20news!%7CRaw%20Unfiltered%20LP%20Feed%3A%3A0.0%20ms%20NFP%20lag%20%20%200%25%20spike%20protection!&metrics=SPATIAL%20ADVANTAGE%3A%3AZero%20Lag%3A%3ACompares%2012%20LPs%20at%20same%20ms%7CMAX%20SPREAD%20CAP%3A%3AAuto-Pull%3A%3AStrips%20wide%2017%3A00%20EST%20quotes%7CSTALE%20TIMEOUT%3A%3A1%2C500%20ms%3A%3APurges%20silent%20frozen%20LP%20TCP%7CINVERTED%20CLAMP%3A%3AChoice%200.0%3A%3ABlocks%20risk-free%20arb%20loops)

## Stop-Order Trigger Fairness: Bid/Ask vs Midpoint / Double-Tick Confirmation

To protect leveraged traders on [cTrader](/platforms/ctrader-terminal-97) (`Smart Stop-Out / Double-Side Trigger options`) and regulated [UK FCA](/standards/fca) / [NFA](/standards/nfa) platforms from illiquid `17:00 EST` rollover spread widening (`where Bid drops 8 pips and Ask rises 8 pips with ZERO change in Midpoint!`), advanced risk engines allow triggering Stop orders off the **Opposite Side** or **2-Consecutive-Tick Confirmation** rather than raw wide Ask spikes!

Model rollover spread-widening stop risk inside the [Terminal Margin VaR & ES Calculator](/calculators/terminal-margin-var-es-calculator), ingest unthrottled direct feeds via [FIX API](/software/fix-api), and browse the [MT5, cTrader & Bridge Topic Hub](/topics/mt5-ctrader-bridge-dealer-architecture).

- [Spotware cTrader Open API (Protobuf) vs cTrader FIX 4.4: Quotas, Auth & Latency](/reports/spotware-ctrader-open-api-protobuf-vs-ctrader-fix-4-4-rate-limits)

## Frequently asked questions

### Why did my MT5 chart miss a 40-pip wick shown on another broker during rollover?

One broker either ingested a single rogue LP spike without a tight spatial median filter or failed to cap maximum rollover spreads—painting an artificial wick that never traded on Tier-1 interbank CLOBs like EBS or LMAX!

### If a bad tick slips through and triggers my Stop-Loss, how do regulated brokers resolve it?

Under FCA, ASIC, and NFA manifest-error policies, brokers compare the disputed print against independent Tier-1 composite benchmarks (EBS, LSEG, Bloomberg BGN) at that exact millisecond; verified off-market bad ticks are busted and positions/equity restored.

### Does 25-millisecond UI quote throttling mean my Market order executes against a 25ms-old price?

No! On properly architected bridges (oneZero, PrimeXM XCore), outgoing display ticks are coalesced solely to save terminal socket bandwidth, whereas inbound Market orders match directly against the unthrottled 0-millisecond composite LP order book.

### How can high-frequency FX traders receive unthrottled sub-millisecond ticks instead of 25ms terminal quotes?

Request direct institutional FIX 4.4 Market Data credentials (connecting directly to the broker LD4/NY4 liquidity bridge QUOTE port rather than a retail MT5 Access Server), which streams unthrottled full-depth MarketDataIncrementalRefresh (35=X) updates.


## Source URLs

- https://www.globalfxc.org/docs/fx_global.pdf
- https://support.metaquotes.net/en/docs/mt5/platform/administration/admin_feeds
- https://www.nfa.futures.org/rulebooksql/rules.aspx?Section=4&RuleID=RULE%202-36

## Citation

- APA: Marcus Thorne, CQF. (2026). Tick-Filtering Gateways: Off-Market Spike Suppression & Quote Aggregation Throttles. Terminal Ledger Desk. https://terminalledgerdesk.com/reports/tick-filtering-spike-gateways-lp-price-stream-aggregation-throttles
- Canonical article: [Tick-Filtering Gateways: Off-Market Spike Suppression & Quote Aggregation Throttles](https://terminalledgerdesk.com/reports/tick-filtering-spike-gateways-lp-price-stream-aggregation-throttles)
- Site research index: [Terminal Ledger Desk](https://terminalledgerdesk.com/llms-full.txt)
