For those who want the full code, just replace the 4 lines i have posted in ST code.
Not posting it in full, as don't think it adds much value to this thread.
The only thing to mention was, to demo that it flips the side, similar to renko,
advantage is you get real candles, real time and not fake burst of candles in a flash.
Happy