Westernpips DocsWesternpips Docs
  • Home
  • FAQ
  • Documentation
  • Forums
  • Home
  • FAQ
  • Documentation
  • Forums
  • Crypto Trader
    • Crypto Scanner - 1 Leg
    • Crypto Scanner - 2 Leg
    • Crypto Table
  • Getting Started
    • Web Portal my.westernpips.com
      • Web Portal Password Recovery
      • How to Buy Westernpips Products?
    • Products Installation
    • Prerequisites
      • .NET Desktop Runtime Installation
      • ASP.NET Core Runtime Installation
      • Microsoft Redistributable Installation
    • System Requirements
    • Installation Troubleshooting
  • Westernpips Golden Tools 3.5.7
    • Downloading
    • First Run
    • Installing a Westernpips Products Using WGT
    • Working with Installed Products
    • WGT Update
  • Westernpips Private 7
    • How to Check Which Quote Feed Is Faster
    • Installing and First Run
    • License Activation and Login
    • Change License IP, Add new IP
    • User Interface
      • Main Window
      • Dashboard
        • Options
        • Strategies
        • Connections
        • Schedulers
    • Trades Discovery, Check Orders Duration
    • WESTERNPIPS PRIVATE 7 ALGOS
      • OneLeg
        • OneLeg: Before You Start
        • OneLeg First Setup, Step by Step
        • OneLeg Key Parameters with an XAUUSD Example
        • OneLeg Troubleshooting
      • Two Leg Simple Hedge
      • Two Leg Lock
      • Multi Leg Spread
      • One Leg Multi
      • OneLegHidden
      • Two Leg Standard
      • Remote
      • Copier
      • Clicker in WesternPips Private 7
      • Session Control — Quick Guide
      • Exucution Control — Quick Guide
      • Slippage Control - Fast Guide
      • Add/Edit Provider Window Settings
      • BackTester
      • Setting up a connection with the Broker Terminal via the EA connector
    • Connectors
      • Common Settings and Operation
        • FIX Connection Settings
        • FIX Logs
      • Trading and Fast Sources Connectors
        • 24Exchange Connector
        • Active Financial API Connector
        • Binance Connector
        • Bitfinex Connector
        • CBOE FIX Connector
        • Celer FIX Connector
        • CFH FIX Connector
        • CTrader FIX Connector
        • DukasCopy FIX Connector
        • DxFeed FIX Connector
        • Euronext FIX Connector
        • Exante FIX Connector
        • FastMatch ITCH Connector
        • FlexTrade FIX Connector
        • Fortex FIX Connector
        • FXCM FIX Connector
        • FxPig FIX Connector
        • GCEX FIX Connector
        • Gold-i Matrix FIX Connector
        • Integral FIX Connector
        • LMAX API Connector
        • LMAX FIX Connector
        • MaxxTrader FIX Connector
        • MT EA Connector
        • M4 Server Connector
        • M5 Server Connector
        • OGM FIX Connector
        • OKX Connector
        • OneZero FIX Connector
        • PrimeXM FIX Connector
        • Remote Connector
        • Rithmic Connector
        • RoE FIX Connector
        • Saxo FIX Connector
        • SolidFX FIX Connector
        • Spotex FIX Connector
        • TraderMade FIX Connector
        • Universal Connector
        • Universal Fast Connector
        • XenFin FIX Connector
        • XTRD FIX Connector
  • Westernpips Webcliker
    • System Requirements
    • Installer
    • Agent
    • UI Settings
    • UI Logs
    • Start/Stop
    • Connections
    • Trade platforms
      • CMC Markets
      • M5 Web
      • M4 Web
      • TRADE NATION
      • Exness Web
      • Universal cliker
      • IG Trading Platform
      • MEX / MultiBank
      • ByBit
      • EXANTE
      • IQ Option
      • Plus500
      • Quotex
    • Risk Warning
  • Glossary
    • Latency Arbitrage
    • Fast Price Feed
    • Execution Latency
    • Slippage
    • FIX API
    • Requote
    • Forex Arbitrage
    • Toxic Flow
    • Last Look
    • B-Book
    • Forex VPS
    • Brokers That Allow Arbitrage
    • Low Latency

Exucution Control — Quick Guide

353 views 1

Exucution Control — Fast Guide

Exucution Control — Quick Guide -

The Execution Control module is a critical safety system designed specifically for latency arbitrage algorithms.
Its main goal is to monitor the execution speed of every order, detect when the broker starts delaying or filtering trades, and automatically stop or limit activity before the account gets flagged or banned.

When brokers enable anti-arbitrage plugins or slow down execution on their side, this module helps protect your account by temporarily blocking new trades once the latency exceeds the safe threshold.

⚙️ Settings Overview

Setting Type Default Description
Enabled boolean true Activates the latency control system.
Threshold (ms) integer 100 Maximum safe execution time per order (milliseconds).
MaxExecutionCountAboveThreshold integer 10 Total number of slow trades allowed during one session.
MaxConsecutiveExecutionsCountAboveThreshold integer 3 Maximum number of consecutive slow executions tolerated before trading halts.

⚙️ 1. Enabled

What it does

Turns the entire Execution Control protection system on or off.
When Enabled = true, every order execution time is analyzed in real time.
When false, latency monitoring is disabled (not recommended for arbitrage trading).

Recommendation

✅ Always keep Enabled = true for all latency arbitrage setups.
Disable only during initial tests or debugging without live orders.


⚙️ 2. Threshold (ms)

Description

Defines the maximum safe execution time in milliseconds — the time difference between order send and confirmation:

ExecTime (ms) = t_ack_or_fill − t_send

If execution time exceeds this threshold, it indicates that:

  • the broker’s side may be delaying or filtering orders;

  • a plugin (virtual dealer, A/B plugin, or bridge delay filter) might be active;

  • or your VPS connection has degraded.

Such conditions are dangerous for latency arbitrage and must trigger protection.

Always select the threshold slightly above your average ping + broker processing time.
The lower the latency — the higher your protection efficiency.


⚙️ 3. MaxExecutionCountAboveThreshold

What it does

Specifies how many slow executions (above threshold) are allowed during a session before the system intervenes.

When this limit is exceeded:

  • the algorithm temporarily stops opening new trades,

  • logs a warning in the console,

  • and prevents further exposure to broker-side manipulation.

Example

Threshold = 100 ms
MaxExecutionCountAboveThreshold = 10

→ After 10 orders slower than 100 ms, the algorithm pauses trading to prevent broker detection.

Recommendations for Latency Arbitrage

Trading Setup Recommended Value
Ultra-fast (FIX / PrimeXM) 5–8
Standard VPS (MT5 / cTrader) 10–12
Remote / Backup VPS 15–20

Fewer allowed slow executions = higher protection, but slightly less uptime.


⚙️ 4. MaxConsecutiveExecutionsCountAboveThreshold

What it does

Defines how many slow executions in a row are tolerated before the control logic triggers immediately.

In latency arbitrage, multiple consecutive slow trades often mean the broker activated a delay plugin or switched your account to a manual “B-book” queue.
This setting instantly detects and stops trading before the broker accumulates evidence of arbitrage behavior.

Example

Threshold = 120 ms
MaxConsecutiveExecutionsCountAboveThreshold = 3

→ After 3 consecutive delayed executions, trading halts and protection activates.

Recommended Values

Environment Recommended Value
HFT / Arbitrage (Ultra-fast FIX) 2
Low-latency MT5 / cTrader setup 3
Standard VPS / Cloud server 4–5

Lower value = faster reaction to broker-side slowdowns.


⚙️ 5. How It Works Step-by-Step

  1. Execution Control enabled.
    Every order’s latency is measured in real time.

  2. Execution time calculation.
    The system measures:
    ExecTime (ms) = t_fill - t_send.

  3. Threshold comparison.
    If ExecTime > Threshold:

    • SlowExecutionCount increases.

    • ConsecutiveSlowExecutionCount increases.

  4. Trigger conditions.

    • If total slow executions ≥ MaxExecutionCountAboveThreshold
      → state = ExecutionLimitReached (trading paused).

    • If consecutive slow executions ≥ MaxConsecutiveExecutionsCountAboveThreshold
      → immediate trigger, trading paused instantly.

  5. Protection reaction.

    • The algorithm stops sending new orders.

    • Sends internal alert (visible in console and logs).

    • Keeps monitoring until normal execution resumes.

  6. Auto recovery.

    • Once a fast order is executed or after session restart, counters reset.

    • Trading resumes automatically in safe conditions.


🧠 How This Protects from Broker Ban

  • Early Detection: detects broker-side delays before they become systematic.

  • Automatic Response: pauses trading to avoid generating suspicious “latency arbitrage” patterns.

  • Safety Buffer: gives the algorithm time to cool down and avoid triggering the broker’s plugin logs.

  • Low-Risk Restart: resumes only after latency stabilizes back within the defined limits.

This mechanism mimics human-like reaction time and prevents overloading broker servers with high-frequency orders during plugin activation.


✅ Summary

Setting Purpose Recommended Range
Enabled Activates latency control protection True
Threshold (ms) Maximum safe order execution time 50–120 ms
MaxExecutionCountAboveThreshold Total slow trades before protection 5–10
MaxConsecutiveExecutionsCountAboveThreshold Consecutive slow trades before trigger 2–3

🧭 Final Notes for Latency Arbitrage Traders

  • Always use a co-located or low-latency VPS (ping < 2 ms to broker).

  • Keep Execution Control active to avoid broker-side plugin detection.

  • This module is your first line of defense against execution delays and hidden dealing desk filters.

  • Combine it with Session Control for complete risk and latency management.

Was this helpful?

1 Yes  No
Related Articles
  • Low Latency
  • Brokers That Allow Arbitrage
  • Forex VPS
  • B-Book
  • Last Look
  • Toxic Flow
Previously
Session Control — Quick Guide
Up Next
Slippage Control – Fast Guide
  • Copyright 2026 Westernpips.com. All Rights Reserved.

LiveInternet counter