All scripts
Pro · Invite-only on TradingView
Free · Open source
Open Retest Stats
How often does price come back to the daily or weekly open – and how long does it take? Measured on your own chart.
- Type
- Statistics + open levels
- Replaces
- Daily Open · Weekly Open
- Recommended
- 5- to 15-minute chart
- Price
- Free, open source
Many traders watch the daily and the weekly open. Open Retest Stats doesn’t just draw these prices, it measures them: how often did price return to the open after moving away from it? How long did that take on average? And how often did it come back from the distance it’s at right now? The free, open-source script calculates this for exactly the market and timeframe you’re looking at. This page shows you what the numbers mean, what you do with them and where their limits are.
Overview
At a glance
What does it do?
It draws the daily and weekly open and keeps count of how often price came back after moving away – and how long that took.
What do I do with it?
You judge whether the open is a realistic target today, or whether the day is behaving like a trend day on which the open gets left behind. Long and short alike.
Why?
The open is the price where the market settled at the start of the day or week. Many participants refer to it – and often enough, price returns there.
What do I get?
Numbers instead of gut feeling: you know how typical a retest is on your market, and you notice sooner when a day breaks the pattern.
On your chart in 2 minutes
Quickstart
- 01
Open the script page
The button at the top of this page takes you to the script page on TradingView. The script is free and open source – no access request needed.
- 02
Add it to your favorites
On the script page, click Add to favorites (the star).
- 03
Add it to your chart
At the top of the chart, click Indicators, choose Favorites on the left and click Open Retest Stats.
- 04
Pick a market and timeframe
Start with a liquid market such as EUR/USD on the 15-minute chart. The default settings are fine to begin with.
The chart explained
What you see on the chart
- 1Daily open Yellow line, new every day.
- 2Weekly open Blue line, new every week.
- 3Shading The stretch between price and the daily open while price is away.
- 4Green dot The open was reached again – here the weekly open.
- 5Red cross The day ended without a return to the open.
- 6Labels on the right Current open with price and retest rate (“W-Open”, “D-Open”).
- 7Statistics table Status, retest rate, chance from here and median time.
Elements 1 to 5
Open lines, shading and retest marks
The lines show you where the open is. The shading and the marks show you what price did with it.
What does it do?
Yellow is the daily open, blue the weekly open, optionally purple the monthly open. When price has moved away from the daily open and hasn’t come back yet, the script shades the stretch in between.
What do I do with it?
You see at a glance how far price is from the open right now – and, looking back, on which days it returned and on which it didn’t.
Why?
The stretch to the open is exactly the distance a retest would still have to cover. The bigger it gets, the more the market has to give back.
What do I get?
A feel for how your market behaves around the open – not from memory, but marked right on the chart.
- When price has “left” the open: only once it has moved at least 15 % of the average range away – for the daily open, the average daily range of the last 20 days; for the weekly open, the weekly range. Without this filter, almost every first bar would already be a “retest”.
- When a retest counts: a later bar of the same day (or the same week) trades through the open again.
- Shading: only for the daily open. It is faint at the open and gets stronger towards price. As soon as the retest happens, it disappears.
- Green dot: the open was reached again after price had left it. Available for the daily, weekly and monthly open.
- Red cross: the period ended without price coming back. Available for the daily and weekly open.
Elements 6 and 7
Reading the statistics table
The top right corner holds the script’s actual answer: one row per open, with the current state and the statistics of past periods.
| Column | What it tells you |
|---|---|
| Open | Day, Week and – if enabled – Month, in the colour of the line. |
| Level | The price of the current open. |
| Now | At open: price hasn’t left the open yet. +0.42 ADR away: price is 0.42 average daily ranges above the open (AWR for the weekly open, AMR for the monthly open). Retested: already retested today. |
| Retest rate | In what percentage of past periods price came back to the open after leaving it. Hover over it to see the number of cases (n). |
| From here | Only while price is away: how often did price come back in earlier periods that had moved at least as far away as today so far? Shown from 10 such cases; below that it says “few cases”. |
| Median time | How long it typically took from leaving the open to the retest. Half of the retests came faster, the other half slower. Below 48 hours in hours (h), above that in days (d). |
In practice
How to work with it
Open Retest Stats doesn’t replace an entry. It answers questions you’d otherwise answer from your gut: is the open still a realistic target today? Is this a normal day, or is it getting out of hand? This is what a trading day with it looks like:
- 01
Before the session: get to know the market
Look at the retest rate, the median time and the number of cases (hover over the rate). With few cases, the number is a hint, not a statistic.
- 02
Price leaves the open
The shading appears and the table shows the distance in ADR. Now From here matters: how often did price come back from this distance in the past?
- 03
Read the situation
High “From here” value: the open is a possible target – for a counter-move or as a place to take partial profits. Low value or “few cases”: the day is unusual, and trading against the move gets riskier.
- 04
Watch the clock
If the median time is long gone and the open hasn’t come back, the day already belongs to the slower half or to the days without a retest. Don’t stubbornly wait for the return.
- 05
Use your own entry
A trade only comes from your own trigger – such as a reversal candle or a structure break on a lower timeframe – and a stop behind the last extreme. The open is the target, not the reason.
Three typical uses
- Target for counter-moves: if price has run far away in the morning and “From here” is high, the open is an obvious target. Long when price is below it, short when price is above it.
- Filter against fading the trend: if “From here” shows “few cases” or a low value, you skip counter-move ideas. On exactly these days, “it’ll come back” costs the most money.
- Retest as an entry zone: if price comes back to the open and holds there, the open itself can become support or resistance for a trade in the trend direction. The “Daily open retested” alert tells you when that moment arrives.
Recommendations
Which markets fit – and which don’t
We ran Open Retest Stats with default settings on five markets and read off the table. The result is surprising at first glance: on every market, price came back to the daily open on roughly three out of four days. The differences are in the details – above all in the speed.
| Market | Daily open: retest rate | Median time | Weekly open: retest rate | Median time |
|---|---|---|---|---|
| EUR/USD | 76 % | 3.3 h | 77 % | 18.8 h |
| S&P 500 future (ES) | 75 % | 4.0 h | 88 % (few cases) | 16.0 h |
| Gold (XAU/USD) | 74 % | 1.8 h | 79 % | 18.9 h |
| Bitcoin (BTC/USDT) | 76 % | 2.9 h | 77 % | 9.5 h |
| GBP/NZD | 82 % | 0.5 h | 81 % | 12.5 h |
Source: our own market check with Open Retest Stats, read on 15 Nov 2026. 15-minute chart, default settings, loaded chart history on TradingView (FX:EURUSD, CME_MINI:ES1!, OANDA:XAUUSD, BINANCE:BTCUSDT, FX:GBPNZD). Median time = time from leaving the open to the retest. The values change with every new day.
Where the open-retest idea fits well
GBP/NZD
5 to 15 minutes
- The highest and fastest rate in the check: 82 % for the daily open, median only 0.5 hours.
- Lots of back and forth: the Bank of England, the RBNZ and commodity prices pull in different directions. The pair often swings around a mean – bad for trend tools, but exactly what a return to the open thrives on.
- But: a thin cross pair with a wide spread. On returns that are quick and cover little distance, the spread eats a large share. Always factor in your costs.
EUR/USD
5 to 15 minutes
- 76 % for the daily open, median 3.3 hours – a typical, easily measurable value.
- The most traded pair in the world: very tight spreads, costs hardly matter.
- Trades almost around the clock: the day starts in the evening New York time. So the open is more of an agreed point in time than an event – yet the statistics show that price often returns to it.
Use with care
Index futures: S&P 500 (ES) and DAX
mind the session
- Which open? ES starts its trading day in the evening (Chicago time), not at the cash open at 9:30 New York. For the DAX future, the day starts in the night, not at the Xetra open at 9:00. The script measures the open of the symbol’s session.
- If you want to measure the cash open, use a symbol with cash-session hours: for the S&P 500, for example, the ETF SPY; for the DAX, the index itself (Xetra 9:00 to 17:30 CET).
- In the check, the ES weekly value is based on few cases – use the 1-hour chart for the weekly open, as it loads more history.
Gold (XAU/USD)
5 to 15 minutes
- The lowest daily rate in the check (74 %), but a short median time (1.8 hours): when gold comes back, it usually does so quickly.
- Macro-driven: US data at 8:30 New York time, the dollar and real yields create trend days on which the open is left far behind.
- No return-to-open ideas ahead of major dates – the statistics don’t know the calendar.
Bitcoin (BTC/USDT)
15 minutes to 1 hour
- 76 % for the daily open, and at 9.5 hours the fastest weekly median in the check.
- Trades around the clock: the daily open at midnight UTC is purely a convention – there’s no real opening and no gap at the start of the week.
- Thin weekends and moves driven by risk sentiment in the stock market produce outliers.
Where the numbers are of little use
Illiquid stocks and stocks on earnings days
all timeframes
- The open is an auction price: for stocks, the opening auction sets the open – often with a gap to the previous day. In illiquid names, a single order can distort the open.
- Earnings and news move price in jumps. On such days, the statistics of normal days say little.
- Wide spreads and little history on the intraday chart: few cases, high costs.
Which timeframe?
- 5 to 15 minutes: the standard for the daily open. Enough bars per day for an accurate measurement, and on the 15-minute chart TradingView loads far more days than on the 1-minute chart.
- 1 hour: good for the weekly open, because more weeks make it into the statistics. Coarser for the daily open: if price leaves the open and comes back within the same hour, it doesn’t count.
- 1 to 3 minutes: little history, so few cases. Always check n (hover over the retest rate).
- Daily chart: the daily open is hidden here; the weekly and monthly open remain.
The part that makes the difference
Practical tips for the trade
The numbers tell you how often something happened. Whether that turns into a good trade is decided at these points:
Before the entry
- Check the economic calendar. Central bank decisions, jobs and inflation data turn normal days into trend days. The retest rate knows nothing about them.
- Check intermarket. For currencies and gold, the dollar and yields; for index futures, bond yields; for Bitcoin, risk sentiment in the stock market. If they move in the direction of the move, a return to the open is less likely than the table suggests.
- Set the stop in advance – behind the last extreme, not “somewhere”. Price often runs further away before it comes back.
- Do the risk : reward maths. If the way to the open is shorter than the distance to your stop, the trade often isn’t worth it, even with a high rate.
While the trade is running
- Take partial profits before the open. For a retest, price only has to touch the open. Waiting to exit exactly at the open often misses the last tick.
- Use the median time as a clock. Once it’s clearly exceeded, the idea gets weaker. Reduce or close the trade instead of hoping.
- Don’t move the stop away. The days without a retest are the expensive ones. A fixed stop makes sure one of them doesn’t cost you the gains of many days.
Don’t miss a thing
Setting up alerts
- 01
Open the alert window
At the top of the chart, click Alert or press
Alt + A. - 02
Choose the condition
Under Condition, select Open Retest Stats and below it the alert you want.
- 03
Trigger
“Once per bar” notifies you as soon as the open is touched. “Once per bar close” waits for the bar to close.
- 04
Notification
Choose app, email or webhook and save.
| Alert | When it fires |
|---|---|
| Price left the daily open | Price has moved far enough away from the daily open – from now on, the clock for a retest is running. |
| Daily open retested | Price has returned to the daily open after leaving it. |
| Weekly open retested | The same for the weekly open. |
| Monthly open retested | The same for the monthly open (only if Monthly open is enabled). |
Reference
All settings
Double-click the name “Open Retest [Indicatr]” at the top left of the chart to open the settings. They’re split into three groups.
1 · Opens and Retest logic
- Daily openDefault: on, yellow
- Daily open with line, shading, marks, table row and alerts. Intraday charts only.
- Weekly openDefault: on, blue
- Weekly open. On all charts below the weekly chart.
- Monthly openDefault: off, purple
- Monthly open with its own table row. Interesting for swing traders; on the intraday chart often with few cases.
- Price has left the open after (x average range)Default: 0.15
- How far price has to move away before a return counts as a retest – as a fraction of the average range. Higher: only clear excursions count, there are fewer cases, and the return is usually harder. Lower: even small twitches count, and the rate becomes artificially high.
- Statistics: last N periodsDefault: 250
- The maximum number of past periods that go into the statistics. More is only possible if the chart loads enough history.
- Average range: last N periodsDefault: 20
- Over how many periods the average range (ADR, AWR, AMR) is measured. Shorter reacts faster to quiet or wild phases; longer is smoother.
2 · Display
- Shade the distance while price is away from the daily openDefault: on
- The shading between price and the daily open. Switch it off if your chart feels too busy.
- Mark retests and missed retestsDefault: on
- Green dots and red crosses. The alerts work without the marks too.
- Show statistics tableDefault: on
- The table at the top right. The labels on the lines show the retest rate even without the table.
- Retested / Not retestedDefault: green / red
- Colours of the marks and of the status in the table.
From practice
Common mistakes
- Reading the rate as a buy signal. 76 % says how often price came back – not whether a trade towards the open would have made money.
- Fading every trend day. “It’ll come back” is the most expensive phrase on days without a retest. “From here” shows you early when a day is unusual.
- Overlooking the number of cases. A value from 15 weeks is a hint, not a statistic. Hover over the rate and check n.
- Measuring the wrong open. On futures, the daily open is the start of the evening or overnight session, not the cash open. For the cash open, use a symbol with cash-session hours.
- Comparing markets on different timeframes. The values depend slightly on the timeframe – always compare on the same one.
- Forgetting costs. Quick returns cover little distance. With a wide spread, often nothing is left.
FAQ
Does Open Retest Stats repaint?
No. Everything is built from the chart’s bars, with no look into the future. A green dot appears on the bar that reaches the open, a red cross as soon as the period is over. After that, neither changes. Only the table and the labels on the right update continuously.
Why don’t I see a daily open on the daily chart?
The daily open only makes sense on intraday charts and is hidden on the daily chart. The weekly and monthly open stay visible.
What does “few cases” mean?
For the “From here” column, there were fewer than 10 earlier periods that had moved at least as far from the open as today. That usually means the day has run unusually far. With so few cases, a percentage would be chance.
Why do the values differ between the 5- and the 60-minute chart?
The script works with each bar’s high and low. On a higher timeframe, short excursions and returns fall into the same bar and don’t count. On top of that, every timeframe loads a different amount of history. So always compare on the same timeframe.
Which price is “the open”?
The opening price of the session TradingView uses for the symbol. For currencies and gold, that’s usually the evening New York time; for Bitcoin, midnight UTC; for futures, the start of the evening or overnight session; for stocks and cash indices, the exchange open.
Does a high retest rate mean I should trade against the move?
No. It shows that the open was often a realistic target. Whether a trade makes sense depends on your stop, risk : reward, costs, the news and your entry. The days without a return are often the big trend days.
How do you like Open Retest Stats?
Your vote tells us what to work on next.
Support
Report a problem or share feedback
Something off with the script, unclear in the docs, or you have an idea? Write to us. We reply by email.
Open Retest Stats
Measures how often price returns to the daily or weekly open after leaving it and how long that usually takes.
For educational and analytical purposes only. Not financial advice. Lines, marks and statistics are not recommendations to buy or sell. All statistics describe past behaviour on historical prices; past results are no guarantee of future results. Trading involves a risk of loss.