Xi Asian Session Indicator: The Range And Its Break

Written by Dominic Walsh · Published · Last updated

The xi asian session indicator builds one range and then watches it. Asia usually trades quietly, so the high and low it leaves behind become the levels London tests. This tool draws that range and marks the break.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 2: Asia Buy Breakout, Asia Sell Breakout
Alerts popup, push notification, email, sound
Inputs 22

What the Xi Asian Session Indicator draws on the chart

A goldenrod rectangle covers the Asian range when `ShowRangeBox` is true.

Royal blue and fire brick lines extend the range high and low.

`Asia Buy Breakout` uses arrow 233 and `Asia Sell Breakout` uses 234.

Labels report the range size in pips.

  • Asia Buy Breakout: arrow, lime, width 2, arrow code 233
  • Asia Sell Breakout: arrow, red, width 2, arrow code 234
Xi asian session indicator range box, levels and breakout arrows on EURUSD H1.
Xi asian session indicator range box, levels and breakout arrows on EURUSD H1.

How the Xi Asian Session Indicator calculates its values

The window is yours to set

`AsianStartHour` `0` to `AsianEndHour` `8` defines the session in GMT. `BrokerGMTOffset` `0` then converts those hours into broker time, and getting that number right matters more than anything else here.

Range comes from the bars inside

Every bar stamped inside the window contributes its high and low. The extremes across all of them become the box, which finishes when the session closes.

One break per side per day

`ExtendForwardHours` `16` carries the levels into the next session. The first close beyond an edge earns an arrow, and the same side then stops firing for that day.

How to read the signals

A narrow Asian range often precedes a decisive London move.

A wide one means the session already did the work.

Marks sit `ArrowGapPips` `1` pip from the candle.

`HistoryDays` `10` decides how many past ranges stay drawn.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

`EnableAlerts` heads the set and ships true beside `EnablePopup`. Turn on `EnablePushNotify` for a handset, `EnableEmail` for mail, or `EnableSound` to play `SoundFile`. Those three arrive false. A break reports once per closed bar.

Every Xi Asian Session Indicator input

Core settings

Setting What it does Default
AsianStartHour Asian session start hour (GMT). Session open hour in GMT, default `0`. 0
AsianEndHour Asian session end hour (GMT). Session close hour in GMT, default `8`. 8
BrokerGMTOffset Broker server GMT offset (hours). Hours between broker time and GMT, default `0`. 0
ExtendForwardHours Extend range box/lines forward (hours). Hours the levels project forward, default `16`. 16

Display settings

Setting What it does Default
HistoryDays Days of history to draw. Past sessions kept on the chart, default `10`. 10
ShowRangeBox Draw the session rectangle. Draw the session rectangle, default `true`. on
ShowRangeLines Draw range high/low lines. Draw the range high and low lines, default `true`. on
ShowBreakoutArrows Print breakout arrows. Mark the first break of each edge, default `true`. on
ShowLabels Print range/pip labels. on
ArrowGapPips Arrow gap from candle (pips). Pips between an arrow and the candle, default `1`. 1
BoxColor Range box outline. goldenrod
HighColor Range high line. royal blue
LowColor Range low line. fire brick
BuyArrowColor Buy breakout arrow. lime
SellArrowColor Sell breakout arrow. red
LineWidth Box / line width. Width of the box and level lines, default `2`. 2

Alert settings

Setting What it does Default
EnableAlerts (see inputs panel) on
EnablePopup (see inputs panel) on
EnablePushNotify (see inputs panel) off
EnableEmail (see inputs panel) off
EnableSound (see inputs panel) off
SoundFile (see inputs panel) alert.wav
Xi asian session indicator inputs panel with AsianStartHour and BrokerGMTOffset.
Xi asian session indicator inputs panel with AsianStartHour and BrokerGMTOffset.

Settings that fit your chart

The Asian range strategy belongs on intraday charts. EURUSD H1 is the reference chart, where an eight-hour session gives eight bars. On M15 the range fills in with more detail. Above H4 the whole session becomes one candle.

When the Xi Asian Session Indicator fails

`BrokerGMTOffset` `0` suits very few brokers, so it needs setting first.

A quiet Asian session can leave a range too narrow to be meaningful.

Only the first break per side is marked, so a genuine second move gets nothing.

Copy the compiled Xi Asian Session Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Related on forexmt4systems.com: London Session Breakout Strategy.

Background reading on the method behind the Xi Asian Session Indicator: Ask price on Wikipedia, Distance To Highs at StockCharts ChartSchool.

Download the Xi Asian Session Indicator for MT4 and MT5

The zip holds the compiled Xi Asian Session Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What does BrokerGMTOffset 0 assume?

That your broker clock matches GMT, which few do. Most sit two or three hours ahead. Set it before anything else, because a wrong offset puts the whole session window on the wrong bars.

Why does ExtendForwardHours use 16?

Because the Asian range matters during London and New York, which together run about sixteen hours after it closes. Extending that far keeps the levels visible for as long as they are relevant.

Does Asia Buy Breakout fire more than once?

No, once per side per day. After the first close beyond the range high, that side stops for the session. It keeps a strong trend from filling the chart with repeated arrows.

How does HistoryDays 10 affect the chart?

It keeps ten past sessions drawn, each with a box and two lines. That is thirty objects before labels. Reduce it if you run other tools that also draw on price.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Xi Asian Session Indicator as one input. Always backtest before trading live.

Category: this is part of our Sessions collection. Browse more Sessions for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment