Session Sweep Tracker: Asian Range Behavior at London Open

Session Sweep Tracker: Asian Range Behavior at London Open
Download ALL MT5 indicators (6101)
YouTube Video Thumbnail



Similar MetaTrader Tools

Session Sweep Tracker: Asian Range Behavior at London Open

Info

The Session Sweep Tracker: Asian Range Behavior at London Open is a Indicator for MetaTrader 5 that session sweep tracker: does the asian high and low hold, get swept or break at the london open. The Idea Behind ItThe Asian range represents key levels often closely watched during trading sessions.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Session Sweep Tracker: Asian Range Behavior at London Open

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

What this tool does

Session Sweep Tracker: Does the Asian High and Low Hold, Get Swept or Break at the London Open.

Typical Use Case

This Indicator excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.

Description & Settings

Related: Symbol Trading Hours: Broker Sessions, Countdown, and Off-Hours Bars - another powerful indicator for MetaTrader 5 traders.

Session Sweep Tracker: Does the Asian High and Low Hold, Get Swept or Break at the London Open?

Also recommended: Key Trading Levels Indicator: PDH/PDL, Weekly, Monthly, Midnight Open, Asian Range, and Sweeps - similar indicator with strong performance on MetaTrader 5.


The Idea Behind It

The Asian range represents key levels often closely watched during trading sessions. A common observation is that the London open frequently triggers stop-losses around the Asian range's extremes before potentially reversing, while another pattern suggests the range breaks and price continues in that direction. This indicator aims to quantify which of these scenarios is more prevalent for a given symbol by tracking each Asian range and recording its outcome daily.

Definitions

Asian range: The highest high and lowest low recorded within the server time from InpAsiaStartHour to InpAsiaEndHour. This range is finalized once the session concludes.

Watch window: The period of InpWatchHours following the end of the Asian session, with a latest end time of midnight.

Move beyond a side: Occurs when a bar within the watch window closes at least InpBufferPoints above the Asian high or below the Asian low. Each side is monitored independently, and only the first such move is registered.

Swept: If the first move beyond a range boundary closes back within the range (i.e., at or below the Asian high after an upward move, or at or above the Asian low after a downward move), indicating only the wick extended beyond the range.

Failed break: The first move beyond the range level closes beyond it, but a subsequent close within the watch window occurs back inside the range before the required InpConfirmBars of consecutive closes beyond the level are achieved.

Held break: Characterized by InpConfirmBars of consecutive closes beyond the level, including the initial bar's close. A break that is still under evaluation when the watch window ends is also considered held if no subsequent close returns price within the range.

Midpoint reached: After a sweep or failed break, a later bar within the watch window reaches the midpoint of the Asian range (its low at or below the midpoint following an upward move, or its high at or above it following a downward move). The bar that constituted the sweep or failure does not count towards this.

A day is considered complete and included in the analysis only if both its Asian session and watch window have at least InpMinCoverage percent of their expected bars, accounting for potential gaps. Days with insufficient data (e.g., holidays, gaps) are excluded and noted in the panel.

The indicator operates without look-ahead bias, evaluating each bar only after it has closed. Bars currently forming are displayed but not counted due to their potential for price changes. The statistics are based on completed days, which are added to the dataset as the first closed bar of a subsequent day arrives. Calculations are incremental, processing only new bars and the currently forming bar to maintain efficiency.

How to Interpret

Position line (indicator window): This line illustrates the closing price's position within the Asian range during the watch window. A value of 0 represents the Asian low, 100 represents the Asian high, and 50 represents the midpoint. Values outside the 0-100 range indicate closes beyond the Asian range. This line is displayed only for days with a valid range, appearing as segmented lines.

Marks on the position line: These marks indicate the bar of the first move beyond a range boundary. A large white circle signifies a sweep, a gray square denotes a failed break, and a small dot represents a held break. Marks for held breaks appear once their confirmation period is complete; breaks still under evaluation have no mark. If moves occur on both the high and low sides of the range on the same bar, only the mark for the Asian high is displayed, though statistics for both sides are still recorded.

Boxes (main chart): For the most recent InpDaysShown days, a dashed rectangle outlines the Asian range from the start of the Asian session to the end of the watch window, with a dotted line indicating the midpoint. The box for the current day expands while the Asian session is active. Days with insufficient Asian bars will not display a box.

Data Window:
- Close inside the Asian range (0 low, 100 high, %): Corresponds to the position line.
- Swept (wick only), Failed break, Held break: Indicate the closing price's position on the bar where the mark appeared.
- Asian range (points): The size of the finalized range in points during the watch window.

Panel (top left of the chart):
- Line 1: Displays the symbol, timeframe, number of days counted, session times, and watch window end, all in server time.
- Line 2: Shows the counts for the three definitions (swept, failed break, held break) based on the number of closes.
- Line 3: Indicates the number of days excluded from the analysis and the percentage of days where both sides moved versus neither side moved.
- Lines 4 to 6: A table detailing statistics for the Asian high and low. It includes days counted, the percentage of days with a 'move' beyond the level, and within those, the percentages of sweeps ('swp'), failed breaks ('fail'), and held breaks ('held'). 'mid' represents the percentage of sweeps and failed breaks that reached the midpoint. Rows display '--' until the minimum number of cases (InpMinCases) is met.
- Line 7: Shows which side (high, low, or both on the same bar) moved first among days with a move.
- Line 8: Presents the median and the 90th percentile for the time elapsed from the watch window's start until the first move, categorized into 15-minute intervals.
- 'today' line: Details the current day's Asian range and the status of each side (untouched, swept, failed break, held break, or beyond and still being checked).
- Last line: A single-line summary for easy copying, including symbol, timeframe, days counted, and the three percentage shares for each side.

Figure 1 shows the last three days of a simulated H1 series in server time. Dashed rectangles represent Asian ranges extending to the watch window end, with dotted midpoints. The lower window illustrates the closing price position within the range during the watch window (0=low, 100=high). Marks denote the first move beyond a side: large circle for sweep, square for failed break, dot for held break. The panel displays counts for 75 simulated days.

External Variables (Inputs)

Input
Default
Purpose
InpAsiaStartHour
0
Start hour of the Asian session (server time, 0-22).
InpAsiaEndHour
8
End hour of the Asian session (server time, 1-23), must be after the start hour.
InpWatchHours
4
Duration in hours after the Asian session to monitor (1-12). The window concludes at midnight at the latest.
InpMinCoverage
80
Minimum percentage of expected bars required in the Asian session and watch window for a day to be included (10-100%).
InpBufferPoints
10
Minimum points a bar must extend beyond the Asian high or low to count as a move (1-1000). Increase to ignore minor excursions.
InpConfirmBars
2
Number of consecutive closes beyond a level required to confirm a break (1-6), including the first bar's close.
InpHistoryBars
50000
Number of most recent bars to analyze on initial load or full recalculation (0 analyzes all available bars). New bars are added dynamically.
InpMinCases
20
Minimum number of days required before percentages are displayed in the statistics table (5-500).
InpShowBoxes
true
Enables drawing of the Asian range and midpoint boxes on the chart.
InpDaysShown
3
Number of recent days for which to display boxes (0-10).
InpShowPanel
true
Enables the display of the statistics panel.
InpLineColor
clrSilver
Color for the position line.
InpSweepColor
clrWhite
Color for the sweep mark.
InpFailedColor
clrGray
Color for the failed break mark.
InpHeldColor
clrSilver
Color for the held break mark.
InpBoxColor
clrWhite
Color for the Asian range box.
InpMidColor
clrGray
Color for the midpoint line.
InpTextColor
clrSilver
Color for the panel text.
InpFontSize
8
Font size for the panel text (Consolas). Line height adjusts accordingly.
InpPanelX, InpPanelY
8, 14
Offset in pixels from the upper-left corner of the chart for the panel position.

Recommended Use

Timeframes: Suitable for timeframes from M1 to H4, provided a bar's duration does not exceed the Asian session or watch window length. On longer timeframes (D1, W1, MN1, or H4 with default sessions), the indicator will load but display minimal information. M15 and H1 are recommended starting points, allowing sufficient bars for sweeps to be clearly identified as wicks or closes.

Server Time: All time inputs are based on server time, which corresponds to the chart's bar time. Due to variations in broker settings and daylight saving adjustments, ensure the Asian session aligns with your broker's quiet period. Verify visually on the chart that session boxes appropriately bracket the overnight quiet phase.

Input Parameter Selection: The reported statistics are influenced by InpBufferPoints, InpConfirmBars, and the watch window duration. Adjusting InpBufferPoints can filter out minor price excursions. A longer InpConfirmBars period may increase the count of failed breaks. For consistent comparisons, always use the same input parameters across different symbols. Avoid optimizing parameters until a clear pattern emerges.

Number of Days Analyzed: The reliability of statistics increases with the number of analyzed days. A side moving on 60% of 100 days implies approximately 60 days contribute to the sweep, failed, and held break percentages. Always check the 'days' column first. Increasing InpHistoryBars extends the analysis period; 50,000 bars on H1 represent roughly 2,000 days, while on M5, it's about 170 days.

Interdependence of Sides: Moves on the high and low sides of the Asian range are driven by the same underlying volatility. The reported percentages for each side represent different perspectives on the same trading days, not independent events.

Handling Weekends and Holidays: Days with truncated sessions (e.g., Mondays with late starts, holidays) may fail the coverage test and be excluded. The panel indicates the number of excluded days. If this number is high, consider lowering InpMinCoverage or verifying historical data integrity.

First Move Significance: Once a side has been breached within the watch window, subsequent moves on the same side are not classified. Moves occurring outside the watch window are not analyzed.

Not a Trading Signal: Marks appear after a bar closes and, for failed/held breaks, after the confirmation period. The indicator does not account for spread, swap, or slippage, and thus does not provide trading entries or exits.

Broker Data Dependency: Highs and lows are derived from the broker's data feed. Slight variations in statistics may occur between different brokers for the same symbol.

Historical Analysis: The indicator describes past market behavior based on loaded history and does not predict future performance.

Performance and Memory Efficiency: Each bar is processed once. Daily data is stored efficiently in minimal variables. Chart objects are updated dynamically, and later ticks primarily involve processing the newest bar and updating the panel.

Chart Objects: The indicator creates chart objects (boxes, midpoint lines, panel) prefixed with 'SS_'. These are automatically removed upon indicator removal or history recalculation.

Account Type Compatibility: As the indicator does not execute trades, it is compatible with both netting and hedging account types.

User Contribution: Share your findings by attaching the indicator to your chart, copying the last line of the panel, and posting it in the comments along with your broker's name. Example format: EURUSD H1 | 1900 days | high: swept 38% failed 14% held 48% | low: swept 36% failed 15% held 49% . Analyze whether sweeps are more common than clean breaks on your symbol, compare the behavior of the Asian high versus the low, and determine the typical time until the first move occurs.

You may also like: Ezo Session Boxes: Asian, London, and New York Session High-Low Boxes with Auto GMT Offset - excellent alternative for indicator users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version     "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_separate_window
#property indicator_buffers 5
#property indicator_plots   5
#property indicator_level1  0.0
#property indicator_level2  100.0
#property indicator_levelcolor clrDimGray

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.