Skip to content

Retorna o tempo restante da vela atual.

Esta função retorna quanto tempo falta para o término da vela atual no timeframe e símbolo especificados.

Name: TimeLeft Copied!

Aliases: TLeft Copied!

Representa um intervalo de tempo: 'CURRENT', 'M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M10', 'M12', 'M15', 'M20', 'M30', 'H1', 'H2', 'H3', 'H4', 'H6', 'H8', 'H12', 'D1', 'W1', 'MN1'.

timeframe = CURRENT;

// Tempo gráfico.

Representa uma sequência de caracteres Unicode.

symbol = SYMBOL;

// Símbolo do ativo.

//Default example:
TimeLeft[timeframe = CURRENT, symbol = SYMBOL]

//Using aliases:
TLeft[timeframe = CURRENT, symbol = SYMBOL]

//Other examples:
TimeLeft[M5, "PETR4"]

In case of success:

Retorna o tempo restante (em segundos) da vela atual.

Return:
int

Representa um inteiro com sinal (-2147483648 até 2147483647).

In case of error:

Retorna -1 se os parâmetros forem inválidos.

Return:
int

Representa um inteiro com sinal (-2147483648 até 2147483647).