Prinova described it better than I could. I hope his diagram illustrates how candles are built. Bars end and start exactly at 00:00, while candles start with the first price quote and end with the last price quote.
So if you want to order a trade Friday that should be opened Monday, set TimeWait to 3. Otherwise orders are not filled when a weekend would lie between order and execution.