Playbooks

Magnificent 7 Equal Weight: 300% Backtest With Monthly Rebalancing

Published

The simplest strategy in this Playbook may also be the most useful to study. An AlphaPilot user split the account evenly across the seven largest US tech stocks and kept it that way. Each month the strategy resets the weights. It never forecasts prices and never moves to cash. From January 2023 to November 2026, $10,000 grew to about $39,989.

How the strategy works

The strategy trades daily-bar perpetual contracts that track seven stocks: Apple, Microsoft, Alphabet, Amazon, Nvidia, Meta and Tesla. All contracts settle in USDC. There are only three rules:

  1. Buy all seven. On the first bar, the strategy puts 96% of equity into the seven stocks in equal parts. The other 4% stays in cash as a buffer.
  2. Leave them alone. On most days the strategy does nothing. Prices move, so the weights drift away from equal.
  3. Reset once a month. On the first Monday of each month (a Monday on day 1 to 7), the strategy rebalances. It sells part of the stocks that have grown above their share and buys more of the stocks that have fallen below it.

Each stock gets the same target weight:

wi=0.967≈0.137for each of the 7 stocksw_i = \frac{0.96}{7} \approx 0.137 \quad \text{for each of the 7 stocks}
Cash 4% ↓ AAPL MSFT GOOGL AMZN NVDA META TSLA 13.7% 13.7% 13.7% 13.7% 13.7% 13.7% 13.7% 96% invested, split equally
The target portfolio. Every stock gets the same weight, whatever its size, price or recent performance.
Before: weights drift After: reset to 13.7% trim top up → end of a month first Monday of the next month
Illustrative numbers, not from the backtest. The bars from left to right are AAPL, MSFT, GOOGL, AMZN, NVDA, META and TSLA. The dashed line is the 13.7% target. A stock that ran up is trimmed, and a stock that lagged is topped up.

Here is the complete strategy code:

class Mag7EqualWeightBull(Strategy):
    """Plain equal weight, always invested,
    monthly rebalancing."""

    gross: float = 0.96

    def on_data(self, bars):
        held = any(self.get_pos(s) for s in bars)
        dt = next(iter(bars.values())).datetime
        if held and not (dt.day <= 7
                         and dt.weekday() == 0):
            return
        w = self.gross / len(bars)
        self.rebalance({s: w for s in bars})

Backtest results

Daily bars, 1 January 2023 to 19 November 2026, starting capital $10,000.

+299.89%

Annual return

+42.83%

1.54

Max drawdown

28.43%

Total return+299.9% ($10,000 → about $39,989)
Annual return+42.8%
Sharpe ratio1.54
Maximum drawdown−28.4%
Benchmark return+322.4%
Fees−0.26%
Funding0.0%
Average long exposure96.1%
Trades317 (about 7 per month)
Positive months32 of 47
Best / worst month+20.2% (Jan 2023) / −9.9% (Mar 2025)
+102.6% +58.5% +24.5% 0.0% 2023 2024 2025 2026*
Return by calendar year, compounded from the monthly returns. *2026 runs to 19 November. Each year earned less than the year before.
+20% +10% 0% −10% 2023 2024 2025 2026
All 47 monthly returns. 2023 had the largest gains. Since 2025, falling months come more often and are larger.

Three points stand out.

  • The returns are strong, and so are the losses. A Sharpe ratio of 1.54 is high for a portfolio that holds only stocks. Even so, the portfolio fell 28.4% from its peak at the worst point. The worst two-month stretch at month ends was February–March 2025, at −16.7%. Losses within a month took the drawdown deeper.
  • Each year earned less than the one before. The strategy doubled the account in 2023 and then made +58.5%, +24.5% and about 0% in 2026. The rules stayed the same, so the change came from the market.
  • It slightly trailed its benchmark. The strategy returned +299.9% and the benchmark +322.4%. The rules have a cost, and the next section explains it.

Why it works

1. It holds the stocks that led the market. Most of the return is market exposure to seven companies that drove US stocks in this period. The strategy was about 96% long all the time. For that reason it caught every rally, including the AI rally of 2023, in full. It also took every sell-off in full. Its edge is that it never sold out of fear.

2. Equal weight spreads the risk. The seven stocks tend to move together, but they are not the same. Nvidia and Tesla can rise or fall 10% in a week when Microsoft barely moves. A 13.7% cap at each reset keeps any one stock from taking over the portfolio. This spread of risk helps explain why the Sharpe ratio is high.

3. It is almost free to run. The strategy needs only one rebalance per month and about seven orders each time. Fees cost just 0.26% over almost four years. The backtest recorded no funding. On live perpetual contracts, funding payments can add to returns or take from them.

4. Rebalancing works both ways. At each reset the strategy sells some of the recent winner. When leadership rotates between stocks, that sale happens near a peak and adds return. When one stock keeps running, the sale comes too early. This trade-off is a likely reason the strategy finished behind the benchmark. The 4% cash buffer also reduces returns a little in a rising market.

Leaders take turns One leader keeps running A/B A B Trims sell near peaks: helps Trims sell too early: hurts
A conceptual picture of two stocks, not backtest data. Dashed lines mark monthly resets. Equal weighting gains when leadership rotates and loses some return when one stock keeps winning.
Benchmark Strategy +322.4% +299.9%
Total return over the full backtest. The strategy gave up about 22 percentage points in exchange for simple, low-cost, rule-based risk spreading.

Ideas to try next

This strategy is a clean baseline. Change one rule, compare the result with this page, and you have your own strategy. Here are two starting points. Neither has been tested yet.

1. Add a trend filter to cut the drawdowns

The strategy held all seven stocks through every sell-off. A simple trend filter could leave a stock's slot in cash while that stock is below its 100-day average. The goal is a smaller maximum drawdown than 28.4% while keeping most of the upside. The risk is that the filter exits late and buys back late.

2. Let winners run with drift bands

Monthly resets trimmed the leaders every time, and the strategy trailed its benchmark. Another approach is to rebalance only when a weight drifts far from target. Winners then have more room to compound, and the strategy trades less. The cost is that one stock can grow to a larger share of the risk.

This strategy has three rules, no forecasts and no indicators. A simple, clear rule set can carry a strategy a long way, and it gives you a solid base to build your own.

Built by an AlphaPilot user. Historical backtest results do not predict future returns. Not investment advice.