SPY 4h fair value gap strategy
Enter when a fair value gap forms (a strong middle candle leaves a gap between the first and third candles): bullish gap for longs, bearish for shorts, only when volatility is higher than usual. SPY 4-hour candles, long and short, 1R target.
Found by searching 2204 variants of 50 setups on SPY (SPDR S&P 500 ETF), then tested once on the last 12 months (16 November 2025 to 16 November 2026), which were locked away during the search. Long and short, about 9 trades a year. It takes signals at any hour the market trades.
- Style
- ICT and SMC
- Timeframe
- 4 hours
- Test period
- Feb 2020 to Nov 2026
- Tested
- 18 November 2026
- Market
- SPY (S&P 500 ETF)
Return
+17.8%
Profit factor
1.73
Win rate
61.7%
Max drawdown
−2.96%
Prompt for TES
Tessera's AI strategy coach builds and backtests it
Fair value gap on SPY 4-hour candles, trading both longs and shorts: enter when a fair value gap forms (a strong middle candle leaves a gap between the first and third candles): bullish gap for longs, bearish for shorts. Only take trades when the daily ATR(14) is above the daily ATR(100). Take signals at any time of day (all sessions). Enter at the close of the signal candle. Stop 0.25 ATR(14) beyond the signal candle's low for longs (high for shorts). Take profit at 1R. Risk 1% of the account per trade with typical costs. Backtest it from 2020-02-10 to 2026-11-16.
- 1Copy the prompt
- 2Backtest it free
- 3Run it as a bot
Free account, no card. The button copies the prompt for you. Run it as a bot on your broker with Launchpad, from $39 a month.
Is the fair value gap strategy profitable on SPY?
In this backtest, yes. On SPY 4-hour candles from Feb 2020 to Nov 2026 it made +17.8% after costs, with a profit factor of 1.73, a 61.7% win rate and a maximum drawdown of 2.96%, over 60 trades.
It stayed profitable, though weaker, on an unseen period it was never tuned on (+4.6% over the last 559 days), and the locked last 12 months stayed profitable (+4.09% on 16 trades). Plan for less live: with half the edge, a typical year is +1.5%.
An SPY trading strategy
SPY is SPDR S&P 500 ETF, traded on US exchanges and as a CFD at many brokers. This strategy looks for a fair value gap signal on 4-hour candles and trades both directions, with no leverage.
About 9 trades a year, so expect a few trades a month. It suits a personal account better than a prop firm challenge with a deadline.
Prop firm results
Tested against
Verdict
Can pass prop firm challenges
We ran this strategy's own trades through 8 challenges (FTMO 1-Step Challenge, FTMO 2-Step Challenge, FundedNext Stellar 2-Step, The5ers High Stakes (2.5K-25K), FundingPips 2-Step Standard, E8 Markets E8 One, FXIFY Two Phase (Trailing), Alpha Capital Group Alpha Pro 8%), starting a new one every week of the backtest and trying several risk levels per trade.
- Pass, fail and ran-out-of-time rates for every firm
- The risk per trade with the best pass rate
- Median days to pass and challenges per pass
Create a free account, then open this strategy in the Strategy Lab hub to see the pass rates, the risk per trade to use and how long challenges took to pass.
Read nextProp firms that allow algo tradingFTMO algo trading rulesProp firm consistency rule
Backtest results
Return
+17.8%
Feb 2020 to Nov 2026
Profit factor
1.73
Win rate
61.7%
Max drawdown
−2.96%
Trades
60
about 9 a year
Last 12 months
+4.09%
Nov 2025 to Nov 2026 · 16 trades
| Net profit | +$1,779.87 ($10,000 → $11,779.87) |
|---|---|
| Average trade | +0.44R / +$29.66 |
| Total R | +26.5R |
| Profit factor in R | 1.77 |
| Average win / loss | +$113.90 (+1.65R) / −$105.84 (−1.50R) |
| Largest win / loss | +$206.90 / −$231.11 |
| Targets / stops hit | 37 / 23 |
| Longest win / loss streak | 7 / 4 |
|---|---|
| Median hold | 1 candles (4 hours) |
| Max drawdown | −$323.84 (−6.03R) |
| Buy and hold, same dates | +122.0% |
| Longs / shorts | +9.8R (31) / +16.7R (29) |
| Signals | 60 |
SPY 4-hour candles, 10 February 2020 to 16 November 2026, starting with $10,000. 1% risk per trade, no leverage. Costs are included in every figure. US stock bars.
Read nextWhat is a good profit factor?Profit factor calculatorHow many trades a backtest needs
How it was proven
1. A wide search, with the last 12 months locked away
Strategy Lab searched 2204 variants on SPY 4-hour candles, across setups, settings, targets, stops, trend and volatility filters, trading sessions and long or short sides. The last 12 months were kept locked away during the search, then the top 5 were tested on it once.
- 2,204Variants searched
- 77Passed the search bar: 40+ trades, profit factor 1.2+, return at least the drawdown, both halves profitable
- 9Had profitable neighbouring settings, so not a one-setting fluke
- 5Top 5 tested once on the locked last 12 months
- 1Stayed profitable on the locked last 12 months. This is the strongest
| Setup | Target | Filter | Side | Search period | Last 12 months | |
|---|---|---|---|---|---|---|
| Ichimoku TK cross | 3R | None | Long and short | +8.49% | −6.75% | |
| Swing high/low breakout 3 | 2.5R | None | Longs only | +18.48% | −0.48% | |
| Fair value gap | 1R | High volatility only | Long and short | +13.17% | +4.09% | This strategy |
| MACD signal cross | 2R | 50 EMA trend | Longs only | +11.04% | −1.50% | |
| Swing high/low breakout 2 | 1R | 50 EMA trend | Long and short | +14.57% | −16.93% |
Search period
10 Feb 2020 to 16 Nov 2025
- Return
- +13.17%
- Profit factor
- 1.76
- Trades
- 44
- Max drawdown
- −3.05%
Last 12 months, locked
16 Nov 2025 to 16 Nov 2026, tested once
- Return
- +4.09%
- Profit factor
- 1.66
- Trades
- 16
- Max drawdown
- −2.39%
The locked last 12 months made +4.09% with a profit factor of 1.66, on data the search never saw. That's the honest test of a searched strategy. Even so, paper trade it before a live account.
2. An unseen period: too little data to judge
Separately, Strategy Lab's walk-forward check kept the last 30% of the history (559 days, from 3 May 2025) unseen. Results were clearly weaker than before the cut, though still profitable.
Before the cut
70% of the history
- Return
- +13.17%
- Profit factor
- 1.76
- Trades
- 44
- Win rate
- 59.1%
Unseen period
Last 559 days
- Return
- +4.63%
- Profit factor
- 1.66
- Trades
- 16
- Win rate
- 68.8%
3. Robustness: stable
The same strategy re-run on noisy copies of the data, with costs halved and doubled, and with the stop assumed to hit first inside every candle.
Price feed noise (10 runs)
Return +11.4% to +24.6%, 95% of trades unchanged
Double costs
+10.2%
Stop hit first inside a candle
+17.8%
Unseen period
+4.6% over 559 days
Last 12 months (locked)
+4.09%, profit factor 1.66 on 16 trades
Recent results
Traded results
Updated
Last 30 days
Return
+0.65%
27 Oct to 26 Nov
Total P&L
+$64.63
$0.00 open
Total R
+0.75R
Trades
3
1 won
Win rate
33.3%
profit factor 1.20
Max drawdown
−3.28%
Open positions
No open positions. The strategy is watching the market for its next setup.
Closed trades
| Closed | Result | P&L | Market | Side | Closed | Entry | Exit | Result | P&L |
|---|---|---|---|---|---|---|---|---|---|
| 16 Nov, 16:00 | Target | +$392.30 (+4.06R) | SPY | Short | 16 Nov 2026, 16:00 UTC | 754.02 | 740.72 | Target | +$392.30 (+4.06R) |
| 12 Nov, 16:00 | Stop | −$130.62 (−1.33R) | SPY | Long | 12 Nov 2026, 16:00 UTC | 760.02 | 756.27 | Stop | −$130.62 (−1.33R) |
| 9 Nov, 16:00 | Stop | −$197.04 (−1.97R) | SPY | Short | 9 Nov 2026, 16:00 UTC | 732.91 | 752.48 | Stop | −$197.04 (−1.97R) |
No trades in the last 7 days
It only trades when its setup appears, so quiet weeks are normal. The last 30 days had 3 trades.
Results shown are hypothetical, calculated from the strategy's rules on market data. No real money is at risk. Past results don't guarantee future results. Not financial advice.
The rules
Fair value gap (FVG): a three-candle imbalance where a strong middle candle leaves a gap between the first and third candles’ extremes.
It only trades when the daily ATR(14) is above the daily ATR(100), meaning the market is moving more than it usually does. Quiet periods are skipped.
It enters at the close of the signal candle. The stop goes 0.25 ATR(14) beyond the signal candle's low for longs, high for shorts, and the target is 1 times the distance from entry to stop. There's no trailing stop or time exit. Each trade risks 1% of the account with no leverage, and every result includes SPY's typical trading costs (spread 0.05% of price, swap 0.025% / 0.015% a night, commission $3.50 per lot a side ($7 round turn), slippage 0.005% of price).
| Setup | A fair value gap forms (a strong middle candle leaves a gap between the first and third candles): bullish gap for longs, bearish for shorts |
|---|---|
| Filter | Only when the daily ATR(14) is above the daily ATR(100) (higher than usual volatility) |
| Session | All hours: signals at any time the market trades |
| Entry | At the close of the signal candle |
| Stop | 0.25 ATR(14) beyond the signal candle's low for longs, high for shorts |
| Target | 1R (1 times the distance from entry to stop) |
| Exit | Stop or target only: no trailing stop, break-even or time exit |
| Direction | Long and short (one trade at a time) |
| Risk | 1% of the account per trade, no leverage |
| Costs | Spread 0.05% of price, swap 0.025% / 0.015% a night, commission $3.50 per lot a side ($7 round turn), slippage 0.005% of price |
Read nextAlgorithmic trading strategies explainedBest AI trading strategy buildersBest no-code backtesting software
What to expect
Strategy Lab reshuffled this strategy's own trades 1,000 times, in blocks so losing streaks stay together, to show a range of next-12-month outcomes at about 12 trades a year. Plan with half the edge: live results usually keep about half of what a backtest shows.
See the range before you trade it
A bad year, a typical year and a good year, the chance of a losing year and the typical worst drop, as tested and with half the edge. Create a free account and open this strategy in the Strategy Lab hub.
In the backtest, the longest stretch below a previous high lasted 526 days (2 Nov 2023 to 11 Apr 2025).
Year by year
Return by year
- 2021*+0.95%3 trades
- 2022+5.83%24 trades
- 2023+2.49%2 trades
- 2024−2.63%10 trades
- 2025+6.14%5 trades
- 2026*+4.09%16 trades
*Part year: 2021 from 7 Oct 2021 to 31 Dec 2021, 2026 from 1 Jan 2026 to 13 Nov 2026.
Profit and loss by month, in dollars
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 24 | 70 | ||||||||||
| 2022 | 406 | -320 | 415 | -124 | 118 | 142 | 170 | -9 | -210 | |||
| 2023 | 127 | 139 | ||||||||||
| 2024 | -119 | -85 | -119 | 45 | 64 | 39 | 2 | -114 | ||||
| 2025 | 98 | 557 | ||||||||||
| 2026 | 65 | -239 | 249 | 140 | 254 | -63 | 144 | -87 |
Grey months had no trades. Hover a month for its trades, wins and losses.
Where it fails
- The locked final year was thin (+4.09%, profit factor 1.66, 16 trades).
- Low frequency: about 9 trades a year, so a prop challenge target usually takes months.
- The Lab's unseen-period check: too little data to judge.
Every trade
| # | Closed | Exit | Side | Entry | Exit price | Candles | P&L | Equity |
|---|---|---|---|---|---|---|---|---|
| 60 | 16 Nov 2026 | Target | Short | 754.25 | 740.53 | 1 | +$196.88 | $11,780 |
| 59 | 12 Nov 2026 | Stop | Long | 759.79 | 756.50 | 1 | −$65.77 | $11,583 |
| 58 | 9 Nov 2026 | Stop | Short | 733.13 | 752.25 | 2 | −$218.41 | $11,649 |
| 57 | 3 Aug 2026 | Target | Long | 746.81 | 757.08 | 1 | +$144.06 | $11,867 |
| 56 | 24 Jul 2026 | Stop | Short | 738.17 | 741.75 | 1 | −$63.07 | $11,723 |
| 55 | 26 Jun 2026 | Target | Short | 733.08 | 729.22 | 2 | +$47.17 | $11,786 |
| 54 | 15 Jun 2026 | Target | Long | 741.66 | 756.12 | 1 | +$206.90 | $11,739 |
| 53 | 8 May 2026 | Target | Long | 731.59 | 737.68 | 1 | +$81.50 | $11,532 |
| 52 | 1 May 2026 | Target | Long | 718.39 | 722.96 | 1 | +$58.86 | $11,451 |
| 51 | 17 Apr 2026 | Target | Long | 701.55 | 709.88 | 1 | +$123.15 | $11,392 |
| 50 | 13 Apr 2026 | Target | Long | 675.88 | 682.49 | 3 | +$85.14 | $11,269 |
| 49 | 7 Apr 2026 | Target | Long | 655.18 | 658.97 | 3 | +$40.39 | $11,183 |
| 48 | 31 Mar 2026 | Stop | Short | 634.08 | 647.03 | 2 | −$231.11 | $11,143 |
| 47 | 20 Mar 2026 | Target | Short | 659.72 | 652.19 | 1 | +$119.00 | $11,374 |
| 46 | 16 Mar 2026 | Stop | Short | 662.30 | 669.20 | 1 | −$126.97 | $11,255 |
| 45 | 26 Jan 2026 | Target | Long | 688.93 | 693.78 | 2 | +$64.89 | $11,382 |
| 44 | 24 Apr 2025 | Target | Long | 535.38 | 545.50 | 1 | +$168.32 | $11,317 |
| 43 | 21 Apr 2025 | Target | Short | 526.39 | 509.95 | 1 | +$191.12 | $11,149 |
| 42 | 11 Apr 2025 | Target | Long | 524.71 | 535.13 | 1 | +$99.28 | $10,958 |
| 41 | 8 Apr 2025 | Target | Short | 505.51 | 492.71 | 2 | +$98.43 | $10,859 |
Show all 60 trades
Loading trades…
Read nextCreate a trading bot without codingBest trading journal for algo tradersBest trading journal for TradingView
Run it as a bot
Once the strategy holds up, Launchpad runs it on paper, then live on cTrader, Liquid Brokers or Hyperliquid, with the stop and target attached to every order.
- Paper:live prices, no broker
- Copilot:approve each trade in Telegram or the app
- Autopilot:trades inside your daily limits
Variations to test
Longs only
Keeps the long side only. In this backtest its 31 long trades made +9.8R with a profit factor of 1.62, against +16.7R from the shorts.
Fair value gap on SPY 4-hour candles, long trades only (no shorts): enter when a fair value gap forms (a strong middle candle leaves a gap between the first and third candles): bullish gap. Only take trades when the daily ATR(14) is above the daily ATR(100). Take signals at any time of day (all sessions). Enter at the close of the signal candle. Stop 0.25 ATR(14) beyond the signal candle's low. Take profit at 1R. Risk 1% of the account per trade with typical costs. Backtest it from 2020-02-10 to 2026-11-16.
Backtest this variation freeThe button copies this prompt. Paste it into TES and Strategy Lab builds and backtests it.
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.