Posts

A straight desert road at night seen from ground level, with the mirage of a perfect lake far ahead reflecting the amber glow of the horizon and a blank road sign at the edge.

The backtest that’s too good: five ways it tells you a fairy tale

Hi trader,

yesterday I posted a short reel (in Italian) on my Instagram about something that happened to me a few weeks ago.

A follower sends me his equity curve.

A backtest across several markets, with a line climbing cleanly from left to right. The kind that makes you think “ok, my work here is done”.

Looking closer, on the one-minute candle there were often stop and target inside the same candle.

And what decided which of the two came first wasn’t the market.

It was the backtest.

In the reel there was room for just one reason. Here I’ll give you five, because that clean line usually doesn’t have just one.

1. Stop and target in the same candle

Let’s start with the one from the reel.

A one-minute candle tells you four things: open, high, low, close.

It doesn’t tell you in which order the high and the low came.

If that candle’s low reaches your stop and its high reaches your target, both were touched within that minute.

But which one first?

The candle doesn’t know. And if the candle doesn’t know, neither does the backtest.

So the software has to guess.

MultiCharts and TradingView, for example, by default assume price goes first toward the extreme closest to the open. MetaTrader 5, if you don’t give it real ticks, makes them up.

Each in its own way, but it’s always a hypothesis, and you don’t necessarily know which one yours used.

Now let’s do the math, with round numbers made up on purpose.

One hundred trades, stop and target at the same distance, so every trade is worth roughly 1 R.

Eighty are clear-cut: 42 wins and 38 losses. That’s +4 R. A system that barely gets by.

The other twenty are ambiguous, stop and target in the same candle.

If the backtest counts them all as wins, you close at +24 R. Cover-worthy equity.

If they were actually all losses, you close at -16 R.

Same system, same trades. The difference comes from a hypothesis you didn’t choose and that you may not even know you made.

The tighter your stop and target are relative to the timeframe, the more ambiguous cases you get. And the more ambiguous cases you get, the more the result is decided by the software’s hypothesis instead of the market.

There’s only one real fix: where stop and target fall in the same candle, you go and look at the ticks. Almost every platform has it: Bar Magnifier on MultiCharts and TradingView, “High” order fill resolution on NinjaTrader, “Every tick based on real ticks” on MetaTrader 5.

If you don’t have the ticks, at least count them as losses. If the system holds up even like that, it starts to get interesting.

2. The gifted touch

Second gift, a close relative of the first.

Your limit order is at 100. Price reaches 100 and turns back.

Many backtests, with their default settings, write: filled.

In the real market, when price touches your level and leaves, you’re not necessarily in. There can be other orders ahead of you at the same price, and a single touch isn’t enough to clear them all.

And notice the nasty detail: the touches the backtest gifts you most willingly are exactly the ones where price just grazes you and immediately turns in your favour. In other words, the best trades.

Simple rule so you don’t get fooled: in backtest you count a limit as filled only if price trades through it by at least one tick. You lose a few trades on paper, but the ones left are real.

3. Costs left out “to keep it simple”

I see it all the time, even from good people.

“I’ll add the costs later.”

Then later never comes.

Broker commissions and exchange fees, and for stops and market orders slippage too, meaning the difference between the price you wanted and the one you get. A limit that’s actually sitting in the book won’t fill you worse than your price, at most it won’t fill you, as we saw above. A stop, on the other hand, becomes a market order when it triggers, and that’s where you pay slippage.

On a system that makes two trades a week with a thirty-point target, costs are noise.

On a system that makes ten trades a day with a three-tick target, costs are the system. An average profit per trade of a tick and a half, if you pay one tick between commissions and slippage, loses two thirds along the way.

The test is trivial: take the average profit per trade and put it next to the cost of one round-turn trade. If the two numbers are close, you don’t have a system. You have an elegant way of paying your broker.

4. Peeking into the future

This one is hard to see, because in the code everything looks fine.

The system uses a piece of information or a price that, at the moment it should have made the decision, it didn’t have.

A few examples I’ve seen:

  • the signal is calculated on the candle’s close, but the entry is placed at the open of that same candle;
  • the high or low of the day is used to decide a trade taken mid-morning;
  • an indicator that repaints, meaning it changes past values when new data comes in, and in the backtest always shows you its “hindsight” version;
  • Heikin Ashi candles used as if they were real prices. They’re averages: the open of a Heikin Ashi candle isn’t the price you could have entered at in that moment. If the backtest gets you in there, you’re entering at a price that, in the market, at that instant, didn’t exist.

The alarm bell is always the same: a win rate that’s too high, too steady, with very few bad days. The market isn’t that kind to anyone.

5. Too many knobs

Last one, and maybe the most human.

You have a system with five parameters. Moving average length, stop distance, target distance, start time, end time.

You run the optimizer on two years of data and find the perfect combination.

The problem is you haven’t found the system that works. You’ve found the one that best fits those two years, noise included. The more knobs you have and the more combinations you try, the easier it is for the best one to be best by chance.

This isn’t just my impression. There’s a serious line of research on it.

David Bailey, Marcos López de Prado and two fellow mathematicians showed that, by trying enough variants, it’s relatively easy to find a beautiful backtest even for a strategy with no real edge at all.

And Campbell Harvey and Yan Liu suggest “haircutting” a backtest’s results more, the more tests you ran to get there.

What you do in practice:

  • set aside a chunk of data that you don’t touch while optimizing, and look at it only at the end, once;
  • check whether the parameters close to the best one work almost as well. If the 20-period average is fantastic and the 19 and 21 are a disaster, you haven’t found a system, you’ve found an accident;
  • fewer knobs is better. Every extra parameter is one more place to hide luck.

It happened to me too

I’m not telling you this from up high.

More than once I’ve looked at stunning equity curves, incredible tests, and then redone the math with the right data and found out the system, in reality, didn’t stand up.

The last time was not long ago. I took some backtests done on bars and redid them on ticks, with real costs and honest fills. Some systems that looked great on paper dropped to a profit factor below one.

In other words, they were losing.

It wasn’t pleasant. But finding out with my account would have been a lot less pleasant.

The five questions to ask your backtest

Before you trust a line that goes up, ask it these questions.

  1. How often do stop and target fall in the same candle? And how did the software count them?
  2. Does it count a touched limit as filled? Or does it require price to trade through it?
  3. Are the costs in there? Commissions, and slippage on stops and market orders.
  4. Does the system use something it couldn’t have known at decision time? Closes, daily highs, repainting indicators, candles that aren’t prices.
  5. How many variants did you try before this one? And how does it do on data you never used to optimize?

If after these five the line still goes up, good. But it’s not over.

The last test is run by the market

The most honest backtest in the world is still a hypothesis.

The next step is to run it forward, on demo or with minimum size, and compare trade by trade what the system does with what the backtest said. How many fills are missing, how much slippage you really pay, how many “backtest” trades never actually existed in reality.

For this comparison you need somewhere to log your real trades. If you don’t have one, use the TradingBlog Diary: it’s free, and at the end of the month you have the numbers in front of you instead of having to remember them.

If the gap between paper and reality is small, you’ve got something.

If it’s big, the backtest told you a fairy tale.

Better to know now.

A backtest is a hypothesis, not a result. The result is written by the market.

— tradingblog.itPosta su X

Suerte Amigo!

Tiziano Brunno

Tradingblog

Sources

  • David H. Bailey, Jonathan M. Borwein, Marcos López de Prado, Qiji Jim Zhu, “Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance”, Notices of the American Mathematical Society, 2014.
  • Campbell R. Harvey, Yan Liu, “Backtesting”, The Journal of Portfolio Management, 2015.

Want to put your market reading to the test?

Compete and challenge other traders inside an Arena in a demo environment, with no real capital at risk. Discover the Performance Arena Events by The Thunder Trader.

Discover The Thunder Trader →

Disclaimer: purely informational and educational content. It does not constitute financial advice or an invitation to trade. Trading involves the risk of capital loss.

The hairpin of a deserted racing circuit at night, with dark braking marks running off the track toward the gravel and the tyre wall, under an amber glow on the horizon.

The recovery trade: the one you open for your account, not for the market

Hi trader,

second piece in the series “The mistake I keep seeing”.

Last week we talked about the reflex break even, the cautious move that takes away your best trades.

Today it’s the turn of its nasty cousin.

The one that isn’t born from the fear of losing, but from the need to not have lost.

The scene

Stopped out.

Nothing unusual, it happens. The trade made sense, the market said no.

But it stings.

And while you stare at the red number, a harmless-sounding line starts playing in your head: “come on, I’ll win it back”.

You go back to the chart.

You’re not looking for a setup. You’re looking for an excuse.

And you always find one, because when you look with that kind of hunger the chart hands you ten.

You’re in.

A bit bigger than usual, “so I get it all back in one go”.

With the stop a bit wider, “I’ll let this one breathe”.

On a level that wouldn’t have convinced you with a cool head, “let’s give it a shot”.

And four minutes have passed since the last stop.

Why it feels like the right thing

This isn’t just about anger.

It’s about a way of keeping score that looks logical and isn’t.

When you take a stop, your head doesn’t log “I made a trade and lost”. It logs “I’m down today”. And an “I’m down today” wants to be closed out by the end of today.

The day turns into an account to settle.

The problem is that the day is a unit of measure you made up. The market doesn’t care whether you finish the session flat or in the red.

But you do, a lot.

Behavioural economists call it the break-even effect: after a loss, people tend to accept bets they would normally turn down, as long as those bets offer a chance to get back to even. Richard Thaler and Eric Johnson described it in 1990.

And it’s not just students in a lab.

Joshua Coval and Tyler Shumway studied the locals in the T-Bond futures at the CBOT in 1998, traders on their own account who did this for a living every single day. Those who reached midday with a loss tended to take on more risk in the afternoon, buying at higher prices and selling at lower prices than everyone else. And the prices set by those trades reversed faster than the ones set by traders operating with a clear head.

Professionals, on the floor, who made their living doing this.

So if it has happened to you, you’re not weird. You’re normal. Which doesn’t make it any cheaper.

The signature

I’ve already described the scene, but I want you to recognise it on yourself, not on some imaginary trader.

The recovery trade almost always carries these marks, and usually more than one shows up.

Size goes up. Not because the setup is better. Because the hole to fill is bigger.

The stop gets wider. You tell yourself it’s to give it room. Really, it’s because you couldn’t handle a second stop right now.

The level is weaker. You can tell from the words you use to justify it: “might”, “let’s give it a shot”, “it’s right there anyway”. Words that aren’t anywhere in your plan.

Time gets shorter. Between the last exit and the new entry, minutes go by, sometimes seconds. You haven’t redrawn the map: you’ve just jumped back in, in the same direction or the opposite one.

You watch the P/L, not the price. The question you ask yourself isn’t “where is it going?”. It’s “how much do I still need?”.

If you spot two of them together, you’re not trading.

You’re paying off a debt the market never asked you for.

Where the cost is

Let’s take it step by step, with round numbers.

Say you normally risk 100 euros per trade. You take a stop: minus 100.

You open the recovery trade with double the size and a stop 50% wider. Without noticing, you’re risking 300 euros.

If it goes wrong, you’re at minus 400.

Four normal losing trades, in two operations. And you picked the second one worse than the first.

But that’s not the real cost.

The worst case is when it works

This is the part people underestimate the most.

If the recovery trade goes wrong, at least it hurts. You feel it, you remember it, maybe next time you think twice.

If it works, though, it teaches you something false: that it works.

You took a stop, you jumped back in bigger, you closed flat or green. The day is saved. You almost feel good about yourself, because you “reacted”.

And your brain takes note.

Next time you take a stop, that road will already feel tried and tested.

And since it doesn’t always work, sooner or later the day comes when it goes wrong three times in a row, with the size growing every round. That day you don’t lose a day. You lose a month.

It’s like a driver who loses two places in the pit stop and, on the very next lap, goes for an impossible overtake under braking. Once it comes off, and it becomes the overtake of the century. The other nine times he ends up in the gravel, and that’s where he loses the championship, not in the pit stop.

The opposite mistake

While we’re at it, there’s a flip side here too.

After a stop, some people freeze. The good setup shows up, the real one, and they don’t take it because “today’s not my day”.

That’s not right either.

A sensible trade doesn’t become less sensible because the previous one lost. The market doesn’t know what you did half an hour ago.

The question isn’t “did I just lose?”.

It’s “would I have taken this trade even if the previous one had gone well?”.

If the answer is yes, it’s a trade. If the answer is no, it’s a recovery.

The eye-opening test

Ok, vamos. A small assignment, like last time.

For your next twenty trades, add two things to your journal.

  1. Does this trade come after a loss? Yes or no. And if yes, how many minutes after.
  2. Were size and stop the usual ones? Yes or no.

That’s it.

At the end, split the trades into two groups: the ones that came right after a loss and all the others. Compare the results.

If the first group shows bigger sizes, wider stops and a worse result, you don’t need me to tell you. Your own numbers are telling you.

For this kind of count, memory is the worst ally there is: of your recovery trades, you only remember the ones that saved your day. If you don’t have somewhere to log them, use the TradingBlog Diary: it’s free, it lets you note your emotional state on every trade too, and you look at the numbers instead of remembering them.

And if you recognise yourself more in tilt than in the single trade, that is when recovery trades turn into a streak, here’s the piece on revenge trading with the daily limit and the pause after a stop.

So what do you do?

I know, this time too you’d like the rule.

How many losses I allow myself in a day, and what I do when I hit that number, is another story. It’s part of how I build the whole session, and taken on its own it would be a number to copy without the rest.

For today, one thing is enough.

Next time you take a stop and your hand goes back to the mouse before you’ve finished breathing, stop for a second.

And ask yourself who you’re opening that trade for.

For the market, or for your account.

A trade you open to get back to even is not a trade you open for the market. You open it for your account, and the market does not know.

— tradingblog.itPosta su X

Suerte Amigo!

Tiziano Brunno

Tradingblog

Want to put your market reading to the test?

Compete and challenge other traders inside an Arena in a demo environment, with no real capital at risk. Discover the Performance Arena Events by The Thunder Trader.

Discover The Thunder Trader →

Disclaimer: purely informational and educational content. It does not constitute financial advice or an invitation to trade. Trading involves the risk of capital loss.

A climbing rope secured with steel carabiners to two bolts on a dark rock face, in the haze and backlit in amber.

Buying crypto without getting hurt: how much to put in, how much to risk, where to keep it

Hi trader,

the question I get asked most about crypto isn’t “what should I buy”.

It’s “how much should I put in?“

And I always answer with another question: how much are you willing to lose?

That’s where almost everyone stops. Some people laugh. Some answer “nothing, I’m not buying it to lose money”.

Well, the whole problem is in that answer.

Nobody buys to lose. But if you haven’t decided beforehand how much you can lose, you find out the number afterwards. And you risk finding it out from the market, on the worst day.

Last lesson we saw what moves the price. Today we get practical, and the basic rule is just one: first you decide how much you can lose, then how much you buy. Never the other way round.

Ok, vamos.

First of all: look at what it’s capable of

I’m not asking you to guess where it’s going. I’m asking you to look at where it has already been.

Chart of the bitcoin price in dollars from 1 October 2025 to 3 October 2026 on Coinbase: from the 126,296 dollar high on 6 October 2025 to the 57,718 dollar low on 1 July 2026, a 54% fall, with the 14% one day drop on 5 February 2026 highlighted in red
Bitcoin from 1 October 2025 to today, daily closes on Coinbase. In less than nine months it lost 54% from high to low, and on 5 February 2026 it gave up 14% in a single day.

On 6 October 2025, on Coinbase, bitcoin hit 126,296 dollars.

On 1 July 2026 it hit 57,718. Down 54%.

In between, on 5 February 2026, it lost 14% in a single day. And the next day it got back 12%.

I’m not telling you this to scare you. I’m telling you because these numbers are your account, if you put everything in.

If you’d bought at the top with all your capital, by July you’d have had less than half of it. And not because of a mistake in your analysis: just because that’s how bitcoin moves.

Size comes from risk, not from gut feeling

Let me explain it the way we do it on futures, because it works exactly the same.

One. Decide what slice of your capital you’re willing to lose if you’re wrong. A percentage, not a random number. How much it is, that’s your call: it depends on how much capital you have, what you need it for and how well you sleep at night. What matters is that it’s decided beforehand and written down somewhere.

Two. Decide where you’re wrong. Meaning the price at which your idea no longer holds. That’s the stop.

Three. Only now do you work out how much to buy: risk divided by the stop distance. If you measure the distance as a percentage, you get how much the position is worth; if you measure it in dollars per coin, you get how many coins.

Position sizing scheme: position equals risk divided by stop distance. With a 2% stop the position is 50 times the risk, at 5% 20 times, at 10% 10 times, and in all three cases if you are wrong you lose the risk you set
Same risk, three different stops. With the stop 2% from entry the position can be worth 50 times the risk, at 5% 20 times, at 10% 10 times. If you’re wrong you always lose the same amount: only how much you buy changes.

Look at the figure, because here’s the thing almost nobody has clear.

Risking a certain amount doesn’t mean buying that amount. With a tight stop you can buy more, with a wide stop you have to buy less. If you’re wrong, the loss is the same, plus fees and any slippage on the stop.

One limit: without leverage the position can’t be bigger than the capital you have. If the formula gives you a number bigger than your account, that’s not a green light for leverage: it means the stop is too tight or the risk too high.

And go back to 5 February. With a 2% stop you were out at the first breath that day, and the next day price had already got back 12%. With a wider stop you survive days like that, but you have to buy less. A tight stop lets you buy more, but on a market that does 14% in a day it gets hit for nothing. The ones who get wiped out are the ones who keep the big size and then widen the stop, or don’t set one at all.

And what if you buy with no stop, to hold? That’s a legitimate choice. But then the stop distance is the whole way down to zero. And that’s not a textbook hypothesis: the -54% you saw above isn’t the worst of it, between 2021 and 2022 bitcoin lost 77%, between 2017 and 2018 it lost 84%. So the question becomes: if it halves tomorrow, how much of my capital goes with it? That number has to be one you can lose without your life changing.

I’ve been doing this calculation by hand on futures for years. On crypto, with quantities full of decimals and the euro dollar exchange rate in the middle, doing it by hand is how you get it wrong. That’s why we built the Crypto Risk Manager: you enter capital, risk percentage, entry and stop, and it tells you how much to buy. If you use leverage, it also warns you when the liquidation price falls before your stop, meaning when the stop you’ve set will never get hit. It’s free, and it takes thirty seconds. A lot less than it takes to blow an account on a size picked on feel.

I won’t repeat myself on leverage: leverage and liquidations, how you get wiped out. I’ll just tell you that to buy a crypto you don’t need leverage. It’s for people who want to do more with the capital they have, and they pay for that more with the risk of getting out before they’d decided to.

Where you keep what you’ve bought

Size protects you from price. But price isn’t the only way to lose money with crypto.

Remember the distinction we’ve been carrying since the first lesson: the ledger is one thing, whoever guards your access to it is another. Nobody has managed to rewrite the bitcoin ledger so far. The ones that get hacked all the time are exchanges, custody services and keys.

If you leave your crypto on the exchange, what you have is a row in its database: it owes you coins. If the exchange goes bust, the problem becomes yours. I covered this properly in the exchange, the place where you buy.

And it doesn’t take a collapse. On 21 February 2025, according to the FBI, around 1.5 billion dollars in crypto was stolen from a big exchange. The blockchain had nothing to do with it: what got hacked was the system the exchange used to sign withdrawals from its own holdings. That time it said it had covered its customers. With FTX, which collapsed in November 2022, the first repayments, for small claims, started in February 2025. And they were calculated in dollars, at the price on the day of the collapse: if you had bitcoin, you got back what it was worth then plus interest, not the bitcoin.

If you send them to an address only you hold the keys to, on the ledger they stay yours and no exchange owes you anything anymore. But with the keys, all the responsibility passes to you. How not to lose them and how not to give them away is in keys and wallets.

Which of the two you choose is your business. But custody is a risk decision just like size, and it has to be made beforehand, not on the day everyone rushes to withdraw.

What you do starting tomorrow morning

Write down the percentage. How much of your capital you’re willing to lose on one trade. One line, before you open the exchange.

Decide the stop before the size. If you don’t know where you’re wrong, you don’t know how much to buy.

Decide who holds the keys before you buy. And if you leave your crypto on the exchange, do it knowing that what you have is a company’s promise.

Where we go next time

Last lesson of the series. We’ve put a limit on what price can take from you, and chosen who you trust with the keys. What’s left is the sneakiest thing of all: the scams that still work. Signatures that authorize someone else to drain your address, fake support, projects that vanish with the money.

How much should I put in is the wrong question. The right one is how much am I willing to lose, and you ask it before you click buy.

— tradingblog.itPosta su X

Back to the start.

To the people who answer “nothing, I’m not buying it to lose money” I always say the same thing.

Perfect. Then write down how much. Because the market will ask you for that number anyway.

Only, if you didn’t write it down, it picks it for you.

Suerte Amigo!

Tiziano Brunno

Tradingblog

Want to put your market reading to the test?

Compete and challenge other traders inside an Arena in a demo environment, with no real capital at risk. Discover the Performance Arena Events by The Thunder Trader.

Discover The Thunder Trader →


Disclaimer: purely informational and educational content. It does not constitute financial advice or an invitation to trade. Trading involves the risk of capital loss.