A doji is a candlestick pattern where opening and closing prices are nearly the same, indicating market indecision and balanced buying and selling pressure.