Fixed 'Replay' to work. The cause was that 'Replaying' historical data doesn't wait for the next bar's open, For that case used barmerge.lookahead_on for the renko calculation.
Note, trend line is only confirmed after candle close since renko needs the next bar's open.
As more things arise will update accordingly.