Inside-Bar Breakout Backtest in Crypto: Fees, Slippage and Break-Even Costs
An inside bar sits within the prior bar's range. Trading its breakout is simple to define, but the tight range makes costs a large share of the move.
Short answer
An inside-bar breakout rule enters when price breaks the high (or low) of a bar whose range is inside the previous bar's range, with a stop at the opposite side. Inside bars are common and often small, so stops are tight and fees plus slippage are a large fraction of risk. Compute costs as a share of the stop distance, filter by minimum bar size or trend, and compute break-even cost.
Break-even cost
| Item | Value (illustrative) |
|---|---|
| Trades | 260 |
| Gross avg per trade | +0.21% |
| Fees (2 × 0.05%) | −0.10% |
| Slippage (2 × 0.03%) | −0.06% |
| Net avg per trade | +0.05% |
| Break-even round-trip cost | 0.21% |
Costs vs stop size
| Inside-bar range | Costs (0.13%) as share of stop |
|---|---|
| 0.3% | 43% |
| 0.6% | 22% |
| 1.2% | 11% |
Conclusion
Related: Opening-Range Breakout Backtest in Crypto: Fees, Slippage and Break-Even Costs, Engulfing-Candle Confirmation Backtest in Crypto: Fees, Slippage and Break-Even Costs.
Backtest the inside-bar breakout rule with costs in ChartsPod.
Open the ChartsPod terminalCompute costs as a share of the stop distance, filter by minimum bar size or trend, and compute break-even cost.
Test Inside-Bar Breakout Backtest in Crypto on a perpetual chart; no account is needed to chart.
Launch ChartsPodQuestions readers ask
What is an inside bar?
A bar within the prior bar's high-low range.
Why are costs high?
Stops are tight.
What filter helps?
Minimum bar size or trend.
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.