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

Our stochastic momentum strategy turned $100,000 into $520,065 trading Meta Platforms (META), a return of 420.07% after fees versus 469.26% for buy and hold over the same period. The strategy finished behind on total return, but its deepest drawdown was 27.23%, compared with 76.74% for buy and hold. For me, that much smaller drawdown makes the difference in returns more than acceptable.
We tested a simple idea: buy when negative momentum begins to recover, then exit at a fixed profit target or stop loss. The strategy completed 139 trades, won 74.10% of them and was invested for 54.14% of the trading sessions. Spending the rest of the time in cash meant missing some of META’s gains, but it also meant avoiding some of the falls along the way.
We used ten years of daily open, high, low and close prices, from 7 October 2016 through 6 October 2026. The indicator needs the first 13 sessions before we can use it, so both the strategy and the buy and hold comparison start on 26 October 2016. Prices are adjusted for corporate actions, including dividends, which means we don’t count dividends again as separate cash payments.
What the momentum signal measures
The Stochastic Momentum Index, or SMI, looks at where META’s closing price sits relative to the midpoint of its recent trading range. Here, we use the highest high and lowest low over ten sessions, then smooth the result to reduce some of the daily noise. There are different ways to calculate SMI; the code below shows the particular version we tested.
We then compare the SMI with its five session average and smooth the difference to produce the histogram. We buy when that histogram is below zero but rising. The idea is to look for an early improvement in momentum rather than wait for the histogram to cross back above zero. Several consecutive sessions can meet that condition, so a signal isn’t necessarily a one day event.
high = data.High.rolling(10).max()low = data.Low.rolling(10).min()distance = data.Close - (high + low) / 2smoothed = distance.ewm(span=3).mean().ewm(span=3).mean()smi = 100 * smoothed / (high - low).ewm(span=3).mean()average = smi.rolling(5).mean()histogram = (smi - average).ewm(span=9).mean()
# After dropping indicator warmup rows:signal = (histogram < 0) & (histogram > histogram.shift(1))
The chart puts those signals alongside META’s price, with the SMI, its average and the histogram underneath. White dots mark qualifying signals just below the daily low. They show when the conditions were met, not the price we bought at. Some don’t lead to trades because we already hold a position.

How the strategy buys and sells
When a signal appears at the close, we buy META at the following session’s opening price. We only hold one position at a time, so new signals are ignored until that trade has finished. Each purchase uses approximately 99% of available equity, buying as many whole shares as that allows after the entry fee. We don’t borrow to increase the position or sell short, and there’s no time limit on how long a trade can stay open.
The stop loss sits 10% below the signal day’s close and the profit target 4.5% above it. Both remain fixed throughout the trade. The important detail is that they’re measured from the signal close, while we buy at the next open. If META gaps overnight, the actual distance from our purchase price to the stop or target can be quite different.
# In next(), after the current session has closed:price = float(self.data.Close[-1])if self.signal[-1] == 1 and not self.position: self.buy(size=0.99, sl=0.90 * price, tp=1.045 * price)
# Backtest settings:# cash=100_000, margin=1, exclusive_orders=True,# commission=0.0005, trade_on_close=False,# finalize_trades=False
That produced an unusual result in six trades: META opened above the profit target before we had even bought it. Under the backtest’s execution assumptions, we bought and immediately sold at the same opening price, losing 0.10% to the two fees. We’ve kept those trades because they follow the rules we tested. Reaching a profit target sounds like a successful outcome, but in these cases the opportunity had already passed before the entry.
The backtest results

Buying and holding finished with $569,259, against the strategy’s $520,065. That left the strategy $49,194 behind, or 49.19 percentage points in return terms. If we judge the test purely by the final balance, buy and hold wins. The chart below shows the journey to those balances, starting both accounts at $100,000 on the same date and including gains and losses on positions that were still open.

There were 103 winning trades and 36 losers, giving the strategy its 74.10% win rate. But that headline number needs some context. The average winner made 4.68% after fees, while the average loser cost 7.97%. This strategy has to win frequently. The target is much closer to the signal close than the stop, so we take profits on relatively small rebounds while allowing losing trades considerably more room to fall.
The best trade made 11.63%, despite the profit target being only 4.5% above the signal close. It opened on 18 March 2020 after META fell below the previous close, then reached its target the following day. Buying at that lower opening price left more room between the entry and the unchanged target. The longest completed trade lasted 83 calendar days, and there were no positions left open at the end of the test.
A smaller drawdown, but the stop is not a loss limit
The strategy’s maximum drawdown was 27.23%, compared with 76.74% for buy and hold, a difference of 49.50 percentage points. That is a substantial reduction in the loss an investor would have had to endure from a previous account peak. These figures include unrealised gains and losses on open positions, using the account’s value at each daily close. Falls within the trading day could have been deeper.

The worst trade lost 18.56% after fees. It opened on 5 April 2024 at an adjusted price of $512.50, with its stop at $455.95. On 25 April the shares opened at $417.85, below the stop, and that opening price became the exit price in the test. A stop order can trigger an exit when its level is crossed; it can’t create a buyer at a price the market has already passed. Calling this a strategy with a maximum trade loss of 10% would misrepresent what happened.
Daily prices can’t tell us which level was reached first if both the stop and target were touched during the same session. In those cases, the test assumes the stop was hit first. A trade can also open and close on the same day, as those six trades that lost only their fees illustrate. Every strategy trade includes a 0.05% entry fee and a 0.05% exit fee. Beyond allowing for opening gaps, we haven’t included a separate allowance for spreads or slippage.
Closed trade profit and the order of returns
The 139 completed trades made $420,065 in net profit after $31,335 in entry and exit commissions. The chart adds each profit or loss when the trade closes. Because we finished the test entirely in cash, that realised profit plus the original $100,000 equals the final account balance. While a trade is still open, however, the account’s value can rise or fall without anything changing on this closed trade profit chart.

We also wanted to see how different the experience might have felt if exactly the same winning and losing trades had arrived in a different order. To illustrate this, we shuffled the 139 completed trades into 100 different sequences. Some make a much less comfortable start than others, even though they all contain the same trades. Each line adds up the individual percentage returns after fees.

Every line finishes at 195.05 percentage points, which is the sum of those individual returns. That is different from the account’s 420.07% gain because the account reinvests a changing balance, while this illustration simply adds percentages. It helps show why the order of wins and losses matters to the experience of following a strategy. It doesn’t adjust position sizes or include losses while trades are open, so I wouldn’t use these lines to estimate future account drawdown.
What I take from this test
For me, the strongest result is the smaller drawdown while retaining a large part of META’s long term gain. Buy and hold still finished ahead, and a 27.23% account decline would hardly have been comfortable. But I find that trade off more useful than the 74.10% win rate on its own. The losses were larger than the wins, and the worst trade shows how an overnight gap can take a loss well beyond the intended stop.
We used the same parameters throughout the historical sample. We’ve only tested one stock, with no separate out of sample validation, so there’s no basis here for claiming the results will continue. What I’d want to investigate next is whether the reduction in drawdown holds up across other periods and instruments, keeping the same trading rules and costs.
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

03-Oct-2026

01-Oct-2026

30-Sept-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