Backtest #1 — Trailing stop, good idea or not?
Backtest #1 — Trailing stop, good idea or not? When designing a trading strategy, one of the important questions is: Is trailing stop-loss a good idea, or …
Backtest #1 — Trailing stop, good idea or not?
When designing a trading strategy, one of the important questions is:
Is trailing stop-loss a good idea, or can it silently kill your trades?
In this article, we’ll try to answer that question by testing a moving average-based strategy on the EUR/USD forex pair. We’ll explore how trailing stops behave in real-world trades, what kind of strategies they work best with, and whether it makes sense to combine them with take-profit targets.
First — What Is a Trailing Stop-Loss?
Let’s start with the basics.
A trailing stop-loss is a dynamic stop-loss that follows your trade as it moves in your favor. Unlike a traditional stop-loss, which stays fixed at a predefined level, a trailing stop moves up (or down, in the case of short trades) as the price goes in your direction, but never goes back.
So if you’re in a long trade and the price rises, your stop-loss moves up too — “trailing” behind the price by a fixed distance. But if the price starts falling, the stop stays in place and might eventually close your trade to protect profits.

This is why many traders use trailing stops: to lock in gains gradually, while still leaving room for the trend to develop.
Which Strategies Benefit from a Trailing Stop?
The effectiveness of a trailing stop-loss depends heavily on the type of strategy you’re using.
✅ Works well with trend-following strategies
These strategies aim to ride big, extended moves in the market — the kind of move where the price doesn’t just hit your take-profit, it keeps running.
In these cases, trailing stops help you stay in the trade longer than you otherwise would with a fixed take-profit. Instead of guessing where the price might reverse, you let the market decide — and exit only when the move has clearly run out of steam.
❌ Less effective for mean-reversion strategies
These strategies aim to catch small, quick price reversals. They work best when price “bounces” back to a mean or average value.
Trailing stops here can actually cut profits short, because price tends to oscillate quickly, triggering the trailing stop before hitting a meaningful target. For these strategies, a tight, static stop-loss and a fixed take-profit often make more sense.
Testing the Trailing Stop with a Moving Average Strategy on EUR/USD
To put theory into practice, I’ve tested a moving average crossover strategy on the EUR/USD forex pair — both with and without a trailing stop. We will be using MetaTrader5 for this.
First, what are the parameters?

Can You Take Profit with a Trailing Stop?
Yes — you can use both a take-profit and a trailing stop in the same trade. Many trading platforms allow you to configure this easily.
However, if you’re using a trailing stop, the take-profit should usually be set very far away — more like a safety net than a real target. This way, in case of an unexpected surge (e.g. due to news or overnight gaps), your position still gets closed at a profit.
That said, the core idea behind a trailing stop is to not limit your upside. Instead of guessing the perfect take-profit level, you’re letting profits run and only exiting when the market starts moving against you.
Final Thoughts
Trailing stops are a powerful tool when used with the right type of strategy. They work best with trend-following systems where the market moves in sustained directions. Used carelessly — especially in choppy, sideways markets — they can do more harm than good.
So the real answer to the question “Should you use a trailing stop?” is:
It depends on your strategy. But if you’re riding trends, it’s one of the best tools you can use.
Let’s connect!
Thanks for reading! If you want to develop software solutions in finance space, feel free to contact me at lukasavic18@gmail.com. I’m open to consultations, collaborations, or interesting technical challenges.
Disclaimer:
This article is for educational purposes only and does not constitute financial advice. Trading in financial markets involves significant risk and may result in the loss of your capital. Past performance is not indicative of future results. You are solely responsible for your trading decisions. Always conduct your own research and consult with a qualified financial advisor before making any trading decisions.


