Liquidity sweep fade lost money.
After costs on BTCUSDT 15m: −93.98% in-sample, −69.03% out-of-sample.
Equity, day by day
After fees and slippage
Total return, in-sample
−93.98%
Clear loss: t is −10.91 over 1,639 trades.
Total return, out-of-sample
−69.03%
Clear loss: t is −8.48 over 688 trades.
| Sample | Trades | Win rate | Average R | t-statistic | Total return | Max drawdown |
|---|---|---|---|---|---|---|
| In-sample 2025-11-18 to 2026-07-30 | 1,639 | 29.16% | −0.67 | −10.91 | −93.98% | 94.35% |
| Out-of-sample 2026-07-31 to 2026-11-18 | 688 | 28.20% | −0.79 | −8.48 | −69.03% | 69.31% |
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
A win is a trade with a profit after costs.
The range
The prior high is the highest high of the 20 bars before the current bar; the prior low, their lowest low.
The sweep
High above the prior high, close back below: short. Low below the prior low, close back above: long. Both in one bar: no signal.
The stop
Short: the sweep bar’s high plus 0.1 × ATR. Long: its low minus the same. ATR is averaged over 14 bars.
The target
2 times the distance from fill to stop. One position at a time; signals during an open position are ignored.
Fixed parameters
- Range length, in bars
lookback - 20
- ATR length, in bars
atr_period - 14
- 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
- 79d9beec0dbe872a3fca167f90e11069ef68d5d465af6caf995df699d9dbc57c
Run it yourself
perpmath download BTCUSDT 15m --start 2025-11-18T11:30:00Z --end 2026-11-18T11:30:00Z perpmath backtest liquidity_sweep --symbol BTCUSDT --interval 15m --config configs/liquidity_sweep.json --out results/liquidity-sweep-btcusdt.json