Pin-Bar Rejection Backtest in Crypto: Fees, Slippage and Break-Even Costs
A pin bar has a long wick and small body, read as rejection. Its definition — wick-to-body ratio and close position — sets everything.
Short answer
A pin-bar rejection rule enters after a bar with a long wick (e.g. at least 2× the body) and a close in the opposite third of its range, usually at a level. Wick definitions vary, and on crypto perps, wicks are often liquidation-driven. Define the ratio and close position, require a location, use next-bar fills, set the stop beyond the wick and compute break-even cost; long wicks mean wide stops and smaller size.
Break-even cost
| Item | Value (illustrative) |
|---|---|
| Trades | 100 |
| Gross avg per trade | +0.55% |
| Fees (2 × 0.05%) | −0.10% |
| Slippage (2 × 0.04%) | −0.08% |
| Net avg per trade | +0.37% |
| Break-even round-trip cost | 0.55% |
Definition grid
| Wick ÷ body | Close in | Trades | Net avg (illustrative) |
|---|---|---|---|
| ≥ 2 | Top third | 160 | +0.18% |
| ≥ 3 | Top third | 100 | +0.33% |
| ≥ 3 | Top quarter | 55 | +0.36% (small sample) |
Conclusion
Related: Engulfing-Candle Confirmation Backtest in Crypto: Fees, Slippage and Break-Even Costs, DEX Candle Wicks: How to Read the Number Before a Swap.
Backtest the pin-bar rejection rule with costs in ChartsPod.
Open the ChartsPod terminalDefine the ratio and close position, require a location, use next-bar fills, set the stop beyond the wick and compute break-even cost; long wicks mean wide stops and smaller size.
Put Pin-Bar Rejection Backtest in Crypto next to price, flow and positioning in one workspace.
Open a ChartsPod workspaceQuestions readers ask
What is a pin bar?
A bar with a long wick and small body.
Where's the stop?
Beyond the wick.
Why define it numerically?
Visual pins aren't testable.
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.