Originally Posted by ozgur
But bar() function can only return "4" (closing custom bar) once per 'tick' and generates only 1 renko bar instead.
This could be it.

https://zorro-project.com/manual/en/bar.htm
Quote
Returns:
0 - close the bar at the normal end of the BarPeriod.
1 - close the bar now.
4 - keep the bar open until closed by returning 1, and call the bar function at every price tick.
8 - call the bar function only once at the end of every bar.
This could use a fifth return: "Close the bar now, but create a new bar with the current priceClose() value." Zorro would in turn call the bar() function again.