Neither timeframe showed an edge, but M15 was worse. Running our production entry-gate code as-of every past cycle from 27 August to 29 September 2026, with fills and stops executed on 1-minute broker bid/ask candles and the live exit manager, H1 gates lost -0.18R per trade over 27 trades. M15 gates lost -0.35R to -0.46R per trade over 56–62 trades.
This is a demo-account evaluation of the trading agent we described in How do you architect a safe autonomous LLM trading agent in 2026? It is a test-methodology write-up, not financial advice. The numbers are R-multiples: result divided by the initial risk at the stop, so a full stop is exactly -1.0R.
What did the M15 vs H1 benchmark show in September 2026?
Over five weeks and nine instruments (index CFDs, FX majors, gold, crude), M15 gates took roughly twice as many trades as H1 and lost about twice as much on each one. Combined, M15 lost -22R to -26R against -4.8R for H1, roughly five times the cumulative loss over the same window. Every randomised M15 candidate-pick variant was negative.
| Gate set | Trades | Total | Per trade | Randomised candidate pick |
|---|---|---|---|---|
| H1 (1h primary, 4h confirm) | 27 | -4.8R | -0.18R | mean -0.6R, P(>0) = 0.42 |
| M15 (15m primary, 1h confirm) | 56–62 | -22R to -26R | -0.35R to -0.46R | every variant negative |
The setup matched production: Monday to Friday, 06:00–19:00 UTC, one new entry per cycle, the same position and group caps as the live account. "Candidate pick" is the tie-break when several instruments pass the gates in the same cycle. We ran it in universe order and as repeated random picks, because a result that flips sign with the tie-break isn't a result.
The H1 line reads as flat, not profitable: 42% of random-pick runs ended above zero. The M15 line has no such ambiguity, and that asymmetry is the decision we needed.
Why did we trial M15 entries in the first place?
An hourly scan misses pullbacks that start and finish inside the hour, and resting limit orders under an hourly cadence rarely filled. A 15-minute cadence promised more setups and tighter stops. We added a separate M15 gate set on 18 September and ran it live on the demo account, with gate values set by judgment, not by backtest.
We kept the M15 thresholds in their own config block rather than reusing the H1 numbers, so the two gate sets stayed independently tunable and the H1 production path was untouched. Where a gate was about noise per bar, we made M15 stricter: zone tolerance cut from 0.25 to 0.15 ATR and RSI trigger bands narrowed from 40–50 to 42–48 for longs.
The live week from 21 to 25 September produced 17 M15 trades for +0.47R, about +0.03R per trade. That's statistically nothing. Inside it, three NASDAQ trades stopped out for -2.75R combined in afternoon chop that crossed the full stop range faster than a 15-minute cycle could react.
Why wasn't a week of live M15 trades enough to decide?
Seventeen trades can't separate +0.03R per trade from -0.4R per trade; the variance of a single 1R stop swamps the difference. Live forward testing answers "does the plumbing work?" fast and "is there an edge?" slowly. To decide cadence in days, not months, we needed the same five weeks of history scored by the exact code that trades.
The live sample was also mixing problems. Resting LIMIT orders kept expiring inside the 15-minute intent window: crude oil missed four consecutive cycles on 23 September. A day's result was as much about order mechanics as about the gates, and a live tally can't pull those apart.
Why didn't we trust our first bar-level backtest?
Our first pass was a walk-forward grid on 5-minute bars, and it had a lookahead leak: higher-timeframe trend alignment read the still-forming HTF bar. Even after fixing that, it reported H1 at +0.23R per trade. The faithful harness showed that number was an artifact of simplified execution. The bar-level search got the direction right and the magnitude wrong.
The grid was 1,536 parameter combinations across nine instruments, spread-adjusted, trained on 14 August to 12 September and tested on 13 to 29 September, in the spirit of walk-forward optimization. First result: M15 median unseen expectancy -0.075R per trade, H1 +0.231R. The live-like M15 config went +11.6R in training to -20.5R in test, which matched the account's real M15 drawdown.
The leak came from joining a 1h trend onto 15-minute bars by bar start time. A 1h bar labelled 10:00 contains prices until 10:59, so a 10:15 decision was reading 45 minutes of the future. That's the classic pandas resample label/closed trap. The fix joins on bar end time:
# use only HTF bars that have COMPLETED by the primary bar's close (no lookahead):
# HTF bar end (ts + period) must be <= primary bar end (ts + period)
idx = np.searchsorted(q["ts"] + PERIOD_MS[src], # HTF bar END times
p["ts"] + PERIOD_MS[tf], # primary bar END times
side="right") - 1
htf_trend = np.where(idx >= 0, q["trend"][np.maximum(idx, 0)], 0)
After the fix: M15 -0.117R, H1 +0.227R, same conclusion. A follow-up search of about 17.5 million combinations over 15m, 30m, 1h and 2h, checked for probability of backtest overfitting, agreed on timeframe. But a bar-level simulator still reimplements the gates and the exit logic. We had two models of the system, not the system.
How do you run production gate code as-of a past timestamp?
Don't reimplement the gates. Import the real scanner and patch only its inputs: the candle loader drops every bar not complete by the as-of time, and the clock functions return the as-of time. Then the unmodified production function runs exactly as it would have at that cycle. We confirmed it reproduces two real logged verdicts exactly.
ASOF = [0]
_orig_load = analyze.load_candles
class FakeDT(datetime):
@classmethod
def now(cls, tz=None):
return datetime.fromtimestamp(ASOF[0] / 1000, tz or timezone.utc)
def _load(conn, epic, scale, limit=None):
df = _orig_load(conn, epic, scale, None)
# drop bars that were not COMPLETE at the as-of time
df = df[df["ts"] + SCALE_MS.get(scale, 0) <= ASOF[0]].reset_index(drop=True)
return df.tail(limit).reset_index(drop=True) if limit else df
def scan(asof_ms, tf):
ASOF[0] = asof_ms
analyze.load_candles = _load
analyze.now_ms = lambda: ASOF[0]
analyze.datetime = FakeDT
return analyze.cmd_playbook_check(analyze.get_ro_conn(), None, tf) # production code
def cycle_times(tf, start, end, hours=(6, 19)):
step = {"1h": 60, "15m": 15}[tf]
idx = pd.date_range(start, end, freq=f"{step}min", tz="UTC")
return [int(t.value // 10**6) for t in idx
if t.dayofweek < 5 and hours[0] <= t.hour <= hours[1]]
Each as-of call is independent, so a multiprocessing.Pool fans out over cycles. M15 has four times the cycles of H1, which is the real cost of this approach. We accepted that over writing a faster vectorised copy of the gates, because the copy is exactly what had just misled us.
The one thing to verify before trusting it: grep the scanner for every source of "now". We patched the loader, a now_ms() helper and the module-level datetime. Miss one and you get lookahead again, silently.
How does the execution side turn verdicts into realistic fills?
Each verdict becomes a trade on recorded 1-minute bid and ask candles. Longs fill at the ask, shorts at the bid, three minutes after the signal; exits fill on the opposite side, so spread is real, not a flat average. Stops are checked inside each minute on the correct side, before targets. The real exit-manager code runs once per completed minute.
for k in range(i0, n):
if pending is not None: # stop amend from the previous minute takes effect now
cur_stop, pending = pending, None
# intra-minute hard stop, checked BEFORE target (conservative)
if buy and bid_low[k] <= cur_stop:
px = bid_open[k] if bid_open[k] <= cur_stop else cur_stop # gap fills at the open
return result("stop", px)
if not buy and ask_high[k] >= cur_stop:
px = ask_open[k] if ask_open[k] >= cur_stop else cur_stop
return result("stop", px)
# exit manager on the completed minute, mid price, SAME functions as production
r_now = decide.r_now(direction, entry, (bid_close[k] + ask_close[k]) / 2, init_risk)
new_stop = production_guardian_step(r_now, cur_stop, ...) # BE / ladder / swing trail
if new_stop is not None:
pending = new_stop # amend latency: one minute
Before using it for the comparison, we fed it the 43 real closed trades from the account, with their real fill prices and stops. Simulated R correlated +0.87 with real R, and 29 of 43 landed within 0.25R. Over the H1-era trades the harness said -0.7R against a real -1.2R. That calibration step is what made us trust the M15 number.
Why does M15 lose faster than H1?
Two effects multiply: M15 fires about twice as often, and each trade is worse. Spread is part of the per-trade gap but a small part. On our recorded session data, median spread was 7.6% of a 15m ATR versus 3.5% of a 1h ATR. With stops of one to two-plus ATR, that's a few hundredths of R per trade, not 0.2R.
| Instrument | Spread / ATR(14), 15m | Spread / ATR(14), 1h |
|---|---|---|
| DAX | 5.2% | 2.6% |
| NASDAQ | 5.4% | 2.6% |
| Gold | 6.2% | 2.8% |
| Crude oil | 7.6% | 3.5% |
| EURUSD | 16.2% | 7.6% |
| S&P 500 | 18.3% | 8.8% |
| Median, 9 instruments | 7.6% | 3.5% |
The rest is the signal. A 15-minute pullback into the EMA zone is mostly noise that happens to touch it, and intraday index chop routinely covers a 15-minute ATR-based stop before the trend reasserts. That's exactly the NASDAQ pattern from the live week.
The same day's analysis exposed a structural gap too. The M15 checker's "higher timeframe" was the 1h, so M15 runs never consulted the true 4h trend. Re-scored on our 56 real closed trades, a 4h-opposition veto would have blocked 6: 5 losers, 1 winner. That's a modest sample (permutation p = 0.029), but the mechanism doesn't depend on the numbers.
What else did the harness show that the live trial could not?
Entry type mattered more than we expected. Resting limit entries did worse per trade than market entries on H1 gates: -0.28R against -0.05R. The live exit manager beat both a breakeven-only and a breakeven-plus-trail policy in every variant. "No management" looked good only because of three outlier trades.
The limit-versus-market finding is the one that carried forward. It's the same failure mode, trades that never move in our favour after a resting fill, that later drove the confirmation-entry change in our LLM trading agent lost -1.56R over 20 pre-registered demo trades — the postmortem and what we changed.
What did we change, and what did we refuse to claim?
On 29 September we switched the scan back to H1 and left everything else alone. The M15 code path still exists behind a flag; rollback is one line. We did not claim H1 has an edge, because the harness said it doesn't: -0.18R per trade with 42% of random-pick runs positive is flat.
That distinction cost us a satisfying headline. The bar-level grid's "+0.23R for H1" would have been an easy story, and it was false. We wrote the correction into the operator journal the same day, explicitly superseding the earlier bar-level entry, so no later decision could cite the wrong number.
Three things were not modelled: news and calendar vetoes, the agent's own discretion, and margin caps. All three cut trades rather than add them, so they could move the H1 number in either direction. None of them plausibly rescues M15 from "every random pick negative".
Should you change entry cadence without this kind of test?
No. A cadence change multiplies trade count, so a small negative per-trade edge becomes a fast drawdown. Score the candidate cadence with the real decision code, run as-of each past cycle, executed on broker bid/ask minutes, and calibrated against your own closed trades. Then compare per-trade expectancy and its stability across tie-break variants, not live P&L from one week.
Our M15 vs H1 answer was that both entry timeframes lost, and M15 lost faster: -0.35R to -0.46R per trade on twice the trade count, against roughly flat H1. The harness that produced it is a few hundred lines of glue around code we already had. The live alternative would have cost weeks of real drawdown to reach the same conclusion with less confidence.