Session Sweep Tracker: Does the Asian High and Low Hold, Get Swept or Break at the London Open? The idea behind it
The Asian range is one of the most watched levels of the day. The usual story is that the London open "runs the stops" above or below it and then reverses, and the opposite story is that the range simply breaks and price goes on. Both stories exist on every chart, and a single chart cannot tell you which one is more common on your symbol. Counting can. Several tools draw session ranges, and some mark sweeps or give trade signals. This indicator does neither of those as its goal. It follows each Asian range through the watch window and records how it ended, day after day, so that you can read the shares from the panel.
The definitions are short:
- Asian range. The highest high and the lowest low of the bars from InpAsiaStartHour to InpAsiaEndHour of the server time. When the session is over, the range is frozen for the day.
- Watch window. The InpWatchHours hours after the end of the Asian session (it ends at midnight at the latest).
- Move beyond a side. A bar of the watch window whose high is at least InpBufferPoints points above the Asian high, or whose low is at least that far below the Asian low. Each side is followed on its own, and only its first move beyond counts.
- Swept. The bar of the first move closed back inside the range (at or below the Asian high, or at or above the Asian low). Only the wick went beyond.
- Failed break. The bar of the first move closed beyond the level, but a later close inside the watch window came back inside the range before InpConfirmBars closes beyond the level were complete.
- Held break. InpConfirmBars closes in a row beyond the level, counting the close of the first bar. A break that is still being checked when the watch window ends also counts as held, because no close came back inside.
- Midpoint reached. After a sweep or a failed break, a later bar of the watch window reached the middle of the Asian range (its low at or below the midpoint after a move above, its high at or above it after a move below). The bar of the sweep or of the failure does not count.
A day counts only when it is complete: its Asian session and its watch window must each have at least InpMinCoverage percent of the bars that they would have without gaps. Other days (holidays, gaps in the history, a cut at the start of the history) are left out and counted in the panel.
There is no look-ahead. A bar is judged only after it has closed. The bar that is still forming is shown on the position line but never counted, because its high, low and close can still move. The statistics use days that are finished, and a day joins them when the first closed bar of a later day has arrived. The calculation is incremental: on every call only the new bars and the bar that was still forming are processed, the day is kept in a few numbers, and the history is never rescanned.
How to interpret it
- Position line (indicator window). Where the close is inside the Asian range during the watch window: 0 is the Asian low, 100 is the Asian high, 50 is the midpoint. Values above 100 or below 0 mean that the close is beyond the range. The line exists only in the watch window of days with a usable range, so the days appear as separate pieces.
- Marks on the position line. They sit on the bar of the first move beyond a side. A large white circle is a sweep, a gray square is a failed break, a small dot is a held break. A held break is marked when its check is complete, and a break that is still being checked has no mark yet. If both sides move on the same bar, only the mark for the Asian high is drawn, and the statistics still count both.
- Boxes (main chart). For each of the newest InpDaysShown days: a dashed rectangle with the Asian range, from the start of the Asian session to the end of the watch window, and a dotted line at its midpoint. The box of the running day grows while the Asian session is still running. A day with too few Asian bars has no box.
- Data Window.
- "Close inside the Asian range (0 low, 100 high, %)": the position line.
- "Swept (wick only)", "Failed break" and "Held break": the position of the close on the bar of the mark.
- "Asian range (points)": the size of the frozen range, in the watch window.
- Panel (top left of the chart).
- Line 1: symbol, timeframe, number of days counted, the sessions and the end of the watch window, all in server time.
- Line 2: the three definitions, with the number of closes in use.
- Line 3: days left out, the share of days on which both sides moved, and the share on which neither moved.
- Line 4 to 6: the table. For the Asian high and the Asian low: days counted, "move" (share of days on which the side was moved beyond), then among those days the shares of sweeps ("swp"), failed breaks ("fail") and held breaks ("held"), and "mid", the share of sweeps and failed breaks that reached the midpoint. Rows show "--" until the numbers behind them reach InpMinCases .
- Line 7: which side moved first (high, low, or both on the same bar), among the days with a move.
- Line 8: the minutes from the start of the watch window to the first move: the median and the value that covers 90% of the days (the time is counted in buckets of 15 minutes).
- "today" line: the Asian range of the running day and the state of each side: not touched, swept, failed break, held break, or beyond and still being checked.
- Last line: one line to copy, with symbol, timeframe, days and the three shares for each side.

Fig. 1. The last three days of a simulated H1 series, in server time. The dashed rectangles are the Asian ranges, drawn to the end of the watch window, with dotted midpoints. The lower window shows where the close is inside the range during the watch window (0 is the Asian low, 100 is the Asian high). The marks show the first move beyond a side: a large circle is a sweep, a square is a failed break and a small dot is a held break. The panel counts 75 simulated days, so the numbers say nothing about any real market. Black and white screenshot, per the Code Base image guidelines.
External variables (inputs)
| Input | Default | Purpose |
| InpAsiaStartHour | 0 | Start of the Asian session, hour of the server time (0-22). |
| InpAsiaEndHour | 8 | End of the Asian session, hour of the server time (1-23). It is kept above the start hour. |
| InpWatchHours | 4 | Hours after the Asian session that are watched (1-12). The window ends at midnight at the latest. |
| InpMinCoverage | 80 | Smallest share of the expected bars that the Asian session and the watch window need for a day to count (10-100 percent). |
| InpBufferPoints | 10 | How far a bar must go beyond the Asian high or low, in points (1-1000). Raise it to ignore tiny pokes. |
| InpConfirmBars | 2 | Closes beyond the level that make a break held, the close of the first bar included (1-6). |
| InpHistoryBars | 50000 | Newest bars analysed when the indicator loads or is fully recalculated. 0 analyses all bars. New bars are added as they arrive. |
| InpMinCases | 20 | Fewest days before a row shows percentages (5-500). |
| InpShowBoxes | true | Draw the Asian range and its midpoint on the chart. |
| InpDaysShown | 3 | Newest days that get a box (0-10). |
| InpShowPanel | true | Show the statistics panel. |
| InpLineColor | clrSilver | Color of the position line. |
| InpSweepColor | clrWhite | Color of the mark of a sweep. |
| InpFailedColor | clrGray | Color of the mark of a failed break. |
| InpHeldColor | clrSilver | Color of the mark of a held break. |
| InpBoxColor | clrWhite | Color of the Asian range box. |
| InpMidColor | clrGray | Color of the midpoint line. |
| InpTextColor | clrSilver | Panel text color. |
| InpFontSize | 8 | Panel font size (Consolas). The line height follows the size. |
| InpPanelX , InpPanelY | 8, 14 | Panel offset from the upper left corner of the chart, in pixels. |
Recommended use
- Timeframes. Any timeframe from M1 to H4, as long as a bar is not longer than the Asian session or the watch window. On a longer timeframe (D1, W1, MN1, or H4 with the default sessions) the indicator still loads without an error, draws nothing and shows one line of text in the panel corner and a note in the Experts tab. Switch to a lower timeframe to see the statistics. M15 and H1 are good starting points, because a sweep needs a few bars to show whether it was a wick or a close.
- Server time. All hours are server time, the time of the bars on your chart. Brokers differ, and many move the server clock by one hour with the daylight saving time of New York. Set the Asian session so that it covers the quiet hours of your broker's day, and check on the chart that the boxes surround the quiet part of the night. A box that starts in the middle of the move of the previous session gives meaningless numbers.
- Choose the rules before you look. The shares depend on InpBufferPoints , InpConfirmBars and the length of the watch window. A larger buffer turns small pokes into "no move" days. A longer confirm period gives more failed breaks. Compare symbols only with the same inputs, and do not tune the inputs until a table looks good.
- Number of days. A side with a move on 60% of 100 days has about 60 days behind its sweep, failed and held shares, so they move by several points when one day is added. Read the "days" column first. Load more history through InpHistoryBars : 50,000 bars are about 2,000 days on H1, but only 170 days on M5.
- The sides are not independent. Both sides can move on the same day, and the same volatility drives both. The shares of the high and the low describe two views of the same days, not two separate tests.
- Monday and holidays. A Monday whose Asian session starts late, or a holiday with few bars, fails the coverage test and is left out. The panel shows how many days were left out. If it is large, lower InpMinCoverage or check the history first, for example with the History Health Check indicator.
- Only the first move counts. After a side has been moved beyond once in the watch window, later moves of the same side are not classified. Moves after the watch window, and the sessions after it, are not covered.
- It is not a signal. The marks appear when a bar has closed and, for a failed or held break, after the hold check, so they come after the move. The indicator does not include spread, swap or slippage and does not give entries or exits.
- The data is the broker's data. Highs and lows depend on the broker's feed. The same symbol can give a slightly different table on another broker.
- It describes the past. The table shows what was usual in the loaded history. It does not predict today.
- Performance and memory. Each bar is processed once. A day is kept in a few numbers, the boxes change only when the range changes or a day starts, and later ticks handle only the newest bar and the panel.
- Chart objects. The boxes and midpoint lines (at most 20) and the panel lines are objects in the main chart window, named with the prefix SS_ . They are removed in OnDeinit() and when the history is recalculated.
- Account types. The indicator does not trade and does not depend on netting or hedging accounts.
- Your turn: post your numbers. Attach the indicator to a chart you trade, copy the last line of the panel and post it in the comments with the name of your broker. This is only the format, and its numbers are made up: EURUSD H1 | 1900 days | high: swept 38% failed 14% held 48% | low: swept 36% failed 15% held 49% . On your symbol, is a sweep more common than a clean break? Does the Asian high behave differently from the Asian low? How long does it take until the first move?