Moving-Average Pullback Backtest in Crypto: Fees, Slippage and Break-Even Costs
Buying pullbacks to a moving average in an uptrend is one of the most common rules. Its result depends on how 'touch' and 'trend' are defined.
Short answer
A moving-average pullback strategy buys when price in an uptrend (e.g. above a rising 50-EMA) pulls back to touch a shorter MA (e.g. 20-EMA) and exits on a target, trailing stop or close below the MA. Definitions decide everything: whether a 'touch' uses the bar's low or close, and whether entry is at the MA level (limit) or next bar (market). Limit entries at the MA assume fills that may not happen; market entries pay slippage. Compute break-even cost for the entry model you'd actually use.
Break-even cost
| Item | Value (illustrative) |
|---|---|
| Trades | 210 |
| Gross avg per trade | +0.33% |
| Fees (2 × 0.05%) | −0.10% |
| Slippage (2 × 0.03%) | −0.05% |
| Net avg per trade | +0.18% |
| Break-even round-trip cost | 0.33% |
Entry model
| Entry model | Assumption | Bias |
|---|---|---|
| Limit at MA level | Filled when low touches MA | Optimistic (touch ≠ fill) |
| Market next bar after touch | Fill at next open + slippage | Realistic |
| Close back above MA | Confirmation, later entry | Fewer, later trades |
Conclusion
Related: Bar-Close Signals vs Next-Bar Fills: Why Backtest Returns Change, 200-Day Moving-Average Filter Backtest in Crypto: Fees, Slippage and Break-Even Costs.
Backtest the ma pullback rule with costs in ChartsPod.
Open the ChartsPod terminalCompute break-even cost for the entry model you'd actually use.
Put Moving-Average Pullback Backtest in Crypto next to price, flow and positioning in one workspace.
Open a ChartsPod workspaceQuestions readers ask
Does a touch of the MA mean a fill?
Not necessarily; require price to trade through the limit.
Which MA lengths?
Test a grid; pick a stable region.
Why define trend?
Pullback rules fail in downtrends.
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.