Once per bar you are checking candle 0, remove this for test, or check candle 1.