Candle
Retorna o index da vela.
Esta função retorna o identificador da vela, usado para obter o index utilizando o horário especificado.
Função
Nome da função: Candle
Parâmetros
| timeSeconds; | // O horário em segundos. | ||
| timeframe | = CURRENT; | // O tempo gráfico de referência. | |
| symbol | = SYMBOL; | // O ativo de referência. |
Exemplos
//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