Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Multi-Session Range Boxes with Spread, StopsLevel and ATR HUD - indicator for MetaTrader 5

Li Lu
Li Lu
Quantitative developer specializing in MQL5 (MetaTrader 5) and Python 3 algorithmic trading systems.
Views:
48
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Overview

Session_Liquidity_Boxes_HUD plots clean, non-repainting intraday range boxes for the Tokyo/Asia, London, and New York trading sessions directly on the price chart while exposing running session High and Low series via indicator buffers for Expert Advisor integration.

Session_Liquidity_Boxes_HUD on USDJPY H1

Key Features

  • Three Configurable Intraday Sessions: Independent enable toggles, server-time start/end hours (supporting overnight wraparound), and custom fill colors for Asia, London, and New York sessions.
  • EA-Ready Indicator Buffers: Buffer 0 ( Session High ) and Buffer 1 ( Session Low ) expose the active session boundaries to iCustom / CopyBuffer with explicit chronological indexing and EMPTY_VALUE outside active hours.
  • Instance-Isolated Chart Objects: Uses a unique per-instance object prefix so multiple indicator instances or other chart tools never collide on recalculation or removal.
  • Live Broker-Safety & Volatility HUD: Displays current symbol SYMBOL_SPREAD , SYMBOL_TRADE_STOPS_LEVEL , and ATR(14) in points so discretionary traders and algo developers can verify stop-placement clearance at a glance.

Input Parameters

  • InpShowAsia / InpAsiaStartHour / InpAsiaEndHour — Toggle and server-time window for the Tokyo/Asia session (default 00:00–08:00 ).
  • InpShowLondon / InpLondonStartHour / InpLondonEndHour — Toggle and server-time window for the London session (default 08:00–14:00 ).
  • InpShowNY / InpNYStartHour / InpNYEndHour — Toggle and server-time window for the New York session (default 14:00–21:00 ).
  • InpMaxDays — Historical lookback in calendar days (default 7 ) to keep chart rendering fast.
  • InpATRPeriod / InpShowHUD — ATR period and toggle for the top-left Spread / StopsLevel / ATR readout.
Prop Risk Guard - daily loss and drawdown protection Prop Risk Guard - daily loss and drawdown protection

Protects your account from a prop-firm rule breach: daily loss limit, max drawdown (static or trailing) and profit-target lock. On a breach it closes all positions and pending orders, then blocks new trades until the lock resets.

Repaint Checker - find out whether an indicator repaints Repaint Checker - find out whether an indicator repaints

Tests any MT5 indicator for repainting: records what every buffer showed when each bar closed, reads the same bars again later and reports values that changed, signals that appeared late and signals that vanished, with dates.

Spread Session Recorder Spread Session Recorder

Records the spread of one or many symbols to CSV every minute (min, time-weighted average, max), with ready tables per hour of day and per trading session. Restart-safe, never trades.

MACD Signals MACD Signals

Indicator edition for new platform.