This solution has absolutely nothing to do with the chart type. You can use this on candles, bars, ticks, range or renko charts. The code is exactly the same and the description is exactly the same.
The key here is to recognize that for Renko bars the color is determined by comparing current close to previous close. Most swing high pivot formations are based on a comparison of the highs. So I will provide both versions here:
plot swingPivot = close > close and close > close and close > close[-1] and close[-1] > close[-2];
Here is the more standard version used for candle and bar charts:
plot swingPivot = high > high and high > high and high > high[-1] and high[-1] > high[-2];
Your screenshot was not complete. So it was impossible for me to test this out on your specific example. And had I been able to do that I would have also included a screenshot of my own. Keep that in mind next time you include a screenshot in a forum. Include the full view of the chart so folks have every detail they need to test it out on their end and confirm their solutions works for your specific example.