BACKTESTING · LIQUIDITY-SWEEP REJECTION

Liquidity-Sweep Rejection Backtest in Crypto: Fees, Slippage and Break-Even Costs

A sweep-rejection rule waits for price to run stops beyond a prior high or low and then close back inside. It's a defined version of 'stop hunt' trading.

Short answer

A liquidity-sweep rejection rule enters against a move that briefly broke a prior swing high/low (where stops likely sit) and closed back inside within the same or next bar, with a stop beyond the sweep extreme. Define the swing (confirmed pivots), the minimum sweep distance, and the close-back condition. Sweeps often coincide with liquidation bursts and wide spreads, so model higher slippage. Compute break-even cost and compare with plain failed-breakout rules.

Break-even cost

ItemValue (illustrative)
Trades130
Gross avg per trade+0.52%
Fees (2 × 0.05%)−0.10%
Slippage (2 × 0.05%)−0.10%
Net avg per trade+0.32%
Break-even round-trip cost0.52%
Liquidity-Sweep Rejection: edge vs cost per trade (%)Liquidity-Sweep Rejection: edge vs cost per trade (%): Gross edge 0.52 %; Fees 0.10 %; Fees + slippage 0.20 %.LIQUIDITY-SWEEP REJECTION: EDGE VS COST PER TRADE (%)Gross edge0.52 %Fees0.10 %Fees + slippage0.20 %
Edge per trade versus cost per trade. Original ChartsPod editorial graphic.

Definition choices

Sweep ruleTradesNet avg (illustrative)
Any wick beyond swing260+0.08%
≥ 0.2% beyond, close inside130+0.37%
+ liquidation spike60+0.49% (small sample)
Illustrative net avg (%)Illustrative net avg (%): Any wick +0.08 %; Defined sweep +0.37 %; + liquidations +0.49 %.ILLUSTRATIVE NET AVG (%)Any wick+0.08 %Defined sweep+0.37 %+ liquidations+0.49 %
Definition drives results. Original ChartsPod editorial graphic.

Conclusion

Related: Failed Breakout Reversal Backtest in Crypto: Fees, Slippage and Break-Even Costs, Liquidation Bursts on the Tape in Crypto: What Price Response Adds to the Reading.

Backtest the liquidity-sweep rejection rule with costs in ChartsPod.

Open the ChartsPod terminal

Compute break-even cost and compare with plain failed-breakout rules.

Compare Liquidity-Sweep Rejection Backtest in Crypto across Binance, Bybit, OKX and Hyperliquid markets.

Open markets in ChartsPod

Questions readers ask

What is a liquidity sweep?

A brief break beyond a swing where stops sit.

How is rejection defined?

A close back inside within N bars.

Why higher slippage?

Sweeps happen in fast markets.

Sources and methodology

Backtest cost logic follows TradingView's Pine Script strategy documentation; indicator definitions are standard. All performance numbers are illustrative examples of the method, not results of real tests.

  1. TradingView Pine Script: Strategies — simulated fills and assumptions.
  2. TradingView Pine Script: Repainting — live vs historical calculation.
  3. ChartsPod documentation — guides for order flow, derivatives, alerts, backtests, journal and workspaces.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.