Back to Strategies
5-6

2 LEG LOCK

Locked-pair entry

STRATEGY: 2 LEG LOCK — LOCKED-PAIR ENTRY

Opens a BUY and a SELL together on one account. When the fast reference feed leads your broker's price by at least your Exec Gap, it closes the leg on the wrong side. The other leg stays open with two orders at your broker on the opposite side, one at its target price and one at its stop price. When either fills, it opens the opposite position, so the pair is locked again rather than closed. Then it waits for the next lead.

BUY+SELL→FEED LEADS→CLOSE WRONG SIDE→RE-LOCK
Diagram: a buy and a sell are open together, locked. Price breaks out past the gap; the buy stays open toward the target with a stop below, the sell is closed, and the pair can re-lock.
SETTINGWHAT IT DOES
Exec GapHow far the fast price must lead before the wrong-side leg is closed
Take Profit / Stop LossDistance from the release price at which broker orders re-lock the remaining leg. Nothing is closed there
Lock SideWhich leg may be kept after a release: Buy Only keeps a BUY, Sell Only keeps a SELL, Both allows either
Max SpreadNo new pair and no release while the broker spread is wider
Min TimeNo release until the leg being closed is at least this old
Trade PauseWait before a new pair after a cycle, and after a re-lock. A short built-in pause applies when it is 0
Shift / Auto OffsetPart of how the lead is measured, as in 1 Leg: corrects a constant difference between the two prices
Lot Size / Risk %The size of each leg; both legs get the same size
Trail Start / Trail Dist, Hard SL, Max TimeUsed only if your broker rejects the lock orders. A hit re-locks the remaining leg; it does not close it

2 Leg Lock needs a hedging account (MT4, or MT5 in hedging mode). It is not available on Rithmic or BloFin. The client does not detect netting or FIFO accounts, so check your account type with your broker first. Nothing closes a locked pair automatically: while both legs are open there is no time limit, no stop, no Hard SL and no trailing stop. Pressing Stop leaves the positions open. The pair stays open until the fast feed leads by your Exec Gap (which closes one leg) or you close it with Close Trade.

The one exception, from 2.0.7: if you set a Disaster SL above 0, the client places a broker-side safety stop (MT4/MT5 brokers only; shown as DISASTER STOP in the 2.0.7 log). With Disaster SL at 0, everything above holds.

WHAT'S NEW IN 2.5

  • 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".
  • On a started 2 Leg Lock tab, Close Trade does not end the cycle: a new pair opens after the Trade Pause (at least 5 seconds). To end a pair for good, press STOP or Pause Entries first, then Close Trade.

All 2.5 release notes →

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.
  • 2 Leg Lock: with "Hide Order Comment" on, the Hedge orders on MT5 now carry no readable comment either. On MT4 they still show "Hedge TP" / "Hedge SL"; hiding those on MT4 comes in a later version. After a restart, Horizon still picks up its Hedge orders either way.

All 2.1 release notes →

WHAT'S NEW IN 2.0.8

  • STOP and Close Trade are safer. An order already on its way when you press STOP or Close Trade is no longer sent afterwards. A 2 Leg Lock pair is never left with one leg. After Close Trade the tab waits the full 5 seconds before it trades again.
  • 2 Leg Lock warns in red when the broker doesn't confirm a close.

All 2.0.8 release notes →

Key Features

Locked-pair mechanism

Holds a BUY+SELL pair. When the fast feed picks a side it closes the wrong leg, and broker orders lock the other again at its target or stop.

What closes it

Only a lead of your Exec Gap (which closes one leg), or you with Close Trade. There is no automatic close, no Hard SL and no trailing stop on a locked pair, and Stop leaves it open.

Horizon HFT Educational Series

Understanding the 2 Leg Lock Strategy

2 Leg Lock runs on one broker account. It opens a BUY and a SELL together on that account:

  • Leg 1: BUY on your broker account
  • Leg 2: SELL on the same account

When the fast reference feed leads your broker's price by at least your Exec Gap, it closes the leg on the wrong side. Broker orders then lock the other leg again at its target or stop price; nothing is closed automatically.

Lock Side sets which leg may be kept after a release: Buy Only keeps a BUY, Sell Only keeps a SELL, Both allows either.

Key Components:

  • Fast reference price feed
  • One broker account in hedging mode

Ready to Trade 2 Leg Lock?

Join our Telegram community to get access to Horizon HFT and start running 2 Leg Lock on your prop firm or live account.

Join Telegram