What is the code for Renko chart buy and sell for 8 points on hourly chart


I want to get code to test Renko chart for crude oil, the slab will be for 8 points on hourly scale. Please provide the codes for buy on first Green brick and sell on first Red brick

In Tradescript works based on OHLC values and it will take candle stick by default , so it is not possible to check the same on renko charts.