Initial balance breakout strategy
On ES futures from January 2016 to July 2026, the initial balance breakout lost $4,469 after costs and made money in 5 of 11 years.
BreakoutIntraday1-second barsBacktested Nov 6, 2026
Initial balance breakout backtest, the result
Contract
E-mini S&P 500
-
−$4.5K
Net after costs
After $74,944 in fees and slippage
-
5 of 11
Years that made money
January 2016 to July 2026
-
−$78K
Largest drawdown
Peak to trough, 1 contract
-
−$2
Average trade
2,625 trades
Net after costs by month, January 2016 to July 2026.
Initial balance breakout rules
Let the first hour set a range, then trade the first close outside it, with the other side of the range as the stop.
A drawing of the rules on a made-up day, not a result.
- The initial balance is the high and low of the first hour of the day session, 9:30 to 10:30 New York.
- After it, the first one-second close above the balance buys and the first below it sells short, once a day, until 15:00.
- The stop is the other side of the balance.
- Whatever is still open is closed at 15:45 New York.
- Decides on
- 1-second bars
- Holds
- Nothing overnight
- Parameters
- open minute 570, balance minutes 60, last entry 900, exit minute 945
Results by year
It made money in 5 of 11 years on ES. Its best year was 2022, +$43,257, and its worst 2020, −$28,477.
| Year | Net | Trades | Win rate | Drawdown | Buy and hold |
|---|---|---|---|---|---|
| 2016 | −$10,318 | 251 | 43% | −$15,958 | +$11,497 |
| 2017 | −$4,758 | 243 | 43% | −$6,320 | +$21,936 |
| 2018 | +$7,598 | 251 | 43% | −$14,434 | −$8,589 |
| 2019 | −$20,130 | 244 | 43% | −$23,377 | +$35,436 |
| 2020 | −$28,477 | 252 | 46% | −$30,055 | +$27,761 |
| 2021 | −$7,766 | 244 | 48% | −$19,293 | +$51,361 |
| 2022 | +$43,257 | 246 | 55% | −$13,657 | −$45,939 |
| 2023 | −$1,249 | 251 | 44% | −$12,208 | +$38,435 |
| 2024 | +$7,019 | 253 | 49% | −$16,301 | +$42,947 |
| 2025 | +$8,816 | 249 | 51% | −$29,289 | +$37,010 |
| 2026, Jan to Jul | +$1,539 | 141 | 45% | −$15,248 | +$24,355 |
Initial balance breakout backtest results
On ES it made $70,475 before costs. Fees and slippage took $74,944, more than all of it.
- Net = before costs − fees − slippage
- ES: $70,475 − $9,319 − $65,625 = −$4,469
The interval holds zero: this test cannot tell the average trade from no edge.
Initial balance breakout code and Pine Script
The strategy as the backtest ran it, and the Pine Script our compiler wrote from it for TradingView.
1from atlantive import BUY, NEW_YORK, SELL, Bars, Session, Strategy2 3 4class InitialBalanceBreakout(Strategy):5 """Initial balance breakout, New York day session, decided on one-second bars.6 7 The initial balance is the high and low of the first hour of the day session, 9:30 to 10:308 New York. After it, the first one-second close above the balance buys and the first close below9 it sells short, once a day, until 15:00. The stop is the other side of the balance, tested on10 every one-second close; whatever is still open at 15:45 is closed.11 """12 13 data = "bars"14 15 class Params:16 open_minute: int = 57017 balance_minutes: int = 6018 last_entry: int = 90019 exit_minute: int = 94520 clip: int = 121 22 class State:23 clock: Session(zone=NEW_YORK)24 bars: Bars(interval_ns=1_000_000_000)25 hi: float26 lo: float27 balance_day: int28 traded_day: int29 30 def on_event(self, view, ev, orders):31 self.clock.update(ev)32 if not self.bars.update(ev):33 return34 minute = self.clock.prev_minute35 second = self.clock.prev_second36 day = self.clock.prev_day37 high = float(self.bars.prev_high)38 low = float(self.bars.prev_low)39 close = float(self.bars.prev_close)40 balance_end = self.p.open_minute + self.p.balance_minutes41 late = second + 1 >= self.p.exit_minute * 60 or day != self.traded_day42 if view.position > 0:43 if close <= self.lo or late:44 orders.ioc(side=SELL, qty=self.p.clip)45 elif view.position < 0:46 if close >= self.hi or late:47 orders.ioc(side=BUY, qty=self.p.clip)48 if minute >= self.p.open_minute and minute < balance_end:49 if self.balance_day != day:50 self.balance_day = day51 self.hi = high52 self.lo = low53 else:54 self.hi = max(self.hi, high)55 self.lo = min(self.lo, low)56 return57 if view.position == 0 and self.balance_day == day and self.traded_day != day:58 if minute >= balance_end and minute < self.p.last_entry:59 if close > self.hi:60 orders.ioc(side=BUY, qty=self.p.clip)61 self.traded_day = day62 elif close < self.lo:63 orders.ioc(side=SELL, qty=self.p.clip)64 self.traded_day = day 1//@version=62// InitialBalanceBreakout, exported from Atlantive.3// Chart simulation: decisions use completed bars; market orders fill at the next bar open.4// Native fills, fees, data gaps and session boundaries can differ. Re-test on the target symbol.5// Use standard time-based candles and the strategy's timeframe, not synthetic chart prices.6// Pine v6 trims old trade records at its order limit; the strategy keeps calculating.7// Margin is explicitly disabled to retain the native signal simulation's sizing.8strategy("InitialBalanceBreakout", overlay=true, initial_capital=100000.0, commission_type=strategy.commission.cash_per_contract, commission_value=1.68, default_qty_type=strategy.fixed, default_qty_value=1, calc_on_every_tick=false, process_orders_on_close=false, slippage=0, margin_long=0, margin_short=0)9 10if timeframe.in_seconds() != 111 runtime.error("InitialBalanceBreakout was exported for the 1 second timeframe; set the chart to 1S.")12 13open_minute = input.int(570, "open_minute", minval=-9007199254740991, maxval=9007199254740991)14balance_minutes = input.int(60, "balance_minutes", minval=-9007199254740991, maxval=9007199254740991)15last_entry = input.int(900, "last_entry", minval=-9007199254740991, maxval=9007199254740991)16exit_minute = input.int(945, "exit_minute", minval=-9007199254740991, maxval=9007199254740991)17clip = input.int(1, "clip", minval=-9007199254740991, maxval=9007199254740991)18 19_q_safe_int(x) =>20 if math.abs(x) > 900719925474099121 runtime.error("an integer left the exact chart range; this run cannot be compared faithfully")22 int(x)23_q_int(x) => _q_safe_int(x < 0 ? math.ceil(x) : math.floor(x))24_q_iadd(a, b) => _q_safe_int(a + b)25_q_imul(a, b) =>26 if a != 0 and math.abs(b) > 9007199254740991 / math.abs(a)27 runtime.error("an integer multiplication left the exact chart range; this run cannot be compared faithfully")28 _q_safe_int(a * b)29 30_q_high = _q_int(math.round(high * 1000000000.0))31_q_low = _q_int(math.round(low * 1000000000.0))32_q_close = _q_int(math.round(close * 1000000000.0))33 34var float hi = 0.035var float lo = 0.036var int balance_day = 037var int traded_day = 038// clock: completed chart bar's opening timestamp (America/New_York).39_q_clock_prev_minute = hour(time, "America/New_York") * 60 + minute(time, "America/New_York")40_q_clock_prev_second = _q_clock_prev_minute * 60 + second(time, "America/New_York")41_q_clock_prev_weekday = (dayofweek(time, "America/New_York") + 5) % 742_q_clock_prev_day = int(timestamp("UTC", year(time, "America/New_York"), month(time, "America/New_York"), dayofmonth(time, "America/New_York"), 0, 0) / 86400000)43// Current clock: this chart bar's scheduled close, known without a future bar.44// A native next event after a data gap can carry a later time.45_q_clock_minute = hour(time_close, "America/New_York") * 60 + minute(time_close, "America/New_York")46_q_clock_second = _q_clock_minute * 60 + second(time_close, "America/New_York")47_q_clock_weekday = (dayofweek(time_close, "America/New_York") + 5) % 748_q_clock_day = int(timestamp("UTC", year(time_close, "America/New_York"), month(time_close, "America/New_York"), dayofmonth(time_close, "America/New_York"), 0, 0) / 86400000)49_q_clock_seen = 150int minute_l = na51int second_l = na52int day = na53float high_l = na54float low_l = na55float close_l = na56int balance_end = na57bool late = false58 59bool _q_running = true60minute_l := _q_int(_q_clock_prev_minute)61second_l := _q_int(_q_clock_prev_second)62day := _q_int(_q_clock_prev_day)63high_l := _q_high * 1.064low_l := _q_low * 1.065close_l := _q_close * 1.066balance_end := _q_int(_q_iadd(open_minute, balance_minutes))67late := _q_iadd(second_l, 1) >= _q_imul(exit_minute, 60) or day != traded_day68if _q_int(strategy.position_size) > 069 if close_l <= lo or late70 _q_qty1 = _q_int(clip)71 if _q_qty1 <= 072 runtime.error("market order quantity must be a positive whole unit")73 _q_pos1 = _q_int(strategy.position_size)74 if _q_pos1 < 0 or _q_pos1 > 0 and _q_qty1 < _q_pos175 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")76 strategy.order("q1", strategy.short, _q_qty1)77else if _q_int(strategy.position_size) < 078 if close_l >= hi or late79 _q_qty2 = _q_int(clip)80 if _q_qty2 <= 081 runtime.error("market order quantity must be a positive whole unit")82 _q_pos2 = _q_int(strategy.position_size)83 if _q_pos2 > 0 or _q_pos2 < 0 and _q_qty2 < -_q_pos284 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")85 strategy.order("q2", strategy.long, _q_qty2)86if minute_l >= open_minute and minute_l < balance_end87 if balance_day != day88 balance_day := _q_int(day)89 hi := high_l90 lo := low_l91 else92 hi := math.max(hi, high_l)93 lo := math.min(lo, low_l)94 _q_running := false95if _q_running96 if _q_int(strategy.position_size) == 0 and balance_day == day and traded_day != day97 if minute_l >= balance_end and minute_l < last_entry98 if close_l > hi99 _q_qty3 = _q_int(clip)100 if _q_qty3 <= 0101 runtime.error("market order quantity must be a positive whole unit")102 _q_pos3 = _q_int(strategy.position_size)103 if _q_pos3 > 0 or _q_pos3 < 0 and _q_qty3 < -_q_pos3104 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")105 strategy.order("q3", strategy.long, _q_qty3)106 traded_day := _q_int(day)107 else if close_l < lo108 _q_qty4 = _q_int(clip)109 if _q_qty4 <= 0110 runtime.error("market order quantity must be a positive whole unit")111 _q_pos4 = _q_int(strategy.position_size)112 if _q_pos4 < 0 or _q_pos4 > 0 and _q_qty4 < _q_pos4113 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")114 strategy.order("q4", strategy.short, _q_qty4)115 traded_day := _q_int(day) How it was tested
The published rules, never tuned on the data, with real costs on every fill. Every strategy here is tested the same way.
- Market data
- CME Globex 1-second bars, Jan 2, 2016 to Jul 31, 2026
- Rules
- As published, with the published parameters, never tuned on this data
- Size
- 1 contract on every trade
- Contract
- The most traded one, rolled as the market moved
- Fees
- The broker's $0.50 a side, plus CME's and the NFA's fees when the window opens
- Slippage
- 1 tick a side on ES, 2 in NQ's regular session and 3 outside it, 1 on other markets, where it was not measured
- Stops and entries
- Tested on 1-second closes and filled at the next bar
- Contracts traded
- ES: 43 contracts, ESH6 to ESU6NQ: 43 contracts, NQH6 to NQU6
- Costs paid
- ES: $9,319 in fees, $65,625 in slippageNQ: $9,148 in fees, $51,900 in slippage
- Warm-up
- None: each contract reads only its own bars
- Flagged days
- ES: NoneNQ: None Days the data holds too few bars for. Flagged, not removed.
Could you pass
a prop firm challenge
with the initial balance breakout?
A backtest says whether a strategy makes money. Our AI runs its trades through the rules of every prop firm account, then tells you which one it would pass and at what size.
No card needed. Free credits every month.
- Most money: Blue Guardian Futures Direct 50K, $5,084
- Best payout odds: Funded Futures Family Straight to Funded 50K, 98%
- Fastest pass: Phidias Express to Live 50K, 11 days
$5,084
Median net across 2,000 simulated runs
- Evaluation
- None
- First payout
- 97%
- Fees paid
- $1,521
Median net across 2,000 simulated runs
Questions about the initial balance breakout
What is the initial balance breakout?
Let the first hour set a range, then trade the first close outside it, with the other side of the range as the stop. The rules follow J. Peter Steidlmayer (the initial balance, a Market Profile concept), Markets and Market Logic (with Kevin Koy) (1986). Atlantive backtested it on CME futures from January 2016 to July 2026 after costs.
Is the initial balance breakout profitable on ES futures?
Not in this backtest: on ES futures from January 2016 to July 2026 it lost $4,469 after costs, over 2,625 trades, positive in 5 of 11 years; on NQ it made $104,892. Buying and holding one ES contract over the same window made $236,212. The average trade was −$2, its 95% interval −$44 to $41. These are hypothetical results of a backtest, not of trading.
What are the initial balance breakout's rules?
The initial balance is the high and low of the first hour of the day session, 9:30 to 10:30 New York. After it, the first one-second close above the balance buys and the first below it sells short, once a day, until 15:00. The stop is the other side of the balance. Whatever is still open is closed at 15:45 New York. The rules follow J. Peter Steidlmayer (the initial balance, a Market Profile concept), Markets and Market Logic (with Kevin Koy) (1986). Its parameters are the published ones, never tuned on the data it was tested on.
How was the initial balance breakout backtested?
On CME Globex data from January 2016 to July 2026, one contract, on 1-second bars, rolled to the most traded contract as the market moved, with the broker's and CME's fees and the slippage measured on each market. Stops and entries were tested on 1-second closes and filled at the next bar. Nothing was fitted to the data.
Can I run the initial balance breakout in TradingView?
Yes. The page carries its Pine Script, written by Atlantive's compiler from the same code the backtest ran, for TradingView's strategy tester. A chart's fills and fees can differ from the backtest's, so test it again on the symbol you trade.
Can I change the initial balance breakout and test it again?
Yes. Rerun it in Atlantive: a new chat opens with the strategy's rules in the box, for you to read, change and send. The agent writes the code, backtests it on the market and window you name, and reports the result with its costs.