Time-and-Sales Aggression Filter Backtest in Crypto: Fees, Slippage and Break-Even Costs
A time-and-sales aggression filter requires a burst of aggressive trades before entry. It needs trade-level data and realistic timing to test.
Short answer
An aggression filter allows entries only when buy-aggressor volume in the last N seconds exceeds a threshold (or a ratio to sell-aggressor volume). Testing needs trade-level data with aggressor flags, a defined window and threshold scaled to the market, and fills after the burst with slippage that reflects fast conditions. Compare with the unfiltered strategy on the same signals and compute break-even cost.
Break-even cost
| Item | Value (illustrative) |
|---|---|
| Trades | 140 |
| Gross avg per trade | +0.42% |
| Fees (2 × 0.05%) | −0.10% |
| Slippage (2 × 0.05%) | −0.10% |
| Net avg per trade | +0.22% |
| Break-even round-trip cost | 0.42% |
Filter effect
| Version | Trades | Net avg (illustrative) |
|---|---|---|
| No filter | 260 | +0.09% |
| Buy aggression ≥ 3× sell (30 s) | 140 | +0.28% |
| ≥ 5× | 60 | +0.31% (small sample) |
Conclusion
Related: Time-and-Sales Trade Filters in Crypto: What Price Response Adds to the Reading, Taker-Delta Reversal Backtest in Crypto: Fees, Slippage and Break-Even Costs.
Backtest the aggression filter rule with costs in ChartsPod.
Open the ChartsPod terminalCompare with the unfiltered strategy on the same signals and compute break-even cost.
Test Time-and-Sales Aggression Filter Backtest in Crypto on a perpetual chart; no account is needed to chart.
Launch ChartsPodQuestions readers ask
What is an aggression filter?
Requiring aggressive trading before entry.
What data is needed?
Trades with aggressor flags.
Why higher slippage?
Entries follow fast bursts.
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.
- TradingView Pine Script: Strategies — simulated fills and assumptions.
- TradingView Pine Script: Repainting — live vs historical calculation.
- 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.