Order Book Imbalance
Trades on a fast feed: when it leads your broker's price on one side by at least your Imbalance setting, while the other side stays below your Counter setting, it enters that way.
STRATEGY: ORDER BOOK IMBALANCE (OBI)
Compares a fast feed (Horizon CFD, Horizon CME, Ctrader Fix or Crypto) with your broker's price for the same instrument. When the feed leads on one side by at least your Imbalance setting, while the other side of the price stays below your Counter setting, it enters that way. It trades on prices; where the feed sends order-book depth (Crypto and Ctrader Fix) it also uses it as a filter, and on the Horizon CFD and Horizon CME feeds, which send none, it enters on Gap and Counter only. One trade at a time, with the same exits as 1 Leg.

| SETTING | WHAT IT DOES |
|---|---|
Imbalance | How far the feed's bid must be above the broker's bid for a buy (the broker's ask above the feed's ask for a sell). A price gap, not a volume |
Counter | The limit for the other side of the price, which must stay below it, so the lead is on one side only |
WHAT'S NEW IN 2.5
- It now starts on any fast feed (Horizon CFD, Horizon CME, Ctrader Fix, Crypto). Before, it started only on the Horizon CME fast feed.
- Order book depth comes from Crypto and Ctrader Fix. The Horizon CFD and Horizon CME feeds send none: on them the strategy enters on Gap and Counter only, without the imbalance filter, and the log says so.
- If the order book is older than 1 second, or is being rebuilt, new entries are held and the log shows "[OBI] depth stale, entries held". Before, the last known figures stayed in use. Crypto: entries are held until its order book is in sync (the log says the order book is not synced yet).
- The chart panel is titled "Imbalance Gap (pts)". Its scale no longer follows one extreme bar, and bars past the scale are cut at the edge of the panel.
- Each tab has a "News filter" button in the left panel. When it is on, the tab opens no NEW trade around the high-impact US releases (USD) listed in the file Set\News.json, for the minutes you choose before and after each release (starting values: gold 15 before and 45 after, every other symbol 10 and 30). In this version the filter follows high-impact USD releases only.
- Trades that are already open keep every exit (take profit, stop loss, trailing, time exit, 2 Leg Lock hedges). A 2 Leg Lock pair that is already open keeps its re-lock. A started tab shows "STOP (NEWS HOLD)" while the hold lasts, and the log shows "[NEWS] hold" when it starts and "hold ends" when it ends. "Pause Entries" that you pressed yourself is never cleared by the filter.
- Optional on each tab: "Also close all open trades before the hold starts". The hold then begins that many minutes earlier, and the tab closes what is open with the same close as the Close Trade button (the log shows "[NEWS] closing all open trades now"). Each close pays the spread. It is off by default.
- The filter reads only the file Set\News.json: the list of releases with time (UTC), currency, impact and title. Horizon 2.5 does not download a calendar and sends nothing anywhere for this filter. Horizon reads the file when you press START and again when it changes. Example: {"schema":1,"events":[{"id":"nfp-1","utc":"2026-12-04T13:30:00Z", "currency":"USD","impact":"high","title":"Non-Farm Payrolls"}]}
- If the file is missing, cannot be read, or has no release ahead, nothing is held and the log says so when you press START ("[NEWS] ... NO hold"). The same line tells you how long the list lasts ("News.json ends in N day(s)"), so you know when to update it.
- Nothing changes on a tab where the filter is off.
- The line written when an entry is filled now also shows how old the broker price was that the slip is measured against, and the fast-feed price at the moment of sending: "Filled @ ... slip ... pts vs quote ... before send (age 350 ms) | fast ... | send ...". A large slip with a large age means the broker price was old (few broker prices), not that the order filled badly.
- If you press Close Trade while a close is already running, nothing runs twice; the log says "Close Trade is already running: this one is skipped."
- No new entry is sent while the slow or fast book has a zero or negative price, or is crossed (ask below bid). The log shows "[ENTRY GUARD] Entries rejected" with the side that is wrong, at most every 10 seconds. Exits, stops and Close Trade work as before.
- The orange broker line and its legend now show on every strategy, not only 1 Leg, 2 Leg Lock and Grid Arbitrage. A price without a broker quote is left out of the line.
- The GAP chart shows one signed value, the same as the Active Signal: plus = BUY side, minus = SELL side, zero = no side. Bars are green past +EXEC, red past -EXEC and grey inside the band, with an arrow where a bar first crosses a line.
- Buy Gap and Sell Gap now show the gaps your entry really tests (after the offset), not the raw difference between the two feeds.
- While the Auto Offset is learning, the bars are hatched and a caption tells the state: "offset: manual", "offset: not locked (locks after START)", "offset: warming up, entries held" or "offset: locked".
WHAT'S NEW IN 2.1
- Auto Offset now holds new entries until it has learned the offset. 1 Leg, Order Book Imbalance and Grid Arbitrage (its first level) open nothing new, and 2 Leg Lock opens no new pair, until the Auto Offset has its 50 samples. This happens after every START, after STOP and START, and after a feed reset while the tab is flat. The log shows "Auto-Offset warming up: ... entries held until the offset locks" when the hold starts, and "Auto-Offset locked, entries enabled" when trading can begin. Open trades keep every exit while entries are held. Before 2.1 these strategies could enter on the very first price after START, before the offset was known. On a pair whose two prices differ by more than your Gap (for example a futures fast feed against a CFD broker), that first entry used the unadjusted difference.
WHAT'S NEW IN 2.0.9
- Order Book Imbalance with Shift or Auto Offset now enters on the shifted value, the same value the chart shows. Check your Imbalance gap against the chart before your first session.
- Order Book Imbalance: the log says when the fast feed sends no order book depth.
OBI explained: how it decides, step by step →
All 2.0.9 release notes →
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 (the CME Futures feed, Chicago).
How Order Book Imbalance Works
OBI compares a fast feed with your broker's price. It trades on prices. It reads order-book depth only where the feed sends it (Crypto and Ctrader Fix); the Horizon CFD and Horizon CME feeds send none, and it does not read traded volume.
The Imbalancesetting is how far the feed must lead your broker on one side: the feed's bid above the broker's bid for a buy, or the broker's ask above the feed's ask for a sell. Higher values mean fewer, more selective entries.
The Countersetting is the limit for the other side of the price: for a buy, the broker's ask minus the feed's ask must stay below Counter, so entries only happen when the lead is on one side.
What you need
A fast feed (Horizon CFD, Horizon CME, Ctrader Fix or Crypto, from Horizon 2.5) and an account on MetaTrader 5, MetaTrader 4, Rithmic or BloFin. Before 2.5, OBI started only on the Horizon CME feed.
To set up the CME Futures feed, email support@horizonhft.com.
Price comparison
Watches a fast feed against your broker's price.
One-sided lead
Counter limits entries to moves where the feed leads on one side only.
Direction
Enters on the side where the feed leads.
OBI explained
From OBI explained on the Horizon blog.
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.

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.
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).

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.

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
- Start on a demo account. Run at least one full session before going live.
- 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.
- 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.
- Begin with the smallest lot. Use Risk % only once you trust the behaviour.
- Keep Hard SL on and set Max Spread to your broker's normal spread plus a margin.
- One OBI tab per instrument, with its own Magic number, so trades never mix with your other tabs.
- 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.
- 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.
OBI demo test result
From OBI on a BTC demo account: test log #1, mixed results, still testing on the Horizon blog.
🔄 Updated 8 November 2026. Test log #1: mixed results, and we are still testing. After we published this post we went back through every OBI trade log we have. The table below lists every OBI demo day so far, losses included. The original post, about one clean window on Friday 30 October, follows it exactly as published. Two figures in it do not match the full logs; the table has the full-log figures, and "Two corrections" below says which.
📅 All test days so far
Every OBI trade on the demo account, by day, in UTC. BTCUSD, 0.01 lot, a DEMO account with no real money. Figures are gross: before commission and swap, which are not in them. The money figure is the sum of the trades, in EUR, on 0.01 lot.
| Day (UTC) | Entry setting | Trades | Wins / losses | Win rate | Sum, points (EUR gross) |
|---|---|---|---|---|---|
| Fri 30 Oct, 14:23 to 17:37 | very loose entry | 662 | 316 / 346 | 47.7% | −90,522 (−8.28) |
| Fri 30 Oct, 17:37 to 19:50 | the clean-window entry, a larger profit target | 156 | 64 / 92 | 41.0% | +6,911 (+0.51) |
| Fri 30 Oct, 19:50 to 21:01 (the clean window) | the clean-window setting | 77 | 38 / 39 | 49.4% | −360 (−0.06) |
| Fri 30 Oct, whole day | three settings | 895 | 418 / 477 | 46.7% | −83,971 (−7.83) |
| Sat 31 Oct, 10:52 to 20:21 | entry narrowed in four steps, ending on the clean-window one | 2 | 2 / 0 | too few | +7,000 (+0.63) |
| Sun 1 Nov, 15:37 to 18:05 | the clean-window setting | 3 | 3 / 0 | too few | +10,536 (+0.95) |
| All days | 900 | 423 / 477 | 47.0% | −66,435 (−6.25) |
🧮 What the table says
- 900 OBI trades in all: 423 wins and 477 losses, a 47.0% win rate. The sum is −66,435 points, about −6.25 EUR gross on 0.01 lot.
- Friday 30 October is 895 of the 900. The settings changed twice that day, so its three blocks are not one experiment, and their win rates do not share one break-even line. The clean 77-trade window of the post below is the third block.
- Saturday and Sunday made 2 and 3 trades, all wins, +0.63 and +0.95 EUR gross. Five trades are far too few to say anything. They are in the table because they exist, not because they prove something.
- So the picture is mixed, not a verdict: one large losing day, five winning weekend trades, and no result that shows an edge. It does not rule one out either.
Two corrections to the original text
- The whole-day total for Friday is 895 trades and a 46.7% win rate. The original text says 803 trades and 46.5%; the full logs give 895 and 46.7%.
- Saturday 31 October had 2 trades in the whole run. The original text says 1 trade in two hours; the full logs show 2 trades across the whole run.
🧭 Where it stands now
- OBI has not traded since Sunday 1 November, when we stopped the test. The released client starts OBI only on the CME Futures feed, so it cannot run on the price feed of this test. The change that lets it start on other feeds is in the next release.
- Next: repeat the clean-window test on the fixed build, add it to this table whatever it shows, and keep the losing days in.
- Same limits as the post below: a DEMO account, one instrument, 0.01 lot, demo fills are not live fills, and this is our own count of the strategy's logs, not an audited result. Nothing here is investment advice, and nothing here is a promise about future results.
📄 The original post, as published on 7 November
🧪 We tested the Order Book Imbalance (OBI) strategy on a BTCUSD demo account and counted every trade in one clean 70-minute window. The result: no edge. This is a DEMO test, with no real money, one window and one instrument. We are publishing it because it is what we found, including the part that is not flattering.
📌 The short version
- DEMO account, 0.01 lot, one clean window: Friday 30 October, 19:50 to 21:01 UTC (70 minutes).
- 77 trades: 38 wins and 39 losses, a 49.4% win rate.
- Average win +3,449 points, average loss −3,370 points. The sum is −360 points, about −0.06 EUR gross on 0.01 lot.
- At exits this symmetric, break-even is about 50% wins. The 95% range for the true win rate, measured on 77 trades, is about 38.5% to 60.3%, and it includes 50%, so the test shows no edge. It does not rule one out either: 77 trades is a small sample.
- This is our own count of the strategy's log, not an audited result.
🔬 What we tested
- Account: a broker demo account, not live money. Symbol BTCUSD, 0.01 lot per trade.
- Price source: a crypto-exchange price feed as the fast feed, in a Horizon test build. The released client starts OBI only on the CME Futures feed.
- Settings: we do not publish strategy settings.
- Figures are gross: before commission and swap. The main cost is the spread, a constant 1,500 points on this demo, which is already inside the prices.
- Where the window ends: the broker's demo server froze for six minutes, and the test build then hit a close-order problem that ended the run. We excluded everything after 21:01 UTC.
📊 The 77 trades

Wins and losses are almost equally frequent and almost equally large. That is what a strategy with no edge looks like on a sample like this. On a larger block the same day, the account's own closed figure was slightly worse than the gross figures, because commission, swap and slippage are not in them.
🎯 Is 49.4% different from 50%?

A 95% range of about 38.5% to 60.3% means that if the true win rate were anywhere in it, a result like ours would not be surprising. 50% is in it. So we cannot say the strategy has an edge, and we cannot say it has none: a small real edge would also be hidden at this size.
Larger samples from the same day, run with other settings, read below 50% as well: 47.7% over 662 trades, and 46.5% across the whole day's OBI run of 803 trades.
⚠️ What this does not tell us
- The rate did not repeat. 77 trades in 71 minutes on Friday evening. The same tab on the weekend made 1 trade in two hours on Saturday and 3 in two and a half hours on Sunday. This is one market period.
- One window, one instrument, 0.01 lot, a demo account. Demo fills are not live fills, so no real-money claim can be made.
- The two price feeds drift apart by thousands of points over a day. When the correction (the offset) was stale, it decided the side of many entries. We know about this and it is on our list.
- Not tested: order-book depth on the futures feed (it is not wired into OBI yet), real money, other brokers or symbols, clean windows longer than 71 minutes, sizes above 0.01 lot, accounts that charge commission.
- Nothing here is investment advice, and nothing here is a promise about future results.
🔧 What we fixed
Three changes to how OBI handles the exchange's order-book data were already in this test build:
- Stale data holds entries. If the book data is older than a second, entries wait, and the depth state is cleared when the feed disconnects, resets or starts.
- A book that is resyncing or silent can no longer let OBI enter on the price gap and counter alone.
- OBI can start on more kinds of price feed. That is how this test ran on a crypto-exchange feed. The released client still starts OBI only on the CME Futures feed.
These fixes are in the next release.
➡️ What is next
- Release the fixes.
- Repeat the clean-window test on the fixed build and publish it the same way, whatever it shows.
- Add a guard against the feed offset drifting, with a log of how far it moves.
- Order-book depth for the futures feed: planned, and untested today.
Horizon is software for the traders who choose to use it. Whether and how you trade is your decision, and you can lose money trading.
For how OBI works, read OBI explained.
Ready to Trade OBI?
Join our Telegram community to get access to Horizon HFT and the CME Futures feed.
Join Telegram