Pro Session Box Premium
- インディケータ
- Sayed Javad Razavi Ebrahimi
- バージョン: 2.0
Professional Daily Box + Multi-Session Tracker for MetaTrader 5
Description
ProSessionBox Premium displays the Daily price box as a real candlestick combined with 4 major trading session bars and a smart time bar — all positioned below price action so your chart stays clean.
Designed for day traders, scalpers, and swing traders who need crystal-clear session and range visibility.
Screenshots
Photos available in the screenshots/ folder.
Features
Daily Box
- Daily High/Low drawn as a real colored candle (Bullish / Bearish / Neutral)
- Optional Yesterday box (J-1) with same candle visualization
- Range label: Range: 87 pips
- Profit label: $0.87 (0.01L) with configurable lot size
- Auto-center: chart scale locks so the box sits vertically centered on load and on every period change
4 Major Trading Sessions
| Session | Color | Timezone |
|---|---|---|
| Sydney | Dark Teal | UTC+10/+11 |
| Tokyo | Purple | UTC+9 |
| London | Dark Amber | UTC+0/+1 |
| New York | Blue | UTC-5/-4 |
- Full DST (Daylight Saving Time) support for all sessions
- Each session drawn as a colored horizontal bar below the box — no overlap
- Session H/L level lines flanking the daily candle position
- Toggle each session ON/OFF from the control panel
London/NY Overlap Highlight
- Gold highlight automatically drawn during the 13:00–17:00 UTC overlap
- The highest volatility window made instantly visible
Smart Time Bar
- Progress bar showing elapsed time in the current day
- Pixel-fixed 45 px from chart bottom — always readable at any zoom level
- Click any session bar to reveal it for 30 seconds
Control Panel
- Toggle sessions ON/OFF
- Toggle Yesterday box
- Minimize button
- Shows active session name and day range
Alerts
- Optional popup + sound on every session open
Performance
- EventSetTimer(1) for clock updates — not per-tick
- Bar scan throttled: only on new bar or when price breaks cached High/Low
- Session objects created once, updated by coordinate change only
- CPU usage < 1%
Installation
From source (this repo)
- Clone or download this repository
- Copy ProSessionBox_Premium.mq5 to your MT5 MQL5/Indicators/ folder
- Copy Libraries/SessionTime.mqh to MQL5/Libraries/ (required dependency)
- Open MetaEditor (F4 in MT5), navigate to the indicator and press F7 to compile
- Drag the compiled indicator onto any chart
Pre-compiled .ex5
Request the latest .ex5 via Issues or download from the website. Copy to MQL5/Indicators/ and drag onto a chart — no compilation needed.
How to Get It
| Channel | How |
|---|---|
| GitHub (free) | Open an Issue requesting the .ex5 , or clone and compile yourself |
| Website | sjavadrz.com — direct download |
| MQL5 Market | Paid version with lifetime updates and priority support |
Parameters
Daily Box
| Parameter | Default | Description |
|---|---|---|
| ShowOnlyBoxFrame | true | Box border only (no fill) |
| ShowYesterdayBox | false | Show yesterday's box (J-1) |
| BoxFrameColor | DodgerBlue | Box border color |
| BoxFrameWidth | 2 | Border width |
| BoxCandleShift | 5 | Candle position (bars from bar 0) |
| ShowBoxLabels | true | Show range / profit labels |
| DisplayLotSize | 0.01 | Lot used for profit calculation |
Sessions
| Parameter | Default | Description |
|---|---|---|
| ShowSydney | true | Enable Sydney |
| ShowTokyo | true | Enable Tokyo |
| ShowLondon | true | Enable London |
| ShowNewYork | true | Enable New York |
| ShowOverlapHighlight | true | Gold highlight on London/NY overlap |
| SessionLineHeight | 6 | Session bar height (px) |
| ShowLevelLines | true | Session H/L tick marks on candle |
Time Bar
| Parameter | Default | Description |
|---|---|---|
| ShowTimeLine | true | Always show time bar |
Alerts
| Parameter | Default | Description |
|---|---|---|
| AlertOnSessionOpen | false | Popup alert on session open |
| SoundOnSessionOpen | false | Sound alert on session open |
Control Panel
| Parameter | Default | Description |
|---|---|---|
| ShowControlPanel | true | Show the panel |
| PanelXOffset | 10 | X position (px from left) |
| PanelYOffset | 10 | Y position (px from top) |
Dependency
Requires Libraries/SessionTime.mqh — included in this repository.
License
MIT — free to use, modify, and distribute. See LICENSE.txt.
Author
Javad RAZAVI
- Email: sjavadrz@gmail.com
- MQL5: mql5.com/en/users/sjavadrz
Changelog
v2.00 — 2026-05-04
- Complete rewrite: object create-once / update-only (no delete/recreate per tick)
- EventSetTimer(1) for clock — removed per-tick timer logic
- Throttled bar scan: rescan only on new bar or price break of cached H/L
- Daily candle fixed at BoxCandleShift — no more invisible candle bug
- Auto-center chart vertically on load and period change ( CHART_SCALEFIX )
- Zombie candle buffer clearing fixed ( PLOT_EMPTY_VALUE=0 semantics)
- Session H/L level lines aligned to BoxCandleShift candle position
- Removed ATR14 from all labels (range only)
- Session labels: name only (no pips)
- London/NY overlap gold highlight
- Pixel-fixed time bar (always readable at any zoom)
- Session H/L lines hide when session is toggled OFF
- DST-aware session times via SessionTime.mqh
- GlobalVariables preserve session state across period changes
- Colors redesigned: Sydney (teal), London (amber), Tokyo (purple), NY (blue)
v1.00 — 2025-11-21
- Initial release
