Opening range
- Indicators
-
Mattia Impicciatore
Hello,
I’m Mattia — a fintech developer, trader, and expert in MQL5, Python, and web technologies. - Version: 1.12
Opening‑Range Sessions (GMT‑Aware) is a lightweight indicator that automatically draws the opening range — high, low, and a color‑filled box — for the main FX liquidity windows: Sydney, Tokyo, London and New York.
The indicator detects your broker‑server time‑zone on the fly, so every session starts at the correct local moment, no matter where the server (or the trader) is located.
Key features
-
Automatic Time‑Zone Detection – Uses the server’s GMT offset; no manual time adjustment required when you switch broker or VPS.
-
Four Built‑in Sessions + Full‑Day – Toggle Sydney, Tokyo, London, New York or the 24‑hour range with a simple checkbox.
-
Pips or Percent Mode – Choose a fixed range in pips or a percentage of the opening price.
-
Cross‑Midnight Handling – Sessions that span midnight (e.g. Sydney) are displayed correctly without split boxes.
-
Full Visual Customisation – Separate box colours for each session, configurable line style and thickness, automatic centre label.
-
Instant Updates – Any parameter change is applied immediately; no chart reload needed.
-
Ultra‑Light Code – Pure MQL5, no external libraries; minimal CPU/RAM footprint, perfect for VPS environments.
Quick usage
-
Drop the indicator on any chart, any timeframe.
-
Select Mode (Pips / Percent) and an appropriate Range Value for your strategy.
-
Enable only the sessions you need and tweak colours to match your template.
Tip: Try 0.2 % on H1 for breakout plays, or 10‑15 pips on M15 for mean‑reversion setups.
Change‑log
-
v 1.12 – Auto‑GMT shift, added Sydney session, optional Full‑Day box, graphics refactor.
-
v 1.00 – 1.11 – internal development builds.

doesnt work cant set time manually