I am with a group of people who use Renko blocks as one of the indicators for a trading system, which currently we trade manually. I would like to automate this, but I would like to have an automated Renko that looks exactly like the PRT one so that I can check my automated system against the charts, and so that manual entries would be exactly the same as my automated ones, in backtesting, at least. I looked on the forums for code that reproduce it, failed to find any, and wrote my own. It seems to work in that the blocks move in step with the PRT ones, but it isn’t initialising in the same way, so my blocks are sometimes x points higher or lower than PRT’s, still moving the same amount in step, but with an offset of x. It seems to vary dependent on how many units are loaded, or simply when I load it.
Do you know how PRT calculates its initial values for Renko? Is it possible to do what I’m trying to do?
Many thanks.