Playbooks

Three-MA Crypto Trend With a Funding Filter: +172.7% on BTC and ETH

Published

The strategy trades the BTC and ETH perpetuals on daily bars. It asks three trend questions about each coin, and it takes a position only when all three answers agree. It also checks the funding rate before it trades, and it sizes each position by how volatile the coin is.

The backtest ran from April 2023 to November 2026. It turned $10,000 into about $27,300, a return of +172.7%. The buy-and-hold benchmark returned +56.3% over the same period. The largest drawdown was 16.0%.

How it works

1. Three trend signals must agree

Each day, the strategy compares the closing price of each coin with its 30-day, 60-day and 120-day simple moving averages. Each comparison gives one signal:

  • +1 if the price is above the average.
  • −1 if the price is below the average.
sk=sign⁡(P−MAk),k∈{30, 60, 120}s_k = \operatorname{sign}\left(P - \mathrm{MA}_k\right), \quad k \in \{30,\ 60,\ 120\}

All three signals at +1 means an uptrend, so the strategy goes long. All three at −1 means a downtrend, so it goes short. In any other case it holds no position.

Uptrend Mixed Downtrend Price vs 30-day avg Price vs 60-day avg Price vs 120-day avg +1 +1 +1 +1 +1 −1 −1 −1 −1 Position LONG FLAT SHORT
The trend vote. One disagreeing signal is enough to keep the coin flat.

2. A funding check before each trade

Perpetual futures charge funding between longs and shorts. The strategy averages the funding rate over the last three bars and converts that average to a yearly rate:

fyear=8760×funding‾3f_{\text{year}} = 8760 \times \overline{\text{funding}}_{3}
  • Longs: the strategy skips a long when yearly funding is above 40%. Funding that high means the long side is crowded and expensive to hold.
  • Shorts: the strategy skips a short when funding is negative. Negative funding means the shorts pay the longs, so the strategy only shorts when holding the short costs nothing or earns funding.

3. Position size from volatility

The strategy measures each coin's volatility as the standard deviation of its last 30 daily returns, converted to a yearly figure. It aims for 30% yearly volatility across the whole portfolio and splits that budget equally between the two coins:

w=side×0.302 σ30365w = \text{side} \times \frac{0.30}{2\,\sigma_{30}\sqrt{365}}

Each position is capped at 100% of equity. The strategy rebalances every day. Signals switch on and off, and sizes change as volatility moves.

Each day, for BTC and ETH Do all three trend signals agree? all +1 mixed all −1 Yearly funding ≤ 40%? Flat Yearly funding ≥ 0? yes no Long Flat yes no Short Flat Size = 30% ÷ yearly volatility ÷ 2, capped at 100%
The full daily decision for each coin.

Backtest results

The test covered BTC-USDC-PERP and ETH-USDC-PERP on daily bars from 1 April 2023 to 18 November 2026, about 3.6 years. Starting capital was $10,000, and each trade paid 0.03% in friction.

+172.65%

Annual return

+31.74%

1.42

Max drawdown

16.01%

MeasureValue
Ending equity≈ $27,265
Buy-and-hold benchmark+56.3%
Trades1,503
Fee drag−7.0%
Funding drag−12.9%
Average long exposure19.0% of equity
Average short exposure16.1% of equity
Liquidations0

Every calendar year in the test ended positive. 2025 was the weakest year.

+29.3% +32.0% +13.1% +41.2% 2023* 2024 2025 2026*
Yearly returns, compounded from monthly results. *Partial years: April–December 2023 and January–November 2026.
+20% +10% 0% Feb 2024 +27.5% Jun 2026 +20.7% Sep 2025 −7.6% 2023 2024 2025 2026
All 44 monthly returns. The losing months are small. The winning months include several very large ones.

Why it works

Small losses, large wins

The strategy made money in only 23 of 44 months, about half. The winning months were much larger than the losing months:

23 up months: average +7.7% 21 down months: average −3.1%
The average winning month was about 2.5 times the size of the average losing month.

Crypto tends to move in long, strong runs, and trend following profits from that pattern. Five months produced most of the gains: February 2024, June 2026, and November of 2024, 2025 and 2026. Without those five months, the rest of the test compounds to only about +23%. To catch those runs, the strategy has to be in the market when they start, and that requires accepting many small losses in between.

Slow to enter, fast to exit

The agreement rule is asymmetric:

  • Entry needs all three signals. The 120-day average must confirm the trend, so short bounces against a bigger trend do not start a trade.
  • Exit needs only one signal. If the price crosses back over the 30-day average, the vote breaks and the position closes, even while the slower averages still point the old way.

This asymmetry keeps losses small when a trend fails. It also explains why the strategy spends much of its time flat. Average exposure was only about 19% of equity long and 16% short.

Risk stays roughly constant

Volatility sizing shrinks positions when a coin swings hard and grows them when it calms down. Each coin targets about 15% yearly volatility. Here is how the formula sizes a single position:

Coin's yearly volatilityPosition size
40%37.5% of equity
60%25.0% of equity
80%18.8% of equity
120%12.5% of equity

These are illustrative inputs, not backtest data. Moderate position sizes and long flat periods help explain the 16.0% maximum drawdown and the absence of liquidations.

Costs matter, and the funding filter targets them

Holding perpetuals costs money. Funding reduced the return by 12.9% and fees by 7.0%, even with the filter on. The filter avoids the most crowded and expensive longs. It also allows shorts only when funding is zero or positive, which means shorts are never paying funding when they open.

The weak spot: sideways markets

From March to July 2024, the strategy lost money five months in a row, about −12% compounded. 2025 gained only +13.1%. When prices swing around their averages without a clear direction, the vote turns on and off, and each false start costs a little. Any trend strategy has to live through periods like these before the next big move pays for them.

Ideas to try next

1. Use a graded vote instead of all-or-nothing

When two of three signals agree, take a partial position instead of staying flat. This could get the strategy into new trends earlier and smooth the switching in choppy markets. It will also trade more, so check whether the higher costs cancel the benefit.

2. Add more coins

Large trend months drive the results, so more coins give the strategy more chances to catch one. The volatility formula already divides the risk budget by the number of coins, so the total risk stays the same as coins are added.

The whole strategy is a few lines of logic: three averages, one funding check and one sizing rule. Take one of these ideas, change a rule, and backtest your own version.

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