single candle template will check it the candle fits the parameters of a Doji. Current candle (forming candle) is 0, previous (closed) candle is 1, etc.