Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.02.01 09:06

Time until the bar closes - indicator for MetaTrader 4

| English Español Русский Deutsch 日本語 Português

votes: 17
cctimex.mq4 (5.28 KB)view


The indicator displays the server time and the time until the current candlestick ends on the М1-D1 timeframes.

One parameter — list of timeframes separated by spaces. All the necessary timeframes are specified in minutes. An empty list means one current timeframe of the chart. There can be custom timeframes, not necessarily the same as the terminal's. I.e. it is possible to display the time until the end of a 3-minute, 6-hour candlestick, etc.

Drag the blue clock to drag the indicator to anywhere on the screen. The red counters adjust to the clock automatically. To change the indicator font size, it is necessary to change the font size of the blue clock.

The indicator works in "idle" mode on weekends. The code uses a timer, so that it does not depend on the quotes.


Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.