🛠️ Custom MT4 Indicators

Session Lines V1.4   UpdatedPopular

Session Lines V1.4 is a powerful and easy-to-use MetaTrader 4 indicator that automatically plots the major global trading sessions. Tokyo, London, and New York. Each session is clearly marked with a vertical line at open, and an optional colored box highlighting the full session range. At the end of each session, the indicator displays the total pip range traded during that period, ideal for identifying volatility, breakout zones, and high-probability trading times.

✅ Key Features

➤ Automatically marks Tokyo, London, and New York sessions.
➤ Session ranges shown as color-coded boxes for quick recognition.
➤ Pip range label displayed inside each session box.
➤ Customizable colors, line styles, and font settings.
➤ Simple one-time account license check for secure usage.
➤ Toggle UpdateLive to refresh range on current bar or bar close, no lag or redraw errors.
➤ Ultra-lightweight, compatible with any timeframe and symbol.

💡 How It Works

Session Lines V1.4 uses your broker’s server time and the UTC offset you provide to determine when each global session starts and ends. It then scans each candle in the session window to find the highest high and lowest low, draws a box to enclose that range, and display the pip distance between them. The high/low range can be setup to update on the live current bar, or when the bar closes, on M1 or M5 time frames this ensures accurate plotting without excess CPU usage.


Session-Lines-Chart

⚙️ Input Parameters

Session-Lines-Inputs
Parameter Description
MT4AccountNumber Your MT4 account number (pre-set and locked in your version).
BrokerUTCOffset Timezone offset of your broker vs. UTC (e.g. 2.0 for UTC+2).
TokyoOpenUTC Session opens at: 00:00
TokyoCloseUTC Session opens at: 08:00
LondonOpenUTC Session opens at: 08:00
LondonCloseUTC Session opens at: 16:00
NewYorkOpenUTC Session opens at: 13:00
NewYorkCloseUTC Session opens at: 21:00
TokyoColor Box/line color for Tokyo session.
LondonColor Box/line color for London session.
NewYorkColor Box/line color for New York session.
LineStyle Customize the style of vertical session lines.
LineWidth Customize the width of vertical session lines.
RangeColor Customize the color of the pip range label.
FontSize Adjust font size for the pip range labels.
FontName Adjust font type for the pip range labels.
ShowTokyoLine Enable/disable Tokyo session start line.
ShowLondonLine Enable/disable London session start line.
ShowNewYorkLine Enable/disable New York session start line.
ShowSessionBoxes Toggle display of the session range boxes.
UpdateLive Update the range high/low on current bar, or when the bar closes.

📌 How to Install?

1. Open MetaTrader 4.
2. Go to File > Open Data Folder.
3. Navigate to MQL4 > Indicators folder.
4. Copy the session-lines.ex4 file into your MT4 Indicators folder.
5. Restart MT4 or refresh the Navigator window.
6. Drag Session-Lines V1.4 onto any chart.
7. Adjust your broker UTC timezone offset and customize inputs as required.
8.That’s it! Installation complete.

👁️ 1,433

← Back