next() is called once per bar, in chronological order. Inside it, index [0] means the current bar, [-1] the previous one, [-2] the one before.
As long as indicators lack history, Backtrader calls prenext() instead: this is the minimum period. With an SMA 50, the first real decision comes on the 50th bar.
An order sent in next() is executed by default at the open of the next bar. Between the close and the open, the price can jump: that is a gap.
Reading a future bar would mean knowing the answer before the question: that is look-ahead bias, which produces beautiful and false backtests.
Examples
NEXT-X (fictional market) : The vertical line is the bar where next() is: close[0] is its close, close[-1] the close of the candle before. Everything to the right is still unknown to the strategy.
15 January 2015: the Swiss franc : That day the Swiss National Bank dropped its floor of 1.20 francs per euro. EUR/CHF collapsed within minutes and many orders were filled very far from the expected price: an extreme case of the gap between decision price and execution price.