OPEN-SOURCE SCRIPT
Asian Session XAUUSD by Capitanzor

This indicator highlights the Asian trading session (default 01:00–03:00, Europe/London time) on the chart — a period typically characterized by lower volatility and tighter price ranges in Gold (XAUUSD), before the London session opens.
The session's time range and timezone are fully configurable via the indicator's settings (input.session and input.string), allowing each trader to adapt it to their own local time and preferred session window, without needing to edit the code.
How it works:
- The script uses time() combined with input.session() to detect whether the current bar falls within the selected time range, converted to the chosen timezone.
- When the condition is true, the background is shaded in a light yellow color for easy visual identification.
- Useful for spotting pre-breakout consolidation zones ahead of higher-volatility sessions (e.g. London or New York open).
—
Este indicador resalta la sesión asiática (por defecto 01:00–03:00, hora de Londres) en el gráfico — un periodo típicamente caracterizado por baja volatilidad y rangos de precio más estrechos en el oro (XAUUSD), antes de la apertura de la sesión de Londres.
El rango horario y la zona horaria son totalmente configurables desde las opciones del indicador, permitiendo a cada trader adaptarlo a su hora local sin necesidad de tocar el código.
Cómo funciona:
- El script usa time() junto con input.session() para detectar si la vela actual cae dentro del rango horario seleccionado, convertido a la zona horaria elegida.
- Cuando la condición se cumple, el fondo se sombrea en amarillo claro para facilitar su identificación visual.
- Útil para detectar zonas de consolidación previas a sesiones de mayor volatilidad (ej. apertura de Londres o Nueva York).
The session's time range and timezone are fully configurable via the indicator's settings (input.session and input.string), allowing each trader to adapt it to their own local time and preferred session window, without needing to edit the code.
How it works:
- The script uses time() combined with input.session() to detect whether the current bar falls within the selected time range, converted to the chosen timezone.
- When the condition is true, the background is shaded in a light yellow color for easy visual identification.
- Useful for spotting pre-breakout consolidation zones ahead of higher-volatility sessions (e.g. London or New York open).
—
Este indicador resalta la sesión asiática (por defecto 01:00–03:00, hora de Londres) en el gráfico — un periodo típicamente caracterizado por baja volatilidad y rangos de precio más estrechos en el oro (XAUUSD), antes de la apertura de la sesión de Londres.
El rango horario y la zona horaria son totalmente configurables desde las opciones del indicador, permitiendo a cada trader adaptarlo a su hora local sin necesidad de tocar el código.
Cómo funciona:
- El script usa time() junto con input.session() para detectar si la vela actual cae dentro del rango horario seleccionado, convertido a la zona horaria elegida.
- Cuando la condición se cumple, el fondo se sombrea en amarillo claro para facilitar su identificación visual.
- Útil para detectar zonas de consolidación previas a sesiones de mayor volatilidad (ej. apertura de Londres o Nueva York).
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
