MSFT trading strategies, backtested
We backtested the MSFT strategies across 5 strategies in Strategy Lab. Every one below is profitable after costs and stayed profitable on a final 12 months it was never tuned on. The best, MSFT 1h Williams %R cross, made +87.0% from Jan 2020 to Nov 2026; the median profit factor is 2.07.
- 5Backtested strategies
- +87.0%Best return after costs
- 2.07Median profit factor
- +7.2%Best last 12 months
Results compared
| Strategy | Timeframe | Direction | Return | Profit factor | Win rate | Max drawdown | Last 12 months |
|---|---|---|---|---|---|---|---|
| MSFT 1h Williams %R cross | 1 hour | Long only | +87.0% | 2.07 | 40.4% | −7.6% | +7.2% |
| MSFT 1h Williams %R cross (length 14) | 1 hour | Long only | +56.6% | 1.83 | 68.8% | −4.4% | +3.2% |
| MSFT 15m Keltner channel fade | 15 minutes | Long only | +47.1% | 2.22 | 53.8% | −7.2% | +2.5% |
| MSFT 1h Williams %R cross (US open) | 1 hour | Long only | +43.2% | 2.22 | 74.2% | −5.4% | +1.4% |
| MSFT 15m CCI cross | 15 minutes | Long only | +42.2% | 1.62 | 33.0% | −7.6% | +6.6% |
Backtests in Strategy Lab at 1% risk per trade, after each market's typical spread. Last 12 months were locked away during the search and tested once.
What worked
Timeframes
1 hour (3), 15 minutes (2).Setups
Williams %R cross (1), Williams %R cross (length 14) (1), Keltner channel fade (1), Williams %R cross (US open) (1), CCI cross (1).Targets
3R (2), 1R (2), 2R (1). Wider targets win less often but pay more per winner.Filters and direction
3 with the 200 EMA trend filter, 2 with trend50; 5 long only.
Trading Microsoft with an algo
Microsoft (MSFT) is one of the most traded US stocks, which keeps spreads tight for a bot. It only trades in US market hours and can gap at the open, so each strategy below was tested on its own bars, not on an index.
Each was tested with a typical 0.03% spread, no commission and no leverage, and checked on a final 12 months locked away during the search.
Every strategy
- MSFT
+87.0%
Jan 2020 to Nov 2026
Profit factor
2.07
Win rate
40.4%
Max DD
−7.6%
Momentum · 1 hour
MSFT 1h Williams %R cross
Buy when Williams %R(14) crosses above -80, with the 200 EMA trend. MSFT 1-hour candles, long only, 3R target.
See the rules and results - MSFT
+56.6%
Jan 2020 to Nov 2026
Profit factor
1.83
Win rate
68.8%
Max DD
−4.4%
Momentum · 1 hour
MSFT 1h Williams %R cross (length 14)
Buy when Williams %R(14) crosses above -80, with the 50 EMA trend. MSFT 1-hour candles, long only, 1R target.
See the rules and results - MSFT
+47.1%
Nov 2023 to Nov 2026
Profit factor
2.22
Win rate
53.8%
Max DD
−7.2%
Mean reversion · 15 minutes
MSFT 15m Keltner channel fade
Buy when the close crosses back inside the Keltner channel(40, 2): above the lower channel, with the 200 EMA trend. MSFT 15-minute candles, long only, 2R target.
See the rules and results - MSFT
+43.2%
Jan 2020 to Nov 2026
Profit factor
2.22
Win rate
74.2%
Max DD
−5.4%
Momentum · 1 hour
MSFT 1h Williams %R cross (US open)
Buy when Williams %R(14) crosses above -80, with the 50 EMA trend. MSFT 1-hour candles, long only, 1R target.
See the rules and results - MSFT
+42.2%
Nov 2023 to Nov 2026
Profit factor
1.62
Win rate
33.0%
Max DD
−7.6%
Momentum · 15 minutes
MSFT 15m CCI cross
Buy when CCI(14) crosses above -100, with the 200 EMA trend. MSFT 15-minute candles, long only, 3R target.
See the rules and results
More backtested strategies
By indicator
By market
- Gold trading strategies
- Ethereum trading strategies
- Crypto trading strategies
- Forex trading strategies
- Stock trading strategies
- NVDA trading strategies
- QQQ and Nasdaq trading strategies
- S&P 500 and index ETF trading strategies
- AAPL trading strategies
- AMD trading strategies
- GOOGL trading strategies
- META trading strategies
- AMZN trading strategies
Backtests are hypothetical: they apply fixed rules to historical data with assumed costs and fills. Past results don't predict future results, and leveraged trading carries a high risk of loss. This is an educational description, not a recommendation.