1. You can change the backtest date at the last two lines of this script. This is necessary to do as Tradingview can only simulate a maximum of 3000 orders at a time.
2. After adding this script to a renko chart, change the "pyramidding" setting (in the settings tab) to a really large number, like 100, in order to simulate the EA accurately.
3. In this backtest, when one short order is opened, all long orders are closed. Likewise, one long order is opened, all short orders are closed. No hedging.
4. I'm not very skilled at pinescript. The EA opens a long order at the top of green bars and a short order at the bottom of red bars, but this backtest doesn't do that. Still, I think that setting the slippage to 10 ticks gives an accurate and robust enough backtest. (This is for EURUSD 2 min chart with 2 pip size renko boxes)
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.