As Pine Script executes on historical data only, you cannot directly access future candles. The security() function can be used, however, to reference higher timeframes or other symbols' future candles indirectly, but you should remember that any forecast will be based on past data, not actual future values.