Free Alpha, Fine Print: The Noise-Area Intraday Momentum Rule on 13 Years of Bid/Ask Data
The complete Zarattini, Aziz and Barbon "noise area" day-trading rule with runnable Python, backtested on the S&P 500 and Nasdaq 100 index CFDs from 2013 to 2026 under three cost models. On the Nasdaq it survives the spread. On the S&P it lives or dies by the cost assumption, and since the paper came out it has lost money there.
Every few years somebody publishes a day-trading rule that fits on an index card, next to a backtest that looks like a typo.
In May 2024 it was Carlo Zarattini, Andrew Aziz and Andrea Barbon with Beat the Market: An Effective Intraday Momentum Strategy for S&P500 ETF (SPY). From 2007 to early 2024, their abstract says, the rule made a total return of 1,985% net of costs: 19.6% a year, Sharpe ratio 1.33.
The rule is public. The authors’ Python code is public. If it works, that is free alpha for anyone with a brokerage account and a minute chart.
So we did what we do with every free lunch: rebuilt it from scratch, ran it on thirteen years of 1-minute bid and ask data for the S&P 500 and Nasdaq 100 index CFDs, charged it for the spread three different ways, and tried to kill it.
It didn’t die. It didn’t exactly thrive either. Below is all of it: the rule, code you can run on your own data, our numbers, and the fine print.
The Verdict First
- Before costs, we get close to the paper. Our US500 years from 2014 to 2024 correlate 0.96 with the paper’s published SPY years. Compounded over those eleven years: +565% for us with no costs at all, +619% in the paper net of its own (very small) costs.
- After costs, it depends on the index. Charged half the quoted bid-ask spread at every fill, US100 made +8.8% a year since 2013 (Sharpe 0.67). US500 made +4.7% (Sharpe 0.39), and its 2013-2020 stretch was a flat line: −0.8% a year.
- The edge per position is a few basis points. After the quoted spread, the average position earns 1.00 bp of the money it puts to work on US500 and 2.75 bp on US100. At 1 bp per side, US500 keeps +1.9% a year.
- Since the paper came out, US500 lost money (−2.0% a year at quoted spreads, May 2024 to November 2026) while US100 made +12.8% a year. Neither is statistically different from its own past yet.
The Idea: Price Has to Prove It Isn’t Noise
Most of the time an index wanders away from its opening price by about as much as it usually does at that time of day. Thirty minutes in, that is a few tenths of a percent. By mid-afternoon, more. The paper calls that zone of ordinary wandering the noise area. Inside it, buyers and sellers are roughly balanced and there is nothing to trade.
When price leaves the noise area, and also sits on the right side of the day’s VWAP, somebody is pushing. Intraday pushes tend to keep going. So you go with them, check again every 30 minutes, and you are flat by the close.
That is the whole strategy. In four lines:
move(d, m) = |close(d, m) / open(d) - 1|, how far price has moved from today’s open by minutemsigma(m)= the averagemoveat that same minute over the previous 14 sessionsupper = max(open, yesterday's close) * (1 + sigma)andlower = min(open, yesterday's close) * (1 - sigma)- every half hour from 10:00 to 15:30: long if price is above
upperand above VWAP, short if it is belowlowerand below VWAP, otherwise flat
The max and min with yesterday’s close handle overnight gaps. After a gap down, the upper band is anchored on yesterday’s close, so price has to win back the whole gap plus the usual noise before an upside move counts.
One detail makes it elegant: the entire noise area for the day is known at 09:30. It depends only on the last 14 sessions, today’s open and yesterday’s close. Only price and VWAP move.

That is the day the rule lives for. For three and a half hours, US500 chops around inside the noise area: seven decisions, seven times flat. At 13:30 price is through the upper band and above VWAP. The rule goes long at 2.2 times equity and holds to the close: +1.50% of equity at 0.5 bp per side, +1.51% at the quoted spread (in 2026 the quoted spread was usually below our 0.5 bp flat charge).

And that is the day it pays for. Three times price breaks below the lower band and VWAP, three times it snaps back. Three short positions at 1.7 times equity, three losses: −1.69% of equity on the day.
Losing positions outnumber winning ones. Only 37.0% of US500 positions and 38.9% of US100 positions make money (at 0.5 bp per side). The paper reports a 37% hit ratio per trade for this version of the rule. The profit comes from the size of the winners, not their count.
Watch It Build
The same day as the first chart, minute by minute. The bands unfold first because they are fixed at the open. Every 30 minutes the rule compares the last close with the upper band, the lower band and VWAP, and either stays flat or takes a side.
The Complete Rule, Exactly as We Tested It
- Session. 09:30-16:00 New York time, 390 one-minute bars. Only full sessions count: a quote within the first five minutes, one in the last half hour, and at least 200 minutes with a quote. That drops half days and most US holidays on which the CFD still quotes. Over 2013-2026 it skipped 168 of 3,497 US500 sessions (51 of them in 2013, when the data is thin) and 139 of 3,510 for US100.
- Missing minutes. A minute without a candle means no quote change: price unchanged, volume zero.
- Noise area. For each minute
m,sigma(m)is the mean of|close(m) / open - 1|over the previous 14 full sessions.upper = max(open, previous close) * (1 + sigma),lower = min(open, previous close) * (1 - sigma), where “previous close” is the 16:00 close of the previous full session. - VWAP. Cumulative
(high + low + close) / 3weighted by each minute’s tick volume, starting at 09:30. - Decisions at 10:00, 10:30, …, 15:30, twelve a day, on the close of the minute that ends at that time. Long if
close > max(upper, VWAP). Short ifclose < min(lower, VWAP). Otherwise flat. A long that is back inside the band or under VWAP at a decision is closed. That is the paper’s “current band + VWAP” trailing stop, checked only on the half hour. - Execution. Fill at the open of the next minute. Whatever is open at 16:00 is closed at the 16:00 close. Nothing is held overnight.
- Size.
min(4, 0.02 / sd)times the equity at the start of the day, wheresdis the standard deviation of the previous 14 daily close-to-close returns. Between decisions the number of units is fixed. At each decision the size is reset to the target, with no charge for that reset. - Costs, charged on every change of position and on the final close: (a) 0.5 bp of notional per side, (b) half the quoted spread at the fill minute,
(ask open - bid open) / 2, or (c) 1.0 bp per side. Profit and loss is marked on bid candles for longs and shorts alike; the cost term stands in for the spread. - Warm-up. No trades until 15 full sessions of history exist.
Lookback 14 and a band multiplier of 1 are the paper’s defaults. The paper’s own FAQ says a 90-day lookback and a 1.5 multiplier would have had a better Sharpe ratio in hindsight. We did not use them. Tuning was not the point.
Where we differ from the paper
| Paper | This post | |
|---|---|---|
| Instrument | SPY, the ETF | US500 and US100 index CFDs |
| Data | IQFeed 1-minute bars, May 2007 to April 2024 | Dukascopy 1-minute bid and ask candles, 2013 to 20 November 2026 |
| VWAP volume | SPY’s volume, market hours only | the data vendor’s tick volume, 09:30 on |
| Fill | open of the minute starting at HH:00 or HH:30 (the paper’s slippage study measures fills against that open) | the same open; the decision uses the close of the minute just before it |
| Cost per side | $0.0035 commission + $0.001 slippage per share: 0.18 bp at the paper’s average SPY price of $247 | 0.5 bp, half the quoted spread, or 1.0 bp |
| Size | shares fixed at the open for the whole day | notional reset to the target at every decision |
| Signal | enter beyond the band; trailing stop at the band or VWAP, whichever is tighter; both checked every 30 minutes | one test at every decision: long above both, short below both, else flat |
Note the cost row. The paper’s own cost assumption works out to a fifth of a basis point per side. Our cheapest model, 0.5 bp, is nearly three times that. Hold on to that; it explains most of what follows.
The Code
This is the complete reference implementation. Pandas and NumPy, nothing else. It takes 1-minute candles with a timezone-aware index (the candle’s open time) and returns the position at each decision and the daily returns.
import numpy as np
import pandas as pd
FIELDS = ["open", "high", "low", "close", "volume"]
def session_grid(bars, tz="America/New_York", start="09:30", n=390):
"""Day x minute matrices of the session (NaN = no candle)."""
local = bars.index.tz_convert(tz)
h, m = map(int, start.split(":"))
minute = np.asarray(local.hour * 60 + local.minute - h * 60 - m)
weekday = np.asarray(local.dayofweek < 5)
keep = (minute >= 0) & (minute < n) & weekday
day = local[keep].tz_localize(None).normalize()
grid = {}
for k in FIELDS:
frame = pd.DataFrame({"day": day, "minute": minute[keep],
"x": bars[k].to_numpy()[keep]})
wide = frame.pivot(index="day", columns="minute", values="x")
grid[k] = wide.reindex(columns=range(n))
return grid
def fill_grid(grid, days=None):
"""Missing minute = no quote change: o = h = l = c = last close,
volume 0. Minutes before the first candle take its open."""
g = {k: (v if days is None else v.reindex(days)).to_numpy(float)
for k, v in grid.items()}
c = g["close"]
real = ~np.isnan(c)
first = np.where(real.any(1), real.argmax(1), 0)
first_open = g["open"][np.arange(len(c)), first]
c = pd.DataFrame(c).ffill(axis=1).to_numpy()
c = np.where(np.isnan(c), first_open[:, None], c)
out = {k: np.where(np.isnan(g[k]), c, g[k])
for k in ("open", "high", "low")}
out["close"], out["real"] = c, real
out["volume"] = np.nan_to_num(g["volume"])
return out
def noise_area_backtest(bars, ask=None, cost_bp=0.5, lookback=14,
vm=1.0, vol_target=0.02, max_lev=4.0,
tz="America/New_York", start="09:30",
n=390, step=30):
"""Returns (positions, daily).
positions: target exposure at each decision, per full session
(+2.1 = long 2.1x equity, 0 = flat).
daily: gross, cost and net return of each full session, as
a fraction of the day's starting equity.
cost_bp: one-way cost per unit of notional traded. With `ask`
the cost is half the quoted spread at each fill, and
cost_bp is used only where no ask quote exists."""
raw = session_grid(bars, tz, start, n)
days = raw["close"].index
g = fill_grid(raw)
O, H, L, C = g["open"], g["high"], g["low"], g["close"]
V, real = g["volume"], g["real"]
D = len(days)
# full sessions: a quote in the first 5 minutes, one in the
# last half hour, and at least 200 minutes with a quote
first = real.argmax(1)
last = n - 1 - real[:, ::-1].argmax(1)
full = (real.sum(1) >= 200) & (first <= 5) & (last >= n - 30)
vi = np.flatnonzero(full)
# noise area: mean absolute move from the open at each minute
# over the previous `lookback` full sessions
day_open, day_close = O[:, 0], C[:, -1]
move = np.abs(C / day_open[:, None] - 1.0)
mean_move = pd.DataFrame(move[vi]).rolling(lookback).mean()
sigma = np.full((D, n), np.nan)
sigma[vi] = vm * mean_move.shift(1).to_numpy()
prev_close = np.full(D, np.nan)
prev_close[vi[1:]] = day_close[vi[:-1]]
top = np.maximum(day_open, prev_close)[:, None]
bottom = np.minimum(day_open, prev_close)[:, None]
upper, lower = top * (1 + sigma), bottom * (1 - sigma)
# session VWAP of the typical price (plain mean until volume)
typical = (H + L + C) / 3.0
cumv = np.cumsum(V, axis=1)
safe = np.where(cumv > 0, cumv, 1.0)
weighted = np.cumsum(typical * V, axis=1) / safe
plain = np.cumsum(typical, axis=1) / np.arange(1, n + 1)
vwap = np.where(cumv > 0, weighted, plain)
# decisions on the closes of the 09:59, 10:29, ... 15:29 bars
marks = np.arange(step - 1, n - step, step)
px = C[:, marks]
hi = np.maximum(upper[:, marks], vwap[:, marks])
lo = np.minimum(lower[:, marks], vwap[:, marks])
with np.errstate(invalid="ignore"):
side = np.where(px > hi, 1.0, np.where(px < lo, -1.0, 0.0))
# size: volatility target on the previous daily returns
ret = pd.Series(day_close[vi]).pct_change()
vol = np.full(D, np.nan)
vol[vi] = ret.rolling(lookback).std().shift(1).to_numpy()
with np.errstate(divide="ignore", invalid="ignore"):
size = np.nan_to_num(np.minimum(max_lev, vol_target / vol))
ok = full & ~np.isnan(sigma[:, 0] + prev_close + vol)
pos = np.where(ok[:, None], side * size[:, None], 0.0)
# execution: fill at the open of the minute after a decision,
# flat at the 16:00 close. Units are fixed between decisions;
# at each decision the size is reset to the target.
fills = O[:, marks + 1]
exits = np.column_stack([fills[:, 1:], C[:, -1]])
gross = (pos * (exits / fills - 1.0)).sum(1)
traded = np.abs(np.diff(pos, axis=1, prepend=0.0))
closed = np.abs(pos[:, -1])
cost_fill = np.full(fills.shape, cost_bp / 1e4)
cost_close = np.full(D, cost_bp / 1e4)
if ask is not None: # half the quoted spread at the fill minute
a = fill_grid(session_grid(ask, tz, start, n), days)
with np.errstate(invalid="ignore"):
spread = np.maximum(a["open"] - O, 0)[:, marks + 1]
spread_end = np.maximum(a["close"][:, -1] - C[:, -1], 0)
hs, hc = spread / (2 * fills), spread_end / (2 * C[:, -1])
cost_fill = np.where(np.isnan(hs), cost_fill, hs)
cost_close = np.where(np.isnan(hc), cost_close, hc)
cost = (traded * cost_fill).sum(1) + closed * cost_close
t0 = int(start[:2]) * 60 + int(start[3:])
labels = [f"{(t0 + k + 1) // 60:02d}:{(t0 + k + 1) % 60:02d}"
for k in marks]
positions = pd.DataFrame(pos, index=days, columns=labels)
daily = pd.DataFrame({"gross": gross, "cost": cost,
"net": gross - cost}, index=days)
return positions[full], daily[full]
We checked it against the backtest code that produced every number in this post. Over the whole history in our data, for both indices and all three cost models, the daily returns agree to within 1.6 × 10⁻¹⁵ and every one of the twelve daily decisions takes the same side. Started cold on data from 2024 only, it matches the full-history run from its 16th session on, to within 1.3 × 10⁻¹⁵. Floating-point noise, nothing more.
Thirteen Years, Two Indices, Three Cost Models

Same positions, same days, three bills. The full period runs from 18 June 2013 for US500 (the first date with 15 full sessions of history) and 2 January 2013 for US100, to 20 November 2026.
| Index, cost per fill | Return a year | Volatility | Sharpe | Max drawdown | Net bp per position |
|---|---|---|---|---|---|
| US500, 0.5 bp/side | +8.2% | 14.5% | 0.63 | −31.5% | +1.52 |
| US500, quoted spread | +4.7% | 14.6% | 0.39 | −46.8% | +1.00 |
| US500, 1.0 bp/side | +1.9% | 14.6% | 0.20 | −42.7% | +0.52 |
| US100, 0.5 bp/side | +13.4% | 14.4% | 0.98 | −23.5% | +3.52 |
| US100, quoted spread | +8.8% | 14.6% | 0.67 | −39.4% | +2.75 |
| US100, 1.0 bp/side | +8.4% | 14.5% | 0.65 | −28.3% | +2.52 |
Returns are compounded at the rule’s own size. Volatility and Sharpe use daily returns of full sessions times the square root of 252, with no risk-free rate. “Net bp per position” is the average position’s result in basis points of its own notional, after costs.
The rest of the profile barely depends on cost. US500 opens 220 positions a year and is in the market on 60% of sessions; US100, 209 and 59%. The average position lasts a little under two hours: 109 minutes on US500, 115 on US100. The size averages 2.7 times equity on US500 and 2.2 on US100, and on 21% of the days US500 trades, it sits at the 4x cap.
Year by year
| Year | US500, 0.5 bp | US500, quoted spread | US100, 0.5 bp | US100, quoted spread | Paper, SPY |
|---|---|---|---|---|---|
| 2013 | −1.8% | −6.4% | −2.5% | −15.3% | +9.6% |
| 2014 | +4.5% | −3.2% | +13.5% | −9.1% | +12.6% |
| 2015 | +14.5% | +7.0% | +14.3% | +6.1% | +18.4% |
| 2016 | −16.5% | −25.0% | −8.1% | −16.8% | −12.8% |
| 2017 | −11.4% | −19.8% | +13.6% | +7.1% | −6.9% |
| 2018 | +35.6% | +31.7% | +53.3% | +50.0% | +61.1% |
| 2019 | +5.0% | +3.3% | −0.7% | −2.1% | +6.9% |
| 2020 | +20.2% | +18.8% | +14.4% | +13.4% | +26.8% |
| 2021 | +23.1% | +22.6% | +15.6% | +16.5% | +34.8% |
| 2022 | +25.1% | +24.6% | +19.2% | +19.2% | +24.4% |
| 2023 | +29.5% | +28.3% | +29.2% | +29.6% | +37.2% |
| 2024 | +13.9% | +14.4% | +28.4% | +29.9% | +32.2% |
| 2025 | −10.0% | −9.1% | +0.1% | +1.8% | – |
| 2026 | −5.3% | −3.5% | +9.5% | +11.6% | – |
The paper column is the authors’ own yearly table from the February 2025 version of the paper (its FAQ, question 24), net of their costs. Our 2013 for US500 starts in June. 2026 runs to 20 November.
The shapes match. Our US500 and the paper’s SPY both lose money in 2016 and 2017 and both have their best year in 2018. With no costs at all, our US500 years from 2014 to 2024 correlate 0.96 with the paper’s and compound to +565% against the paper’s +619%. At 0.5 bp per side the same eleven years compound to +244%; at the quoted spread, +126%. The rule is reproducible. The paper’s returns depend on its cost assumption.
Long, Short and the Clock
| Index (half the quoted spread) | Long positions | Long, bp each | Short positions | Short, bp each |
|---|---|---|---|---|
| US500 | 1,519 | +1.22 | 1,434 | +0.76 |
| US100 | 1,518 | +3.40 | 1,385 | +2.05 |
Both sides make money over the full period, the long side more. Since publication the long side of US500 has been negative (−1.61 bp per position over 301 positions) while its short side kept earning (+1.84 bp over 278). We would not build anything on that split: it is a few hundred positions.

Where does the money come from inside the day? We split every holding into its 30-minute segments and averaged each one over the days the rule was in it. The 12:00-13:30 stretch earns close to nothing (−0.12 bp per held segment on US500, +0.21 on US100) against +0.96 and +1.51 for the rest of the day. The paper’s FAQ says the same thing about SPY: trends pause at lunch and resume into the close.
A warning about this kind of slicing. Grouped by entry time, US500 positions opened at 12:00 and 13:00 lose money with t-statistics of −2.14 and −2.27, and positions opened at 14:30 and 15:00 make money with t-statistics of +2.25 and +2.06. Tempting. It is also exactly how a two-parameter rule turns into a twenty-parameter one: the pattern was found by slicing the same data it would be judged on, and on US100 the same midday entries are much weaker (t-statistics of −0.81 and −1.01). We didn’t filter.
Costs Decide Everything

The average US500 position earns 2.52 bp of its notional before costs. US100, 4.52 bp. Every position pays the spread twice, in and out. That is the whole story of this strategy in one sentence.
The quoted spread was not constant. The median half spread we paid at the fills on US500 fell from 1.31 bp in 2013 to 0.34 bp in 2026; on US100 from 3.48 bp to 0.20 bp. So the cost model matters a lot in the early years and hardly at all in the recent ones:
| Index, period | 0.5 bp per side | Half the quoted spread | 1.0 bp per side |
|---|---|---|---|
| US500, 2013-2020 | +5.4% (0.45) | −0.8% (0.02) | −0.9% (0.01) |
| US500, 2021-2026 | +11.9% (0.85) | +12.2% (0.87) | +5.7% (0.45) |
| US100, 2013-2020 | +11.0% (0.81) | +2.4% (0.24) | +5.7% (0.47) |
| US100, 2021-2026 | +16.9% (1.20) | +18.1% (1.28) | +12.3% (0.91) |
(Annual return, Sharpe in brackets.)
With a flat 0.5 bp charge the rule is positive in both halves of the sample. Charge what the market actually quoted and US500’s 2013-2020 goes to zero and US100’s shrinks to a fraction of the flat-cost result, while 2021-2026 barely changes because spreads had tightened. At 1 bp per side, US500 is close to dead: +1.9% a year over the whole period.
The paper’s assumption of $0.0045 per share per side is 0.18 bp at its average SPY price, 0.45 bp when SPY was at $100 and 0.08 bp at $600. Whether you can trade SPY that cheaply at the half hour, with size, is a question for your broker’s fills, not for a backtest.
Did Publishing It Kill It?
The authors addressed this in the paper’s FAQ: “given the liquidity of the underlying instrument and the trend-following nature of the model, we believe the risk of alpha decay is minimal.”
Two and a half years later, our two indices disagree with each other.

| Half the quoted spread | Before (to 9 May 2024) | After (10 May 2024 to 20 Nov 2026) |
|---|---|---|
| US500 | +6.3%; 0.51; +1.23 bp | −2.0%; −0.06; +0.05 bp |
| US100 | +7.9%; 0.62; +2.47 bp | +12.8%; 0.87; +3.98 bp |
(Annual return; Sharpe; net bp per position.)
US500 has lost money since the paper came out. Since January 2025 it is down 12.3% at quoted spreads (14.8% at 0.5 bp per side). Its average position in 2026 makes +0.64 bp at the quoted spread against a long-run 1.00 bp; at 0.5 bp per side, +0.32 against 1.52. US100 had a flat 2025 (+1.8%) and a good 2026 (+11.6%), and its average position since publication is no smaller than before.
Is US500’s fade decay or bad luck? We can’t tell yet, and we checked two ways:
- Compared with its own past, US500’s average position since publication is lower and US100’s is higher, but Welch t-statistics of −0.60 and +0.47 are nowhere near significant.
- Compared with every earlier stretch of the same length (630 sessions), 33% of US500’s earlier windows did worse at quoted spreads. The worst trailing year before publication (−34.1%, in 2017) was deeper than the worst one since (−22.2%). US100: −27.9% against −13.5%.
For what it’s worth, the authors’ own update in that FAQ shows +32.2% for SPY in 2024 and −1.2% for January 2025. Our 2024: +14.4% on US500 and +29.9% on US100 at quoted spreads.
Honest summary: one index has been bad for two years, the other has been fine, and two years is not enough data to call it.
What Could Make Our Numbers Wrong
- One data vendor. Every number here comes from Dukascopy’s candles. A different feed means different minute closes, different spreads and different decisions. We have not cross-checked a second vendor.
- A CFD is not the ETF. US500 and US100 are the broker’s quotes on the cash indices, not SPY or QQQ prints. Before costs the US500 years track the paper’s SPY years closely, but not exactly.
- Tick volume. Our VWAP weights minutes by the number of quote changes, not traded volume. Replacing it with equal weights changes 0.46% of US500’s decisions and 0.30% of US100’s, and moves the annual return at quoted spreads from +4.7% to +4.1% (US500) and +8.8% to +8.7% (US100). The VWAP input matters less than the cost input, but it is not real volume.
- Skipped sessions. Half days and holidays are left out, around 6 to 13 sessions a year. Anyone trading the rule has to decide what to do on them; the backtest simply sits them out.
- Thin early data. 2013 and early 2014 have gaps (US500 has 133 full sessions in 2013). From 29 September 2014, when every trailing year has at least 235 full sessions, US500 at quoted spreads makes +5.5% a year (Sharpe 0.45) and US100 +11.7% (Sharpe 0.85). Same picture.
- Fills. We fill at the next minute’s open with half the quoted spread and nothing more: no slippage beyond the quote, no market impact, no commission, no rejected orders, no outages at 15:30. The size reset at each decision is free in the model and not free in real life.
- Leverage. The rule runs at up to 4x, 2.7x on average on US500. Your broker’s margin rules decide whether you can.
Before You Trade It
This is a backtest, not advice. We are not telling you to trade it, and nothing here says what it will do next year. If you want to, check at least this:
- Your cost per fill, measured. Spread plus commission plus slippage at 10:00-15:30 on your venue. At 0.5 bp per side or less, the S&P side has a positive long-run record and a losing last two years. At 1 bp it has close to nothing.
- Your data’s bar convention. The code expects each candle stamped with its open time. If your vendor stamps the close, shift by one minute or every decision is a minute late.
- Your VWAP source. Real volume, tick volume or none. Run both and see whether your decisions move.
- Your holiday calendar. Decide in advance what happens on half days.
- Your leverage. 4x on an index CFD or futures is a margin question, and a 1% adverse move at 4x is 4% of equity. The maximum drawdowns above run from 23.5% to 46.8%.
- A forward period. Run it simulated or at tiny size for a few months and compare your fills with the backtest’s, decision by decision.
Run It Yourself
- Get 1-minute candles for an S&P 500 or Nasdaq 100 instrument: bid candles, and ask candles if you want the spread charged as quoted. Dukascopy’s historical data feed has both for its index CFDs. Futures or ETF bars work too; then pass a flat
cost_bp. - Save them as CSV with a header
time,open,high,low,close,volume, the time in UTC at the candle’s open, one row per minute. Missing minutes are fine; duplicate timestamps are not. - Save the code above as
noise_strategy_reference.pyand run:
import pandas as pd
from noise_strategy_reference import noise_area_backtest
def read(path):
df = pd.read_csv(path, index_col=0)
df.index = pd.to_datetime(df.index, utc=True)
return df
bid = read("us500_bid.csv")
ask = read("us500_ask.csv")
# half the quoted spread at every fill
positions, daily = noise_area_backtest(bid, ask=ask)
# or a flat cost per side:
# positions, daily = noise_area_backtest(bid, cost_bp=0.5)
print(positions.tail()) # exposure at 10:00 ... 15:30
equity = (1 + daily.net).cumprod()
sharpe = daily.net.mean() / daily.net.std() * 252 ** 0.5
drawdown = (equity / equity.cummax() - 1).min()
print(f"growth {equity.iloc[-1]:.2f}x, Sharpe {sharpe:.2f}, "
f"max drawdown {drawdown:.1%}")
On Dukascopy’s US500 and US100 candles from 2012 to 20 November 2026 you should get our numbers. If you don’t, we want to know.
All numbers in this post come from one script run on Dukascopy 1-minute bid and ask candles of the US500 and US100 CFDs, 2012 to 20 November 2026. Paper figures are quoted from the paper. Backtests, not advice. See 38 strategies tested for where this kind of result usually ends up.