Closed candles vs. unfinished candles: a five-minute paper test
If your paper-trading rule depends on how a candle closes, wait until the interval is complete. The close shown while that candle is still forming can change before the interval ends.
A candle that changed its mind
In a fictional 10:00–10:05 UTC interval, a pair opens at $100. At 10:03 its last trade is $102, so the developing candle looks green. The finished candle closes at $99.80 and is red. A paper journal that called it green at 10:03 and a replay that used the final candle would disagree even though both saw accurate prices for their respective timestamps.
Keep two clocks in your journal
Record the candle’s start and end times and, separately, the time you observed the data. Write down the pair, venue, timeframe, latest visible price, and whether the candle is final according to the feed. Reread the same interval after it closes and compare. If the rule requires two consecutive closed candles, check that their timestamps are adjacent. A missing interval is a data gap, not a candle to invent.
Kraken’s Spot REST OHLC documentation says the last row represents the current, unfinished interval. When using that endpoint for a closed-candle test, exclude that row and check the timestamp of the most recent completed one. Other feeds can represent candle completion differently.
Finally, record the first price your simulator could actually observe after confirmation. A confirmed candle close is a data point, not a promise that you could have filled at that price. The example above illustrates how to test timing, not a trading recommendation.