RSI Mean Reversion Backtest: Bar-Close Signals vs Next-Bar Execution
RSI reversion signals often fire on sharp bars. Executing at the signal close assumes you caught the low; the next open is where you can actually buy.
Short answer
For an RSI mean-reversion rule (e.g. buy when RSI(14) closes below 30), the closed-bar RSI is known at the close. Filling at that close assumes zero latency at a volatile moment; filling at an intrabar RSI dip assumes you bought near the low of a bar whose RSI may close above 30. Realistic execution is the next bar's open with slippage, which matters more for reversion rules because their average gains are small.
Signal time vs execution time
| Execution model | Assumption | Net avg (illustrative) |
|---|---|---|
| Intrabar RSI < 30 | Bought the dip, RSI may recover | +0.29% |
| Next bar open + slippage | Realistic | +0.07% |
| Signal bar close | Zero latency | +0.11% |
Where the difference comes from
Reversion rules have small average gains, so a few basis points of execution difference can remove the edge. Intrabar versions also include signals whose closed RSI never went below 30.
Break-even after realistic execution
| Item | Value (illustrative) |
|---|---|
| Trades | 260 |
| Gross avg per trade | +0.15% |
| Fees (2 × 0.05%) | −0.10% |
| Slippage (2 × 0.03%) | −0.06% |
| Net avg per trade | -0.01% |
| Break-even round-trip cost | 0.15% |
Related: RSI Mean Reversion Backtest in Crypto: Fees, Slippage and Break-Even Costs, RSI Trend Continuation Backtest: Bar-Close Signals vs Next-Bar Execution.
Test the rsi mean reversion rule with next-bar fills in ChartsPod.
Open the ChartsPod terminalRealistic execution is the next bar's open with slippage, which matters more for reversion rules because their average gains are small.
Put RSI Mean Reversion Backtest next to price, flow and positioning in one workspace.
Open a ChartsPod workspaceQuestions readers ask
Why is execution timing critical for RSI reversion?
Average gains are small.
Can I buy the intrabar dip in a backtest?
Only if your live rule does the same, with the same uncertainty.
Realistic fill?
Next bar open plus slippage.
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.
- TradingView Pine Script: Strategies — simulated fills and assumptions.
- TradingView Pine Script: Repainting — live vs historical calculation.
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.