Bar Replay: how and why to test a strategy in the past (2024)

Get started

Bar Replay enables users to simulate past price movements for strategy testing. This tool assists traders in refining strategies by analyzing historical market behavior and practicing trading decisions without real financial exposure. It offers a risk-free, interactive, and dynamic way to enhance your trading skills, refine strategies, and gain valuable insights into historical market behavior.

Contents

This article provides a comprehensive overview of this feature, offering a step-by-step guide on using it for strategy testing and simulated trading.

  • Why do traders need Bar Replay?
  • How to use Bar Replay: a step-by-step guide
  • How to use drawings and indicators in Bar Replay
  • What's the maximum depth of data history?
  • Which hotkeys for Bar Replay you can use?
  • What else do you need to know to get started?
  • What if my Bar Replay isn’t working as it should?

Why do traders need Bar Replay?

Historical trading starts at a selected point with a controlled replay speed that allows traders to see how a strategy could play out. But, Bar Replay isn’t just about exploring the past, it can help traders think ahead for the future. Here are some of the key benefits of Bar Replay.

Strategy refinement.Test and refine trading strategies with historical price analysis and simulated trading, identifying areas for improvement.

Realistic learning.Traders can simulate real market conditions, gaining practical insights into strategy performance.

Historical insights.By studying past price movements, traders can uncover patterns and trends for informed decisions.

Risk-free practice.Beginners are able to practice without real financial risk, building confidence and experience before live trading.

Customized speed.Replay speed adjusts for various learning paces, allowing traders to get comfortable with tools and strategies.

How to use Bar Replay: a step-by-step guide

Getting used to any new feature is a challenge. Here is a quick how-to guide to get you started.

Open Bar Replay.To begin, locate the Bar Replay button on the top panel of your chart — it’s the button that resembles a rewind button on videos. Click to open the replay panel.

Bar Replay: how and why to test a strategy in the past (1)

Navigate playback.Once inside the replay panel, you'll notice playback buttons that function similarly to those in media players. Try these buttons for yourself and explore how they work for navigation.

Bar Replay: how and why to test a strategy in the past (2)

Select starting point. The chart will now allow you to choose a starting point for your replay. Hover your cursor over the chart screen, a blue vertical line with scissors will appear. Click on the specific date and time you wish to start from.

In this section, you can select specific dates, allowing you to make any bar within the chart’s history your starting point for the replay, without manually moving the chart. In the same way, you can also choose the "Select the first available day" button to use the first day of the chart as your starting point. Additionally, you can choose the random bar function which will take you to a random bar within the chart.

Bar Replay: how and why to test a strategy in the past (3)

Start the playback.Click the Play button to initiate the replay. You can control the replay speed before or during playback according to your preferences.

Bar Replay: how and why to test a strategy in the past (4)

Manual advancement.Slow the replay down to get all the details. To move forward one step at a time, simply click the Forward button.

Bar Replay: how and why to test a strategy in the past (5)

Monitor status.On the corresponding status displayed on the chart, you can see when Bar Replay is running. When you see the replay symbol, the chart is in replay mode. You won’t see this symbol if you’re not replaying.

Bar Replay: how and why to test a strategy in the past (6)

Change starting point.Even if the replay is running, you can switch to a different starting point. Choose from “Select bar,” “Select data,” or “Random bar” to add a starting point for your analysis.

Bar Replay: how and why to test a strategy in the past (7)

Multiple charts.You can synchronously run the Bar Replay on all charts of the layout and track the dynamics of changes in one or completely different symbols at different timeframes at one point in time.

When switching to a workspace with several charts, you can select a replay mode: one current chart or all.

Bar Replay: how and why to test a strategy in the past (8)

In single chart mode, the replay can be launched on only one of the charts, and it will not differ from what it was before.

In the “All charts” mode, when you select the starting bar, the starting line will appear on all charts of the layout, and while you choose the starting point on one, the charts are synchronized in time so that the point from which replay will begin on each chart is in the visible area.

Bar Replay: how and why to test a strategy in the past (9)

Replay is synchronized in time, so if the charts have different timeframes, then charts with large timeframes will wait when playing until data from charts at smaller timeframes appears, that is, for example, on a chart with a weekly timeframe, a new bar will not appear until on a chart with a daily timeframe 7 bars will not load at timeframes.

End the replay.You can stop the replay and return to live data by using the "Jump to real-time chart" button. This brings you back to current market conditions instantly.

Bar Replay: how and why to test a strategy in the past (10)

Close the replay panel.To close the replay panel, either click the [X] button on it or click the Bar Replay button again at the top of the chart.

Bar Replay: how and why to test a strategy in the past (11)

How to use drawings and indicators in Bar Replay

Using drawings and indicators in Bar Replay and on a regular chart is a little different in terms of purpose and function.

In Bar Replay, drawings act as annotations for historical price data, assisting in strategy testing. You can create drawings, and they will be saved after the closing of Bar Replay.

Indicators provide insights into past price movements based on selected parameters, evaluating indicator performance for strategy improvement. In Bar Replay, indicators can be used to replay data for calculations.

What's the maximum depth of data history?

The length of historical data in Bar Replay can vary depending on the selected symbol and chart timeframe. For daily and daily-based timeframes, we display all available data on the chart, and the same data can be used in the Bar Replay mode. For intraday timeframes, TradingView keeps a limited amount of data, and the length in Bar Replay varies depending on the plan.

Essential and Plus plans
  • Calculated using the formula: now to 6 weeks back multiplied by timeframe in minutes
  • The higher the timeframe selected, the more intraday data is available

Example

You can go 6 weeks back on the 1-minute chart, 12 weeks back on the 2-minute chart, 30 weeks back on the 5-minute chart, 90 weeks back on the 15-minute chart.

Premium plan
  • Calculated to give more historical intraday data for Bar Replay: now to 6 months back multiplied by timeframe in minutes
  • The higher the timeframe selected, the more intraday data is available

Example

Premium users have access to 6 months of 1-minute data. For a 2-minute timeframe, this limit is doubled, and a year of 2-minute data is available; for 3-minute it is tripled and 18 months of 3-minute data is available.

For all second-based timeframes, Premium users have access to 90 days of data in Bar Replay.

Subscription

Second-based timeframes

1-minute
chart

2-minute
chart

3-minute
chart

5-minute
chart

15-minute chart

Essential/Plus

-

6 weeks

12 weeks

18 weeks

30 weeks

90 weeks

Premium

3 months

6 months

12 months

18 months

30 months

90 months

Professional plans

Our professional plans provide even more historical intraday data for Bar Replay. The limitations are below.

  • For Expert plans — from now to 270 days back multiplied by timeframe (in minutes)
  • For Elite plans — from now to 360 days back multiplied by timeframe (in minutes)
  • For Ultimate plans — from now to 450 days back multiplied by timeframe (in minutes)

For all seconds-based timeframes, Expert plans have access to 120 days of data, Elite plans have access to 150 days of data, and Ultimate plans can have the maximum length of seconds-based data in Bar Replay, which is 180 days.

Subscription

Second-based timeframes

1-minute
chart

2-minute
chart

3-minute
chart

5-minute
chart

15-minute chart

Expert

4 months

9 months

18 months

27 months

45 months

135 months

Elite

5 months

12 months

24 months

36 months

60 months

180 months

Ultimate

6 months

15 months

30 months

45 months

75 months

225 months


Please note that the above-mentioned replay limits are not applied to continuous futures charts — 1! and 2! symbols (for example, ES1!, BANKNIFTY1!) as they have their own special intraday limitations and it's not possible to play more than 20K intraday bars in the replay mode.

To access earlier intraday data, you need to select the starting point for Bar Replay on a higher timeframe and then switch to a lower time frame.

For example, if you want to play older 1-minute bars, you can go back to the daily timeframe, turn on the Replay mode and select the starting point somewhere within your plan's limits. Then, switch to a 1-minute time frame and press Play. Follow this link to see the video in our blog post.

If the specified starting point for the replay is too far away and there is no data available for the selected time period, Bar Replay will automatically bring you to the first available bar.

When you switch timeframes from higher to lower ones, it may happen that there is data available on the higher timeframe (e.g. 1 day) that is not available on the lower time frame chart (e.g. 1 min) as the intraday limit has been reached. In this case, you will see the message “Data point unavailable” in the bottom left corner of the chart, and your timeframe remains unchanged.

If you want to use a lower timeframe anyway, you need to switch to a real-time chart or find a starting point where a lower timeframe is available.

Bar Replay: how and why to test a strategy in the past (12)


Which hotkeys for Bar Replay you can use?

Getting from A to B as quickly as possible is important for everyone. Hotkeys can be used in Bar Replay to help you quickly and conveniently control playback from the keyboard, without having to use your mouse or trackpad.

To start or stop playback, simply clickShift + ↓

To move one step forward, just clickShift + →

What else do you need to know to get started?

As you move through the potentials that Bar Play offers, you’ll find out more about the feature and how it works in practice. Here are some helpful hints to get you started.

  • Server-side alerts persist based on real-time data
  • Generating new server-side alerts is not feasible during replay
  • Trading orders (including Paper Trading and other brokers) are executed using real-time data
  • Quotes visible on the trading panel and in the quotes list align with real-time data when in replay mode
  • Non-standard chart types are incompatible with Bar Replay
  • Regression Trend and Fixed Range Volume Profile tools are inactive during replay
  • It is not possible to replay bars in smaller segments
  • Bar Replay does not work with spread charts and tick-based charts

What if my Bar Replay isn’t working as it should?

We always strive to keep things running smoothly, but in the rare case that Bar Replay isn’t working as expected, there are a couple of things you can do.

  • If the Bar Replay isn’t displaying the desired data, this may be for a number of reasons, for example, there is no data available for this time period or if no data is available under the plan. In these cases, access to data is not possible.
  • Should the problem persist, you can always check out our Help Center. Here, you can find the answers to some of the frequently asked questions or reach out to our support team.

Navigate playback.Once inside the replay panel, you'll notice playback buttons that function similarly to those in media players. Try these buttons for yourself and explore how they work for navigation.

Bar Replay: how and why to test a strategy in the past (13)

Select starting point. The chart will now allow you to choose a starting point for your replay. Hover your cursor over the chart screen, a blue vertical line with scissors will appear. Click on the specific date and time you wish to start from.

In this section, you can select specific dates, allowing you to make any bar within the chart’s history your starting point for the replay, without manually moving the chart. In the same way, you can also choose the \"Select the first available day\" button to use the first day of the chart as your starting point. Additionally, you can choose the random bar function which will take you to a random bar within the chart.

Bar Replay: how and why to test a strategy in the past (14)

Start the playback.Click the Play button to initiate the replay. You can control the replay speed before or during playback according to your preferences.

Bar Replay: how and why to test a strategy in the past (15)

Manual advancement.Slow the replay down to get all the details. To move forward one step at a time, simply click the Forward button.

Bar Replay: how and why to test a strategy in the past (16)

Monitor status.On the corresponding status displayed on the chart, you can see when Bar Replay is running. When you see the replay symbol, the chart is in replay mode. You won’t see this symbol if you’re not replaying.

Bar Replay: how and why to test a strategy in the past (17)

Change starting point.Even if the replay is running, you can switch to a different starting point. Choose from “Select bar,” “Select data,” or “Random bar” to add a starting point for your analysis.

Bar Replay: how and why to test a strategy in the past (18)

Multiple charts.You can synchronously run the Bar Replay on all charts of the layout and track the dynamics of changes in one or completely different symbols at different timeframes at one point in time.

When switching to a workspace with several charts, you can select a replay mode: one current chart or all.

Bar Replay: how and why to test a strategy in the past (19)

In single chart mode, the replay can be launched on only one of the charts, and it will not differ from what it was before.

In the “All charts” mode, when you select the starting bar, the starting line will appear on all charts of the layout, and while you choose the starting point on one, the charts are synchronized in time so that the point from which replay will begin on each chart is in the visible area.

Bar Replay: how and why to test a strategy in the past (20)

Replay is synchronized in time, so if the charts have different timeframes, then charts with large timeframes will wait when playing until data from charts at smaller timeframes appears, that is, for example, on a chart with a weekly timeframe, a new bar will not appear until on a chart with a daily timeframe 7 bars will not load at timeframes.

End the replay.You can stop the replay and return to live data by using the \"Jump to real-time chart\" button. This brings you back to current market conditions instantly.

Bar Replay: how and why to test a strategy in the past (21)

Close the replay panel.To close the replay panel, either click the [X] button on it or click the Bar Replay button again at the top of the chart.

Bar Replay: how and why to test a strategy in the past (22)

How to use drawings and indicators in Bar Replay

Using drawings and indicators in Bar Replay and on a regular chart is a little different in terms of purpose and function.

In Bar Replay, drawings act as annotations for historical price data, assisting in strategy testing. You can create drawings, and they will be saved after the closing of Bar Replay.

Indicators provide insights into past price movements based on selected parameters, evaluating indicator performance for strategy improvement. In Bar Replay, indicators can be used to replay data for calculations.

What's the maximum depth of data history?

The length of historical data in Bar Replay can vary depending on the selected symbol and chart timeframe. For daily and daily-based timeframes, we display all available data on the chart, and the same data can be used in the Bar Replay mode. For intraday timeframes, TradingView keeps a limited amount of data, and the length in Bar Replay varies depending on the plan.

Essential and Plus plans
  • Calculated using the formula: now to 6 weeks back multiplied by timeframe in minutes
  • The higher the timeframe selected, the more intraday data is available

Example

You can go 6 weeks back on the 1-minute chart, 12 weeks back on the 2-minute chart, 30 weeks back on the 5-minute chart, 90 weeks back on the 15-minute chart.

Premium plan
  • Calculated to give more historical intraday data for Bar Replay: now to 6 months back multiplied by timeframe in minutes
  • The higher the timeframe selected, the more intraday data is available

Example

Premium users have access to 6 months of 1-minute data. For a 2-minute timeframe, this limit is doubled, and a year of 2-minute data is available; for 3-minute it is tripled and 18 months of 3-minute data is available.

For all second-based timeframes, Premium users have access to 90 days of data in Bar Replay.

Subscription

Second-based timeframes

1-minute
chart

2-minute
chart

3-minute
chart

5-minute
chart

15-minute chart

Essential/Plus

-

6 weeks

12 weeks

18 weeks

30 weeks

90 weeks

Premium

3 months

6 months

12 months

18 months

30 months

90 months

Professional plans

Our professional plans provide even more historical intraday data for Bar Replay. The limitations are below.

  • For Expert plans — from now to 270 days back multiplied by timeframe (in minutes)
  • For Elite plans — from now to 360 days back multiplied by timeframe (in minutes)
  • For Ultimate plans — from now to 450 days back multiplied by timeframe (in minutes)

For all seconds-based timeframes, Expert plans have access to 120 days of data, Elite plans have access to 150 days of data, and Ultimate plans can have the maximum length of seconds-based data in Bar Replay, which is 180 days.

Subscription

Second-based timeframes

1-minute
chart

2-minute
chart

3-minute
chart

5-minute
chart

15-minute chart

Expert

4 months

9 months

18 months

27 months

45 months

135 months

Elite

5 months

12 months

24 months

36 months

60 months

180 months

Ultimate

6 months

15 months

30 months

45 months

75 months

225 months


Please note that the above-mentioned replay limits are not applied to continuous futures charts — 1! and 2! symbols (for example, ES1!, BANKNIFTY1!) as they have their own special intraday limitations and it's not possible to play more than 20K intraday bars in the replay mode.

To access earlier intraday data, you need to select the starting point for Bar Replay on a higher timeframe and then switch to a lower time frame.

For example, if you want to play older 1-minute bars, you can go back to the daily timeframe, turn on the Replay mode and select the starting point somewhere within your plan's limits. Then, switch to a 1-minute time frame and press Play. Follow this link to see the video in our blog post.

If the specified starting point for the replay is too far away and there is no data available for the selected time period, Bar Replay will automatically bring you to the first available bar.

When you switch timeframes from higher to lower ones, it may happen that there is data available on the higher timeframe (e.g. 1 day) that is not available on the lower time frame chart (e.g. 1 min) as the intraday limit has been reached. In this case, you will see the message “Data point unavailable” in the bottom left corner of the chart, and your timeframe remains unchanged.

If you want to use a lower timeframe anyway, you need to switch to a real-time chart or find a starting point where a lower timeframe is available.

Bar Replay: how and why to test a strategy in the past (23)


Which hotkeys for Bar Replay you can use?

Getting from A to B as quickly as possible is important for everyone. Hotkeys can be used in Bar Replay to help you quickly and conveniently control playback from the keyboard, without having to use your mouse or trackpad.

To start or stop playback, simply clickShift + ↓

To move one step forward, just clickShift + →

What else do you need to know to get started?

As you move through the potentials that Bar Play offers, you’ll find out more about the feature and how it works in practice. Here are some helpful hints to get you started.

  • Server-side alerts persist based on real-time data
  • Generating new server-side alerts is not feasible during replay
  • Trading orders (including Paper Trading and other brokers) are executed using real-time data
  • Quotes visible on the trading panel and in the quotes list align with real-time data when in replay mode
  • Non-standard chart types are incompatible with Bar Replay
  • Regression Trend and Fixed Range Volume Profile tools are inactive during replay
  • It is not possible to replay bars in smaller segments
  • Bar Replay does not work with spread charts and tick-based charts

What if my Bar Replay isn’t working as it should?

We always strive to keep things running smoothly, but in the rare case that Bar Replay isn’t working as expected, there are a couple of things you can do.

  • If the Bar Replay isn’t displaying the desired data, this may be for a number of reasons, for example, there is no data available for this time period or if no data is available under the plan. In these cases, access to data is not possible.
  • Should the problem persist, you can always check out our Help Center. Here, you can find the answers to some of the frequently asked questions or reach out to our support team.

"},"popular":{"43000482542":{"solutionId":43000482542,"folderId":43000548581,"categoryId":43000363655,"title":"I forgot my username/password and would like to restore access to TradingView","lang":"en","updatedAt":"2024-04-01T13:11:29.000Z"},"43000473924":{"solutionId":43000473924,"folderId":43000547053,"categoryId":43000359303,"title":"Is US stock market data free by default?","lang":"en","updatedAt":"2024-03-20T10:45:34.000Z"},"43000502023":{"solutionId":43000502023,"folderId":43000554058,"categoryId":43000359303,"title":"I want to access Extended Hours data","lang":"en","updatedAt":"2024-03-18T09:47:35.000Z"},"43000471715":{"solutionId":43000471715,"folderId":43000547069,"categoryId":43000359310,"title":"I have been automatically charged after my trial and want a refund","lang":"en","updatedAt":"2022-05-19T06:23:37.000Z"},"43000471716":{"solutionId":43000471716,"folderId":43000547069,"categoryId":43000359310,"title":"I was automatically billed for 1 or 2 years and would like to have a refund","lang":"en","updatedAt":"2022-05-31T09:30:18.000Z"},"43000661857":{"solutionId":43000661857,"folderId":43000547456,"categoryId":43000359310,"title":"I paid for a plan, but my account has not been upgraded. How do I contact Support?","lang":"en","updatedAt":"2023-12-13T12:30:16.000Z"}},"language":"en","blogUrl":"https://www.tradingview.com/blog/en/","isMobileApp":false,"blackfridaySolutionShown":false,"cybermondaySolutionShown":false}}

Bar Replay: how and why to test a strategy in the past (2024)
Top Articles
What can you not put in an air fryer? 11 items experts warn against cooking in your appliance
Soup Etiquette
SZA: Weinen und töten und alles dazwischen
Www.mytotalrewards/Rtx
Jeremy Corbell Twitter
Explore Tarot: Your Ultimate Tarot Cheat Sheet for Beginners
Es.cvs.com/Otchs/Devoted
Lost Ark Thar Rapport Unlock
Victoria Secret Comenity Easy Pay
Our Facility
Günstige Angebote online shoppen - QVC.de
Everything You Need to Know About Holly by Stephen King
Mephisto Summoners War
Vcuapi
Missing 2023 Showtimes Near Landmark Cinemas Peoria
The Tower and Major Arcana Tarot Combinations: What They Mean - Eclectic Witchcraft
Little Rock Skipthegames
Jeffers Funeral Home Obituaries Greeneville Tennessee
Which Sentence is Punctuated Correctly?
پنل کاربری سایت همسریابی هلو
6892697335
14 Top-Rated Attractions & Things to Do in Medford, OR
Busted Mugshots Paducah Ky
Temu Seat Covers
Afni Collections
Evil Dead Rise Showtimes Near Sierra Vista Cinemas 16
Ullu Coupon Code
Craftybase Coupon
Vivification Harry Potter
Emuaid Max First Aid Ointment 2 Ounce Fake Review Analysis
DIY Building Plans for a Picnic Table
2024 Coachella Predictions
Goodwill Thrift Store & Donation Center Marietta Photos
Craigslist Greencastle
Grapes And Hops Festival Jamestown Ny
Space Marine 2 Error Code 4: Connection Lost [Solved]
Blasphemous Painting Puzzle
Ksu Sturgis Library
Gary Lezak Annual Salary
Newsweek Wordle
Saline Inmate Roster
Gas Buddy Il
War Room Pandemic Rumble
Www Pig11 Net
Myapps Tesla Ultipro Sign In
Blippi Park Carlsbad
Every Type of Sentinel in the Marvel Universe
Heat Wave and Summer Temperature Data for Oklahoma City, Oklahoma
Phunextra
Wvu Workday
Wieting Funeral Home '' Obituaries
OSF OnCall Urgent Care treats minor illnesses and injuries
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 6255

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.