Esta função retorna o identificador da vela, usado para obter o index utilizando o horário especificado.
Function
Section titled “Function” Name: Candle Copied!
Parameters
Section titled “Parameters”Representa um inteiro positivo (0 até 4294967295). | timeSeconds; | // O horário em segundos. | |
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; | // O tempo gráfico de referência. |
Representa uma sequência de caracteres Unicode. | symbol | = SYMBOL; | // O ativo de referência. |
Examples
Section titled “Examples”//Default example:
Candle[timeSeconds, timeframe = CURRENT, symbol = SYMBOL]
//Other examples:
Candle[1]
Candle[1, M5, "EURUSD"]
Candle[ToTime["13:00"]] // How to get the candle at 13:00 of the day
Candle[TIME_CURRENT-300] // How to get the last 5 minutes candles index