Due to my poor math skills I cannot explain this well. Here is the try. The ST is a plot of the fundamental mean of price plus or minus the ATR factor. So a moving average of mean of price plus or minus the ATR factor. The ATR factor is 1 * the ATR or -1 * the ATR. If the close is < previous ST plot the UP ATR factor is added to price and if the close is >previous ST plot the ATR factor is subtracted from the price. My guess is if there is a large price range in a bar or several the ATR becomes large causing the ST plot and price to become farther apart. It then takes a bit for those to come together. The candle color will not change until price crosses the ST plot.