How to find new candle (new bar) use MQL programming?

Here are two ways to identify a new candlestick using MQL for MetaTrader.