Backtested my breakout strat over 5 years, then added spread and lol

ChartNinja

Technical Analyst
Messages
187
Reaction score
33
Location
Manchester, UK

So I finally did the boring thing and pulled 5 years of EURUSD and GBPUSD 4H data. 2019 to 2024. My breakout system looked like a monster on the raw numbers, 61% winrate, profit factor around 1.7, equity curve going up and to the right like a staircase.

Then I added realistic spread. Not even the ugly stuff, just 1.2 pips on EURUSD and 1.8 on cable, plus $7 round turn commission per standard lot. Profit factor dropped to 0.94. Five years of work and it's basically a coin flip with extra steps.

The killer was how many trades my stop got clipped by like half a pip before price ran to target. On the raw data those were all winners. With spread they're losers. Same setup, same entries, completely different system. I sat there for a while just staring at the spreadsheet ngl.

Things I'm trying now:

  • Moving from 4H to daily so the spread is a smaller % of the average move
  • Only taking breakouts that already closed above the level on the prior candle instead of the intrabar trigger
  • Testing limit entries on the retest instead of market orders, though that misses a lot of runners

Still not sure if the daily shift is a real edge or just me torturing the data until it tells me what I want to hear. Feels like half of Trading Strategies is people rediscovering this exact lesson one way or another.

Anyway, if you're sitting on a backtest that looks too good, go add spread and commission before you get excited. Ask me how I know.

What's everyone using for realistic fill assumptions? I'm just eyeballing slippage right now and I know that's lazy.

MarketPulse

Market Analyst
Messages
187
Reaction score
51
Location
Dubai, UAE

$7 round turn per standard lot is 0.7 pips on EURUSD on top of your 1.2, so you're really paying ~1.9 pips per trade and ~2.5 on cable. On a 4H breakout with maybe a 25 to 35 pip target that's 6 to 8% of your gross move gone before you've done anything. People always quote spread like it's the whole cost. It's not.

The half-pip stop clip thing is the part that actually matters and I don't think "spread" is even the right word for it. You're not just paying a fee, you're changing which trades exist. Two of your 61% winners become losers because the bar's low ticked 0.4 pips lower. That's a sample problem, not a cost problem. Fixed-pip spread modeling hides it. If you can, run bid/ask bars instead of mid bars and let the stop trigger off the correct side. Huge pain to set up but it'll tell you if the edge was ever there.

On the daily shift, be honest with yourself about trade count. If 4H gave you 400 trades and daily gives you 60, of course the curve looks calmer. That's not edge, that's just fewer coin flips. Check your PF on the daily sample with the same cost assumptions and see if it's still above 1.3 or whatever your bar is. If it's only "better" because there are fewer trades, you've just made the same coin flip less frequent.

For fills, I don't eyeball it. I use a flat slippage assumption per market condition (0.3 pips normal, 1.5 on news bars) and then I stress test the whole thing at double that. If the strategy dies at 2x slippage it was never alive. What's your average target in pips though? Because if it's under 30 the daily move might not save you either.

ScalpMaster

Professional Scalper
Messages
200
Reaction score
38
Location
New York, USA

MarketPulse nailed it with the bid/ask bars thing but let's be honest, who actually does that. I tried it on about a year of EU data, spent a whole weekend building the two-sided bars and matching my stop logic to the correct side, then gave up and went back to mid bars plus a flat 1.5 pip penalty. Which I know is lying to myself. It's better than nothing though.

The angle nobody's mentioned yet is financing. If you're moving to daily you're holding through rollover, sometimes for days. Cable shorts were paying ugly negative swap through chunks of 2022 and 2023, and that's another couple pips a week bleeding out that never shows up in a raw price backtest. Check whether your backtester even has a swap field filled in. Mine did. I found it six months in after wondering why my live daily system underperformed the sim by a steady trickle. That trickle was swap.

On the daily shift being data torture, I half agree with you and half don't. Fewer trades does make the curve look calmer, sure. But there's a real structural reason daily works better with spread: your average move is bigger so the fixed cost is a smaller slice. That part isn't torture, that's just math. The torture is when you start tweaking the entry rule until the 60 trade sample looks good, because 60 trades tells you basically nothing. Ask me how I know.

For fill assumptions, I use Dukascopy tick data and just accept it's cleaner than what I actually get on my offshore account. Then I tack on extra slippage on the entries that fire during London open or around news. Crude but it keeps me honest-ish. What broker's data are you pulling from?

YenWarrior

JPY Specialist
Messages
183
Reaction score
44
Location
Tokyo, Japan

Gonna push back on the bid/ask bars being the gold standard here. Yes it's more accurate. But you're building a model with more precision than your live execution ever has. Your broker's spread at 3am rollover isn't 1.2, it's 4 and climbing, and it's not symmetrical either. So you burn a weekend on two-sided bars to fix a half pip error, then go live and eat a 3 pip spike on the NFP candle anyway. I'd rather model the ugly widening than the half pip tick.

Which is the thing nobody's brought up yet. Flat spread is a lie in both directions. Too pessimistic at dead hours, way too optimistic during London open. My EU breakouts cluster in the first hour of London, which is exactly when the spread goes from 1.2 to 2.5 for thirty seconds. So the flat penalty ScalpMaster uses would actually flatter my worst trades. It's not "better than nothing," it's flattering in a specific direction that happens to match how I trade.

On the daily shift, I'm with ScalpMaster that the math is real. Bigger average move, fixed cost is a smaller slice. That's not torture. But MarketPulse's trade count point still bites, just not for the reason he gave. It's not that 60 trades looks calm on a chart. It's that 60 trades means your PF has a confidence interval so fat it's basically a shrug. I've run samples where 1.4 and 0.9 were both inside the error bars. At that point you're not measuring an edge, you're measuring noise and drawing a nice line through it.

What's the actual sample size on your daily version? Under a hundred and I wouldn't trust the direction of it, let alone the number.

CryptoFXTrader

Crypto-Forex Hybrid
Messages
239
Reaction score
27
Location
Singapore

Gonna be the annoying one here. All this arguing about bid/ask bars vs flat penalty vs ugly widening, and I think everyone's polishing the wrong end of the problem.

If a 0.4 pip lower low takes your system from 1.7 PF to 0.94, the issue isn't your backtest's fill model. It's that your stops are sitting inside the instrument's noise band. Half a pip on EURUSD is nothing, that's just the market breathing. You built a system whose entire edge lives and dies inside the tick noise, then went looking for a better spreadsheet to describe the tick noise. Even a perfect two-sided bar model just tells you more precisely that the edge was never there.

YenWarrior's point about London open widening is the most honest thing in this thread and I'd push it further. If your entries cluster in the first thirty minutes of London, your flat spread assumption isn't flattering your worst trades, it's flattering all of them, because that's when you trade. Model the widening and I bet your London breakouts turn out to be a completely different system than your Asian ones, and only one of them survives.

And the daily shift everyone keeps defending as "just math" is the same fix wearing a hat. Bigger average move means your stop sits further from the noise band. That's the actual mechanism. Not calmer curves, not fewer coin flips. You stopped placing stops where a half pip matters. Do the same thing on the 4H (wider stop, smaller size, identical risk per trade) and see if you get the same result. If you do, the timeframe was never the variable.

Slightly off topic but there's a thread in the trading strategies section that circles this exact stop-in-the-noise thing

https://forexstrategy.co.uk/forums/trading-strategies.5/

Anyone actually tested wider stops plus reduced size instead of jumping timeframe? Genuinely curious if it holds up or if I'm just describing curve fitting with extra steps.

PipHunter

Senior Trader
Messages
209
Reaction score
45
Location
London, UK

Ok the stop-inside-the-noise thing from CryptoFXTrader actually made me feel sick reading it. Because yeah. My EU breakouts used a fixed 12 pip stop. Twelve. On a 4H breakout. That's not a stop, that's a coin flip with a price tag. I switched to about 1.5x ATR and my winrate went DOWN but PF went up, which I still don't fully understand tbh. Maybe someone smarter can explain why fewer winners made more money.

Not totally buying that the daily shift is "the same fix wearing a hat" though. For me the bigger change was that on 4H I was taking like 3 setups a week and half of them were the same move re-triggering after the stop got clipped. Daily made me stop double counting the same idea. Could just be me being bad at the 4H version lol.

Question for ScalpMaster though, how do you actually verify your swap field is right? Mine has a field filled in and I have no idea where the numbers come from or if they match my broker. I kind of just leave it and hope. Which is dumb. Is there a way to check it against live statements or do you just trust it?

Unrelated but my filter pump died this morning so I'm sitting here reading about bid/ask bars with a tank I'm worried about. Not the thread's fault. Just saying.

SwingTraderKate

Swing Trading Specialist
Messages
181
Reaction score
62
Location
Sydney, Australia

PipHunter, the winrate down / PF up thing isn't as weird as it feels. PF doesn't care how often you win, it cares about money won vs money lost. A 12 pip stop on a 4H breakout means your losers are microscopic, but it also means you get shaken out of moves that were about to work, then you re-enter, then get shaken out again. Going to 1.5x ATR you eat bigger individual losses but you stop paying the re-entry tax, so your average winner grows faster than your average loser does. Winrate drops because you're now sitting through pullbacks that used to just kick you out. 40% at 2.5R beats 60% at 0.8R, and I'd bet your R distribution shifted way more than your winrate did.

Where I'll push back is on CryptoFXTrader. "The edge was never there" is a clean story and this thread is getting a little too comfortable with it. There's a second version: the edge is real, it's just smaller than 4H friction allows. Those two look identical on a spreadsheet and they have opposite fixes. One says bin the system. The other says the same signal on a bigger timeframe, or with fewer re-entries per move, is perfectly fine. You can't tell them apart by staring at the PF number, you tell them apart by whether the daily version holds up out of sample. Which is the actual test nobody in here has run yet.

YenWarrior's widening point is the one that's genuinely changed how I look at my own stuff. My EU entries cluster in that first London hour too, and I've been modeling 1.1 flat for two years. If I'm honest with myself my live fills have never once matched that number at 8am.

Question for the room: has anyone actually gone trade by trade and compared live fills to backtest fills? Not the monthly P&L, the individual entries. I did it for about 40 trades last year and the pattern was ugly in a way the aggregate completely hid.

MarketPulse

Market Analyst
Messages
187
Reaction score
51
Location
Dubai, UAE

Kate's last line got cut off but I know where she was heading and I'm with her framing, not CryptoFXTrader's. "The edge was never there" assumes the 4H sample was a fair test of the idea. It wasn't. You can't rule a strategy out with a test that structurally can't measure it, and a mid-bar backtest with flat spread on a 25 pip target absolutely cannot.

The thing nobody's said yet though: the 400 4H trades weren't 400 independent samples either. If a chunk of them are the same move re-triggering after a clipped stop, which PipHunter basically admitted happens to him, the effective sample is more like 150 to 180 entries. So the significance argument cuts both ways. 60 daily trades is too thin to confirm anything, but the 4H sample wasn't as fat as it looked. Same problem, opposite direction.

On the fill model, here's the compromise I'd actually bother with. Pull M1 data and only run the intrabar path check on bars where your stop sits within about 3 pips of the extreme. Everything else, flat spread plus a commission penalty and don't lose sleep over it. That's maybe 10 to 15% of your bars and it catches every single one of the half-pip clips that turned your 1.7 into a 0.94. Wideners during London open are a separate filter, you model those by tagging entries by session, not by rebuilding the whole dataset.

PipHunter, fix the filter and get the tank cycling before anything else in this thread. The rest can wait a day.

RiskManagerRon

Risk Management Expert
Messages
188
Reaction score
55
Location
Chicago, USA

PipHunter, nobody answered your swap question so here's how I do it. Pull three months of broker statements and find a week where you held something flat overnight with no entries or exits. The swap shows up as its own line item per night. Divide by lots held and you've got your per-lot-per-night number. Do it for a long and a short in the same pair, because they won't match. Then compare to whatever's sitting in your backtester's field. Mine was off by about 40% on cable shorts, the default was a static number and the broker's was dynamic. That gap explained most of my sim-to-live bleed through 2022 and I only found it because a statement reconciliation didn't add up.

Now the thing that's bugging me about this thread. Everyone's litigating the fill model on a 400 trade sample and MarketPulse is the only one who poked at the actual problem. 400 correlated trades, where a chunk are the same move re-triggering after a clipped stop, is not 400 samples. It might be 150. And a PF of 1.7 on 150 effective samples carries a confidence interval wide enough to park a truck in. Before you burn another weekend on two-sided bars, bootstrap the trade sequence. Reshuffle your R-multiples a few thousand times, recompute PF each time, look at where the 5th percentile lands. If your 1.7 has a 5th percentile down around 0.9, then spread didn't kill the system. The system was never distinguishable from noise and the 4H curve was flattering you from the start.

Which is also why I'm less sold on Kate's "the edge is real, just smaller than 4H friction allows" framing, and I say that as someone who has argued her side of this before. How many breakout variants did you test before you landed on the 4H intrabar trigger? If the answer is more than one, you've stacked a multiple comparisons problem on top of a sample problem, and the daily shift isn't a rescue, it's a fresh roll of the dice on a different sample.

I still think daily is probably the right move for other reasons. PipHunter's double-counting point is real and that's a management fix, not a data fix. What PF are you all using as your go-live bar after costs? Mine's 1.25 on 200+ effective trades and I still assume I'm wrong.

MacroTraderTom

Macro Analyst
Messages
236
Reaction score
71
Location
Edinburgh, UK

RiskManagerRon, the bootstrap thing sounds clean but it's circular. You're reshuffling R-multiples that were generated by the same flat-spread model this whole thread just agreed is wrong. If the clipped stops are the problem, then the R-multiples themselves are biased in one specific direction, and bootstrapping a biased sequence doesn't un-bias it, it just puts a confident-looking error bar around garbage. Better move: tag every trade whose stop sat within a pip or two of the bar extreme, mark those as unknown rather than as losses, and bootstrap that. Otherwise you're measuring the precision of a broken ruler.

Now the daily shift everyone keeps calling "just math." Bigger average move, fixed cost is a smaller slice, sure, that part holds. But you're not eliminating friction, you're relocating it. On 4H your stop gets clipped by half a pip. On daily your stop gets jumped by 30 over the weekend when cable opens Sunday night and your 1.5x ATR stop is parked right where Friday closed. Nobody in this thread has mentioned gaps once and it's the exact same class of lie as the mid-bar fill. If your backtester fills Sunday gaps at the gap price, fine. A lot of them fill at your stop price by default, and if yours does, your calm-looking daily curve is fiction in precisely the way the 4H one was. Lower trade count doesn't make a quieter chart, it makes a chart with fewer places for the truth to leak out.

I'd still bet on Kate's framing over CryptoFXTrader's, the edge is probably real and just smaller than 4H friction can carry. But you don't find that out by bolting a better penalty onto the old run. You find it out by taking the same signals to daily and being honest that you just traded one set of lies for a new set.

You must log in or register to reply here.