Next Session Countdown
A countdown that only updates on price ticks goes visibly stale the moment the symbol goes quiet - exactly when a trader waiting for a session open is most likely to be glancing at it. This drives the label from a one-second timer instead of from OnCalculate, so it keeps counting down smoothly regardless of tick arrival, and switches automatically to counting down to the session's close once that session opens. Notes and limitations - Tracks exactly one session window. To watch several sessions at once, drag the indicator onto the chart more than once with different InpSessionLabel values - each instance keeps its own panel object. - Broker server time drifts with each broker's own daylight saving calendar; re-check the hours after a DST change rather than assuming they carry over. - This is a display-only tool: it does not trade, and closing the terminal stops the countdown along with everything else on the chart.
Indicator · MT4 · v1.0 · Free
About Next Session Countdown
Next Session Countdown is an indicator for MetaTrader 4. It can alert you with a pop-up, sound, email or push message. It has 8 settings, such as Session start hour, Session end hour and Session label. MQL source code included.
Files in the download: SessionCountdown.ex4, SessionCountdown.mq4, SessionCountdown.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Session start hour | 8 | Session start hour (broker time, 0-23) |
| Session end hour | 16 | Session end hour (broker time, 0-23) |
| Session label | London | Name shown in the panel |
| Corner | 1 | Panel corner: 0=UL, 1=UR, 2=LL, 3=LR |
| Font size | 10 | Panel font size |
| Upcoming color | clrSilver | Text colour while waiting for the session |
| Active color | clrLimeGreen | Text colour while the session is open |
| Alert on start | true | Alert once when the session opens |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: Trading Sessions · Alerts · MT4 Indicator · MQL4 Source Code