Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Indicator | Candle Timer with Spread and Swap Countdown | Free Download

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

Image for Candle Timer with Spread and Swap Countdown

A small text block in the chart corner of your choice with three lines:

  • Bar closes in: time left on the current bar, on any timeframe from M1 to MN1. It changes colour near the close (the last 10% of the bar).
  • Spread: the current ask minus bid, in points.
  • Swap in: time left until 00:00 server time, the usual rollover. "(x3)" is added on the day the broker charges triple swap for the symbol.

The block updates every second from a timer, so the countdown keeps running between ticks and on quiet symbols. When no tick has arrived for more than 5 minutes (market closed, weekend), the first line shows the time of the last tick instead of a countdown.

Unique stair-step trend trading with the Stairsteps Expert Advisor. Innovative approach for consistent results. Learn more.

Notes:

  • MT5 uses the terminal's estimate of the server clock. MT4 has no such function, so the MT4 version takes the server time from the last tick and keeps it running on the local clock. Until the first new tick after loading, the MT4 times can be off (for example at the weekend).
  • Swap is charged at server midnight by most brokers, but check your broker's rollover time.
  • The indicator only draws text labels and removes them when it is taken off the chart.

Inputs

Input Default What it does
Corner Right lower Chart corner for the text block
Font size 10 Text size
Text colour Silver Colour of all lines
Countdown colour near the bar close Orange Colour of the countdown in the last 10% of the bar
Show spread true Show or hide the spread line

Build better strategies with RobotFX professional tools – check them out.

79344

Best MetaTrader Indicators + Profitable Expert Advisors