Fair value gap entry lost money.

After costs on BTCUSDT 15m: −66.94% in-sample, −42.86% out-of-sample.

Equity, day by day

Equity curve of Fair value gap entry on BTCUSDT In-sample, 2025-11-18 to 2026-07-31: equity went from 10,000 to 3,305.50. Out-of-sample, 2026-07-31 to 2026-11-18: from 10,000 to 5,714.36. The lowest daily point was 3,305.50, the highest 10,006.24. 02,5005,0007,50010,000 Equity In-sample Out-of-sample 2026-012026-042026-072026-10
Each sample starts again from 10,000. The value axis starts at 0.

After fees and slippage

Total return, in-sample

−66.94%

Clear loss: t is −4.93 over 801 trades.

Total return, out-of-sample

−42.86%

Clear loss: t is −5.23 over 304 trades.

Sample Trades Win rate Average R t-statistic Total return Max drawdown
In-sample 2025-11-18 to 2026-07-30 801 31.46% −0.57 −4.93 −66.94% 66.97%
Out-of-sample 2026-07-31 to 2026-11-18 304 27.96% −0.83 −5.23 −42.86% 43.19%

Computed by perpmath 0.1.0 on 2026-11-18 11:40 UTC. A backtest is arithmetic on past prices, not a forecast.

Win rate, drawn to scale

In-sample: 31.46%, 252 wins in 801 trades Full width: all 801 trades
Out-of-sample: 27.96%, 85 wins in 304 trades Full width: all 304 trades

A win is a trade with a profit after costs.

The gap

Three candles where the first and third do not overlap. The zone between must be at least 0.5 × ATR tall.

The wait

The gap waits up to 96 bars for price to return. Each gap is used once at most.

The entry

The first bar back in the zone decides: a close beyond the far edge drops the gap, anything else enters in its direction.

Not a limit order

Entry is a market order at the next bar’s open, not a limit order at the gap’s edge. The fill can land anywhere.

The exit

Stop: 0.1 × ATR beyond the zone’s far edge. Target: 2 times the distance from fill to stop. One position at a time.

Fixed parameters

ATR length, in bars atr_period
14
Smallest gap, in ATR min_gap_atr
0.5
Longest wait, in bars max_wait_bars
96
Stop buffer, in ATR stop_buffer_atr
0.1
Target, in R r_multiple
2

Set before the first run on real data. Not adjusted since.

Costs

Fee
0.055% per side
Slippage
0.02% per fill, against you
Position size
100% of equity
Starting capital
10,000

Fee: Bybit’s base taker rate, so check the current table. Slippage: an assumption, not a measurement.

Fills

Decision
Bar close
Fill
Next bar open
Stop and target in one bar
Stop first
Look-ahead check
Passed, 9 shortened runs

What is not modelled

  • Funding payments.
  • Leverage, margin and liquidation.
  • Maker fees, partial fills, latency, order-book depth and market impact.
  • The order of events inside a bar, beyond stop-first.

Data

Market
BTCUSDT, 15m bars, Bybit public data
First bar
2025-11-18 11:30 UTC
Last bar
2026-11-18 11:15 UTC
Bars
35,040, 0 missing
Out-of-sample from
2026-07-31 00:00 UTC
Data file SHA-256
ac4acc429d7f33dd10e480195bce85f5639714b5d46869499b4275666f9fa037
Result file SHA-256
c166b12869d350c2bc62efc7452adeac826e105d9ff4c2e9d1244de3e29bfc5f

Run it yourself

perpmath download BTCUSDT 15m --start 2025-11-18T11:30:00Z --end 2026-11-18T11:30:00Z
perpmath backtest fvg --symbol BTCUSDT --interval 15m --config configs/fvg.json --out results/fvg-btcusdt.json