OBI explained: trading a one-sided price lead with Horizon CME

OBI explained: how OBI enters a BUY, the fast CME bid ahead of the broker bid by Imbal Gap while the ask stays within Max Counter

OBI (Order Book Imbalance) is one of the five Horizon strategies, next to 1 Leg, 2 Leg Lock, Trend Impulse and Grid. It looks for moments when the fast feed has clearly moved on one side of the book while your broker has not caught up yet, and trades that lead. This guide explains how it decides, what changed in 2.0.9, and how to start safely.

How OBI works, in one picture. 1, after START: Auto Offset removes the basis between futures and CFD, then wait for "Auto-Offset locked". From 2.1 entries wait for this automatically; until then you wait for the log line. 2, every tick: compare the fast CME prices with your broker's, each side separately. BUY when the fast bid is ahead of the broker bid by at least Imbal Gap and the ask has not moved the other way by Max Counter or more; SELL is the mirror. Filters: Max Spread, Trade Pause, and an optional Trend Filter for gold. Then enter, one trade at a time. 3, exits: TP and SL in points from the entry, Hard SL checked by Horizon every tick, Trailing when Trail Start and Trail Dist are above 0, Min Time holds TP and SL for a set time, and Max Time still applies during Min Time. An illustration, no real prices.
How OBI works: Auto Offset first, then a price-gap check on every tick, filters, one trade at a time, and the exits. An illustration, no real prices.

What you need

  • Horizon 2.1 or newer. 2.1 waits until Auto Offset has locked before the first entry; 2.0.9 brought the Auto Offset correction itself. Please update before you run it.
  • A fast feed. From Horizon 2.5, OBI starts on any fast feed: Horizon CFD, Horizon CME, Ctrader Fix or Crypto. Before 2.5 it started only on the "Horizon CME" feed.
  • A broker instrument that follows the fast feed's instrument, for example, on the CME feed, gold (GC → XAUUSD) or US indices (ES → US500, NQ → NAS100).

How OBI decides to enter

On every tick, OBI compares the fast feed's prices with your broker's prices, on each side of the book separately:

  • BUY when the fast bid is ahead of your broker's bid by at least Imbal Gap, and the ask side has not moved the opposite way by Max Counter or more.
  • SELL is the mirror: the fast ask has dropped below the broker's ask by at least Imbal Gap, and the bid side has not moved the opposite way by Max Counter or more.
How OBI enters a BUY: the fast bid is ahead of your broker's bid by at least Imbal Gap, while the ask side is not pulling the other way by Max Counter or more. An illustration, no real prices.
How OBI enters a BUY: the fast bid is ahead of your broker's bid by at least Imbal Gap, while the ask side is not pulling the other way by Max Counter or more. An illustration, no real prices.

In plain words: one side of the market has clearly moved, and the other side hasn't moved against it. If both sides lead in the same direction, that also counts. Both settings are in points, using the tab's Point value (0.01 by default).

OBI holds one trade at a time. Two filters stop it entering in bad conditions:

  • Max Spread: no entry while your broker's spread is wider than this.
  • Trade Pause: how long OBI waits after a trade closes before it may enter again (0 = no pause; default 2 seconds).
The OBI settings in Horizon: position sizing, exits, Max Spread, Trade Pause, Imbal Gap and Max Counter.
The OBI settings in Horizon: position sizing, exits, Max Spread, Trade Pause, Imbal Gap and Max Counter.

If you tick Trend Filter, OBI also only trades in the direction of the trend. The Trend Filter is meant for gold (XAUUSD).

Note on the name: On the Horizon CFD and Horizon CME feeds OBI works on prices, not traded volume. Those feeds do not carry order-book depth, so there OBI runs on the price gap and Max Counter, without the imbalance filter. Horizon writes a note in the log at START, and another line once it has seen 30 seconds of quotes without depth. Crypto and Ctrader Fix do send order-book depth (Horizon 2.5 or newer); on those feeds new entries are held while the order book is older than 1 second or is being rebuilt.

On our roadmap: order-book depth for OBI. Crypto and Ctrader Fix already send depth (Horizon 2.5); the Horizon CFD and Horizon CME feeds do not yet. The strategy already contains an order-book check that only lets a trade through when one side of the book is clearly heavier. It switches on as soon as Horizon receives Level 2 (depth) data. The first planned source is Rithmic Level 2, and Rithmic offers a trial of its data. This is not supported on those two feeds in the current version yet; until then OBI trades on the price gap there.

An illustrated order book. Five ask levels with small sizes (10 to 20) sit above five bid levels with large sizes (80 down to 40). Bids total 300 and asks 60, so the bid side is heavier, and a book that leans to one side like this is an imbalance. Label: Level 2 depth is on our roadmap; today OBI trades on the price gap. An illustration, no real data.
Level 2 depth is on our roadmap. Today OBI trades on the price gap, not on depth. An illustration, no real data.

What changed in 2.0.9 (and why it matters)

A CME future and a broker CFD are not the same price. Gold futures usually trade several dollars above spot XAUUSD, and index futures sit away from the cash index. That difference is called the basis.

Up to 2.0.8, OBI compared the raw prices without correcting for that basis. On gold or indices the basis alone could look like a "lead", so OBI could signal far too often. 2.0.9 fixes this:

  • OBI now uses the same Auto Offset correction as 1 Leg, so the basis is removed before the gap is measured.
  • OBI joins the regular re-anchor check, so the correction stays current as the basis drifts during the day.
  • The chart shows the same corrected value the entry uses, so what you see is what OBI trades on.

Since Horizon 2.1, entries wait until Auto Offset has locked after START, so OBI never trades on the uncorrected price.

If you ran OBI on 2.0.8 against a CFD, please update and re-check your settings.

How OBI exits

  • Take Profit / Stop Loss: in points from the entry.
  • Hard SL: a backstop in points from the entry price (0 = off). It is checked by Horizon on every tick, not placed at your broker, so Horizon must be running. We recommend keeping it on.
  • Trailing: only active when both Trail Start and Trail Dist are above 0.
  • Min Time(s): holds Take Profit and Stop Loss for this many seconds. Hard SL and Max Time still apply during that time.

A safe way to start

  1. Start on a demo account. Run at least one full session before going live.
  2. Keep Auto Offset on and wait for the log line "Auto-Offset locked". After that the chart settles at a steady level, roughly half the difference between your broker's spread and the CME spread. Set Imbal Gap well above that level.
  3. Check Shift is 0. The Shift box is hidden on an OBI tab, but a value typed while this same tab was set to 1 Leg carries over unseen. Switch the tab to 1 Leg, check Shift is 0, then switch back to OBI.
  4. Begin with the smallest lot. Use Risk % only once you trust the behaviour.
  5. Keep Hard SL on and set Max Spread to your broker's normal spread plus a margin.
  6. One OBI tab per instrument, with its own Magic number, so trades never mix with your other tabs.
  7. Trade liquid hours. OBI needs a live market on the fast feed. On the CME feeds, around the daily CME break and at the weekly open, quotes are thin and gaps are unreliable.
  8. Review your first trades. If OBI signals constantly, Imbal Gap is too close to the settled level. Stop and check before you continue.

Common questions

START says the feed isn't supported. From Horizon 2.5, OBI starts on the Horizon CFD, Horizon CME, Ctrader Fix and Crypto fast feeds. On an older version it starts only on Horizon CME. Update, or select that feed on the tab.

It trades too often. Make sure you're on 2.1 or newer, Auto Offset is on and has locked, and Imbal Gap sits well above the level the chart settles at. Then raise Imbal Gap.

It never trades. Imbal Gap may be too large for that instrument, Max Spread may be too tight for your broker, or the Trend Filter may be blocking that side. Change one setting at a time on demo.


Trading involves risk, including the loss of your capital. Results depend on your broker, account type, latency and market conditions. Past performance does not guarantee future results. Test on a demo account first.

Filed under EducationShare XLinkedIn

See it in the software

See what Horizon software does, which platforms it runs on, and how to get it.