Loading…

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

SettingDefaultWhat it does
Session start hour8Session start hour (broker time, 0-23)
Session end hour16Session end hour (broker time, 0-23)
Session labelLondonName shown in the panel
Corner1Panel corner: 0=UL, 1=UR, 2=LL, 3=LR
Font size10Panel font size
Upcoming colorclrSilverText colour while waiting for the session
Active colorclrLimeGreenText colour while the session is open
Alert on starttrueAlert once when the session opens

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: Trading Sessions · Alerts · MT4 Indicator · MQL4 Source Code

MetaTrader 4 & 5 indicators · PolyMaria