Stock Trading Strategies: Comparing Starbucks and Alphabet

Need More Help? Book Your FREE Strategy Session With Our Team Today!

We’ll help you map out a plan to fix the problems in your trading and get you to the next level. Answer a few questions on our application and then choose a time that works for you.

Can systematic trading be applied to individual stocks? In this article, we analyze two systematic stock trading strategies from our portfolio developed for Starbucks (SBUX) and Alphabet (GOOG). Both are long-only systems, but they use different trading approaches.

The first uses mean reversion to capture recoveries after short-term price declines. The second uses breakout entries to capture the continuation of upward price moves.

By examining their trading rules and backtest results, we will see how these approaches have performed over time and what they can tell us about evaluating a trading strategy for individual stocks instead of stock indexes.

Starbucks: Buying After a Short-Term Decline

The first strategy trades Starbucks Corporation (SBUX). It runs on 30-minute bars and uses a long-only mean-reversion approach, seeking to capture a recovery after a price decline.

Specifically, the strategy places a limit order at the lowest price of the previous four trading sessions. If the price falls to that level, the system opens a long position. The goal is to buy the stock after a short-term decline and benefit from a subsequent recovery.

Once a position is open, the primary exit follows the opposite logic. The position is closed when the price reaches the highest price of the previous 15 sessions. This allows the strategy to target a broader recovery than the short-term decline used to trigger the entry.

Each trade uses a reference allocation of $10,000, which determines the number of shares to buy based on the stock price.

The strategy also excludes new entries on Wednesdays and limits each position to 260 30-minute bars. Once that limit is reached, the position is closed. A stop loss and a profit target complete the risk management rules.

SBUX Backtest Results: Equity Curve and Annual Performance

Looking at the equity curve in Figure 1, the first notable feature is its overall upward trajectory during the period analyzed. The curve includes several drawdowns, meaning declines from previous equity highs, followed by recoveries.

Growth is clearly not linear. More challenging periods appear around 2014, between 2021 and 2022, and again in 2024. In the backtest, the strategy recovered its previous equity highs after each of these periods and resumed its upward trajectory.

systematic stock trading strategies on starbucks
Figure 1 – Backtest equity curve for the mean-reversion strategy on Starbucks (SBUX).

Figure 2 provides a closer look at the strategy’s trade statistics. The backtest includes 329 trades, all long, with a win rate of 59.27%.

The average trade, meaning the average profit or loss per trade, is approximately $85.77. This corresponds to roughly 0.86% of the $10,000 reference allocation per trade. This percentage describes the average result per trade, not an annual return.

Figure 2 – Trade analysis for the SBUX strategy’s 329 trades, including win rate and average profit or loss per trade.

Figure 3 shows the strategy’s performance year by year. During the period analyzed, 2014 is the only year with a loss, while all other annual periods shown in the backtest are positive.

Performance is not uniform, however. Years such as 2019 and 2020 contributed significantly to the overall result, while periods such as 2016 and 2023 were considerably flatter.

This distribution is worth examining because positive results appear across many years of the test, although their contributions to the equity curve’s growth vary.

Figure 3 – Annual backtest results for the SBUX strategy.

Alphabet: Trading the Continuation of an Upward Move

The second strategy trades Alphabet (GOOG), Google’s parent company. Once again, the system trades an individual stock, but its logic differs from the Starbucks strategy.

This approach focuses on the continuation of an upward price move. The strategy looks for days when the stock opens above the previous session’s closing price and continues to show strength during the trading day. When these conditions are met, the system sets up a long entry on a break above the previous session’s high.

The idea is to wait for further confirmation: the price must first show strength relative to the previous day and then break above a significant level.

Once a position is open, the strategy prevents additional entries during the same session. It also uses a dynamic exit based on the lows of previous sessions, closing the trade if the move loses momentum.

A predefined stop loss and profit target supplement these rules. As with the Starbucks strategy, the number of shares is adjusted to the stock price using a reference allocation of $10,000 per trade.

GOOG Backtest Results: Can a Low Win Rate Be Enough?

The equity curve for this strategy also shows an overall upward trajectory over the long term. As Figure 4 illustrates, from 2010 through 2026, the strategy alternates between periods of strong growth and periods of flatter performance.

In particular, the curve remains nearly unchanged between 2022 and 2023 before returning to more pronounced growth in subsequent years.

Figure 4 – Backtest equity curve for the bullish continuation strategy on Alphabet (GOOG), from 2010 through 2026.

Figure 5 highlights an important feature of this strategy: only 36.33% of its 779 trades are profitable.

That win rate is substantially lower than the Starbucks strategy’s, but it is accompanied by a favorable ratio of average winning trade to average losing trade. The average winning trade generates approximately $268, while the average losing trade loses slightly more than $100. The ratio between the two is therefore approximately 2.6.

This example shows why win rate alone is not enough to evaluate a trading strategy. We also need to consider how much the strategy makes on winning trades and how much it loses on losing trades.

The observed behavior is consistent with the system’s logic: many trades close with relatively limited losses when the move fails to continue, while trades that develop successfully can generate substantially larger profits.

Figure 5. Trade analysis for the GOOG strategy’s 779 trades, with a 36.33% win rate and an average win-to-average loss ratio of approximately 2.6.

Finally, Figure 6 breaks down the results by year. Apart from 2010, which is also a partial year in the test, every subsequent annual period shown in the backtest is positive.

Performance still varies considerably. Profits were very modest in 2018, 2022, and 2023, while years such as 2014, 2017, 2019, 2021, and 2024 made substantially larger contributions to overall growth.

systematic stock trading strategies for google
Figure 6 – Annual backtest results for the GOOG strategy.

Stock Trading Strategies: Comparing the Two Trading Approaches

Both stock trading strategies are long-only and use the same reference allocation to size their positions. What differs is the type of price move they seek to capture.

FeatureStarbucks (SBUX)Alphabet (GOOG)
Trading approachMean reversionBullish continuation with a breakout entry
DirectionLong onlyLong only
EntryLimit order at the lowest price of the previous four sessionsBreak above the previous session’s high when the strength conditions are met
Primary exitHighest price of the previous 15 sessionsDynamic exit based on the lows of previous sessions
Reference allocation per trade$10,000$10,000
Trades in the backtest329779
Win rate59.27%36.33%

The Starbucks system buys after a period of weakness, seeking to capture a recovery. The Alphabet system waits for signs of strength and further bullish confirmation before entering.

Their win rates also differ. The comparison shows that strategies with different characteristics can both produce positive historical results. Win rate needs to be considered alongside other metrics, the distribution of results, and the trading rules.

What These Backtests Tell Us About Systematic Stock Trading Strategies

In this article, we examined two different stock trading strategies. For Starbucks, we used a mean-reversion approach designed to capture recoveries after temporary weakness. For Alphabet, we used a bullish continuation approach, entering when the stock showed strength and broke above the previous session’s high.

Despite their different approaches, both strategies produced interesting backtest results. These examples illustrate how systematic trading rules can be developed and tested for individual stocks as well as futures.

Historical results are a starting point for evaluation, not a guarantee of future performance. To assess whether a strategy is suitable for live trading, we need to examine its robustness, the impact of trading costs, and its performance on data that was not used during development.

The central task is to identify a trading idea, turn it into testable rules, and analyze its behavior over time while accounting for the characteristics of the stock being traded.

Transcription

Need More Help? Book Your FREE Strategy Session With Our Team Today!

We’ll help you map out a plan to fix the problems in your trading and get you to the next level. Answer a few questions on our application and then choose a time that works for you.

Related Posts