Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Time until bar close - MetaTrader 4 script | Forex indicator download - MT4/MT5 resources

author EAcpu | 6 reads | 0 comments |

Time until the bar closes - indicator for MetaTrader 4

The indicator shows the server time and the time until the end of the current candlestick on the М1-D1 time frame.

One argument — a space-separated list of time ranges. All necessary time ranges are specified in minutes. An empty list represents a current time range of the chart. It is possible to have a custom time range, which is not necessarily the same as the terminal's time range. ie. Can display the time at the end of 3-minute, 6-hour candlesticks, etc.

Drag the blue clock indicator to anywhere on the screen. Red counter automatically adjusts the clock. To change the indicator font size, you need to change the font size of the blue clock.

The indicator works in "idle" mode on weekends. The code uses a timer so it doesn't rely on quotes.

Time until the bar closes - indicator for MetaTrader 4


Attachment download

📎cctimex.mq4 (5.28 KB)

Source: MQL5 #13413

Verification code Refresh