We collect cookies to improve your browsing experience. By using our site, you agree to ourPrivacy Policy andTerms of Service.

Can a simple set of price rules beat buying and holding Amazon shares? We tested a Donchian channel strategy on Amazon (AMZN), using a lookback of 86 sessions to identify two very different buying opportunities. The strategy returned more than buy and hold while cutting the maximum drawdown almost in half. What caught my attention, though, is how it achieved that, because the two sides of the strategy behave very differently.
Starting with $100,000, the strategy finished with $835,017 after trading fees, a return of 735.02%. Buying and holding AMZN over the same measured period returned 487.34%, taking the same starting balance to $587,344 before transaction fees. The strategy completed 57 trades and was in the market for 51.17% of the test. It spent almost half the period in cash and still finished well ahead of simply holding Amazon.
We took the last ten years of daily OHLC data for AMZN and tested two ways of buying the stock using Donchian channels: a breakout above the recent range and a fall below it. Both use the same channel, but the entry and exit rules lead to quite different results.
What the Amazon strategy actually does
A Donchian channel is a simple way of measuring where the current price sits within its recent range. Here, the upper line is the highest closing price over the previous 86 sessions and the lower line is the lowest closing price. We’re using closing prices rather than the daily highs and lows you’ll sometimes see used with Donchian channels, which changes exactly when the signals occur.
There are two entry signals, and both buy AMZN. The first occurs when the price moves above the previous upper channel after the preceding close was below its earlier upper boundary, essentially a breakout to a new closing high over 86 sessions. The second does the opposite: it buys when the price drops below the previous lower channel, buying into a sell off and looking for a rebound. The strategy never shorts the stock.
upper = close.rolling(86).max()lower = close.rolling(86).min()
breakout = (close.shift(1) < upper.shift(2)) & (close > upper.shift(1))breakdown = (close.shift(1) > lower.shift(2)) & (close < lower.shift(1))
signal = np.select([breakout, breakdown], [1, 2], default=0)
The shifted channel values mean the strategy isn’t accidentally using information that wasn’t available when the signal occurred. Once a signal appears at the close, the order is submitted for the following session’s open. New signals are ignored while a position is already open. The chart below shows every channel crossing signal, including those that don’t become trades because the strategy already owns Amazon.

Two entries, two different exit rules
For an upper channel breakout, the strategy sets a profit target 5% above the signal day’s close. There is no stop loss and no maximum holding period. So if Amazon falls after the entry, the strategy simply remains invested and waits for the shares to recover far enough to hit the target. As we’ll see later, that has a big influence on the results.
For a lower channel break, the rules are different. The profit target is 10% above the signal close, with a stop 5% below it. Both types of trade commit approximately 99% of available equity, subject to whole share sizing and fees, and neither uses leverage. Because the actual purchase normally takes place at the following day’s open, the eventual distance between the entry price and the stop or target won’t necessarily be exactly 5% or 10%. Overnight gaps can widen that difference further.
# In next(), with price equal to the signal day's closing price:if self.signal[-1] == 1 and not self.position: self.buy(size=0.99, tp=1.05 * price)
elif self.signal[-1] == 2 and not self.position: self.buy(size=0.99, sl=0.95 * price, tp=1.10 * price)
# Backtest settings:# cash=100_000, margin=1, exclusive_orders=True,# commission=0.0005, trade_on_close=False
The backtest results

The difference in total return is sizeable: 735.02% for the strategy compared with 487.34% from buying and holding Amazon, a gap of 247.67 percentage points. The equity chart below shows how the two got there. Both lines start from zero and the strategy’s value changes while trades are still open, so we’re comparing the value of the account each day rather than only adding profits when trades close.

Of the 57 completed trades, 48 made money and nine lost money, producing an 84.21% win rate. The best trade returned 13.06% after fees and the worst lost 6.08%. The longest completed trade lasted 271 calendar days. Some of those winners required a lot more patience than others, and there was still a losing position open at the end of the test.
The two entry types tell quite different stories. All 40 completed upper channel breakout trades closed at a profit, contributing around $742,050 after fees. The lower channel entries had eight winners from 17 completed trades and added another $91,797. These are dollar profits from the same compounding account, so later trades can contribute far more dollars than an identical percentage return made near the beginning.
The 40 out of 40 record only counts completed breakout trades. Those trades have no stop loss or time limit, so a losing position can remain open while the strategy waits for Amazon to recover. That was happening at the end of this test: a breakout trade opened on 4 August was still held, reducing account equity by $98,830 including its entry fee. The closed trade win rate leaves that position out. It’s a clear example of why I wouldn’t judge this strategy by its win rate alone.
The drawdown is just as important
The strategy’s maximum drawdown was 29.64%, compared with 56.15% for buying and holding Amazon. That’s a very large reduction and, for me, one of the more interesting results in the test. A 29.64% drawdown is hardly comfortable, but Amazon shareholders had to sit through almost twice that.

The drawdown calculation uses the value of open positions at each daily close, not just the results of completed trades. That’s particularly relevant to the breakout side of the strategy, where there is no stop loss and a trade can be underwater for some time before eventually recovering. The chart won’t capture every intraday move, so losses during an individual session could have been larger than the closing equity drawdown shown here.
Profit from closed trades and the order of returns
The realised profit chart records the profit or loss from each trade on the day it closes. Across all 57 completed trades, those net profits total $833,848. Adding the original $100,000 gives a realised balance of $933,848. The position still open at the end reduced account equity by $98,830 including its entry fee, leaving the final account value at $835,017. That is why the realised profit chart and the account equity chart finish at different values.

A Monte Carlo simulation is performed on the trade results, with the trade order randomised 100 times to create individual raw dollar return graphs, displayed together on the same chart. This helps to visualise the risk of losses arriving early. We also show a separate path with all losing trades first, so that case is visible rather than left to chance. Multiple lines dropping below zero show how different trade orders could leave the account below its starting balance.

Each line uses the same profits and losses after fees, so every path finishes at $833,848 in cumulative profit. The extra losses first path shows the largest initial loss possible from these fixed trade outcomes. This exercise doesn’t recalculate position sizes, include the trade still open or capture losses experienced within a trade. It shows the effect of trade order, rather than predicting future returns.
How the results are calculated
The account starts with $100,000 and commits approximately 99% of available equity to each position, without leverage or short selling. The total broker fee is 0.1%, charged as 0.05% on entry and 0.05% on exit, with those costs already included in the strategy results shown here. The buy and hold comparison doesn’t include transaction fees.
The results are based on historical performance and haven’t been tested against every possible variation of the strategy. Different lookback periods, profit targets or risk controls could produce very different results. As ever, past backtested performance doesn’t guarantee future results.
What I take from it
For me, the most interesting result is that a relatively simple strategy, invested only 51.17% of the time, finished ahead of buying and holding Amazon while experiencing a much smaller maximum drawdown. The breakout side’s perfect record on completed trades is less convincing once we include the losing position still open at the end. I’d want to test some form of risk control before relying on that win rate.
Our next strategy article will be published on Wednesday. Until then, we wish you well for the week ahead. If you have any questions about the strategy or the results, please get in touch. We’re always happy to hear from you.

01-Dec-2026

30-Nov-2026

21-Nov-2026

14-Nov-2026

07-Nov-2026

04-Nov-2026

02-Nov-2026

01-Nov-2026

28-Oct-2026

24-Oct-2026

17-Oct-2026

14-Oct-2026

10-Oct-2026

07-Oct-2026

03-Oct-2026

01-Oct-2026

01-Sept-2026

21-Jun-2026

21-Jun-2026

14-Jun-2026

08-Jun-2026

01-Jun-2026

24-May-2026

17-May-2026

10-May-2026

03-May-2026

26-Apr-2026