Bar replay: your first practice trades
Bar replay is the tool that makes backtesting possible. It hides the future and lets you play the chart forward one candle at a time, as if it were happening live. This lesson is how it works and what one backtest trade looks like from start to finish.
What bar replay does
On a normal chart you can see everything that already happened. That makes it useless for testing, because you already know where price went.
Bar replay fixes that. You pick a point in the past and the chart cuts off everything after it. Then you press play, or step forward one candle at a time, and the chart rebuilds itself as if you were watching it live.
- Start point
- You choose a date in the past. Everything to the right of it disappears.
- Step
- One click adds one candle. You decide what to do before you see the next one.
- Play
- Candles appear on their own at the speed you set. You can pause any time.
- Use Vision Charts for this. It is free. On TradingView, replaying the 5 and 15 minute charts needs a paid plan, and going back years needs the most expensive one. So we built our own: Vision Charts has bar replay on every timeframe, years of history on the top coins, your trading window, drawing tools for levels, and the long and short position tools. It also saves finished trades straight into your Vision backtest.
Because you cannot see what comes next, you have to make the same decision you would make live: is this a clean breakout of my swing level, inside my window, or not?
You will set it up on your own chart in the tools module. Here you are going to practise the routine first.
One backtest trade, start to finish
Every trade in a backtest goes through the same steps, in the same order.
- Play forward to your windowLet the replay run until your trading window opens.
- Mark your levelsDraw the swing resistance above price and the swing support below it. Keep them up to date as new candles come in.
- Step forward and waitOne candle at a time. You are waiting for a body to close clearly through a swing level, inside the window.
- EnterWhen it happens, place the position tool on the close of that candle. Stop first, at the candle before. Then the target at 2.
- Play until it endsLet the replay run until price hits the stop or the target. Touch nothing in between.
- Record itWrite the trade into the backtesting tool straight away, win or loss.
- Carry onKeep playing forward from where you are. Never go back.
If your window ends and nothing broke, that day has no trade. Play on to the next day.
If you close the chart, the replay ends. So every time you stop for the day, write down the date and time you got to. Next time, press Replay, choose "Choose a date" and type it in.
Three trades, one candle at a time
This works like bar replay. Real Bitcoin, 5 minute candles, and you cannot see what comes next. The swing level is already marked for you, and everything shown is inside the trading window.
Step forward one candle at a time. Enter when a body closes clearly through the gold line. Be careful: just like the real thing, you cannot go back.
Trade 1 of 3
Your trade log
| # | Direction | Entry | Stop | Exit | Result |
|---|
What changes when you do it for real
What you just did is the heart of it. In your real backtest on Vision Charts, three things are different.
- Levels
- Nobody marks them for you. Finding the swing levels as the chart moves is most of the work, and most of what you learn.
- Window
- Most candles are outside your window. You play through those quickly and slow right down when the window opens.
- Volume
- Not three trades. One hundred. That is where the truth about a strategy shows up.
Your first ten will take longer than that, and that is fine. Before you start, there is one more thing to set up: where you write the trades down.
Forward only, one candle at a time.
Mark levels, wait for a clean break, enter, let it finish, record it, carry on.