Skip to content
All library documents

A Trading Idea Based on Detecting Negative Bid-Ask Spreads

Article MQL5 code base

Summary

The document describes a simple expert advisor that watches for an inverted quote, where the ask is below the bid. When that condition appears, it opens a sell position and closes it immediately, attempting to capture the unusual spread. The idea depends on the quoted prices being executable and on the inversion lasting long enough for the orders to fill.

The text says negative spreads are rare and offers no performance results, testing details, or execution analysis. It does not explain how the platform handles stale quotes, latency, transaction costs, order rejection, or slippage. Those omissions matter because a displayed inversion may not be available to trade, and rapid entry and exit can incur costs. The suggested examples of large company stocks are informal rather than supported by evidence. Treat this as a brief arbitrage concept, not a demonstrated strategy.

Key ideas

  • The expert advisor looks for quotes where the ask is below the bid.
  • It responds to an inverted spread by opening a sell and closing it immediately.
  • The document characterizes negative spreads as rare but gives no measured frequency.
  • Execution costs, quote validity, and order-fill behavior are not analyzed.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.